Hacker News with Generative AI: C++

A SwiftUI Runtime in C++ (kulve.org)
I wrote a crossplatform, multithreaded, fully async runtime for SwiftUI to power Kulve. It's written in C++ with minor Objective-C scaffolding to handle the runloop notifications via NotificationCenter.
The Ignorability of Attributes in C++ (brevzin.github.io)
Attributes turned out to be unsuitable for solving problems because they are ignorable. I found this a very frustrating introduction to read. Because, on the one hand, it’s true — C++ attributes are, today, completely unsuitable for solving any problem. How did we actually get into this situation? How did we decide that attributes must be useless?
Writing C++ in 2025 (andreabergia.com)
Spoiler: this is a rant. 😂
Fortran for C Programmers (llvm.org)
This note is limited to essential information about Fortran so that a C or C++ programmer can get started more quickly with the language, at least as a reader, and avoid some common pitfalls when starting to write or modify Fortran code.
A Simulation in C++ of Joseph Weizenbaum's 1966 Eliza (github.com/anthay)
I’ve made in C++ what I think is an accurate simulation of the original ELIZA.
Initialization in C++ is bonkers (2017) (tartanllama.xyz)
C++ pop quiz time: what are the values of a.a and b.b on the last line in main of this program?
Rust Devs Think We're Hopeless; Let's Prove Them Wrong (With C++ Memory Leaks) (babaei.net)
Rust Devs Think We’re Hopeless; Let’s Prove Them Wrong (with C++ Memory Leaks)!
Producing useful commands on the go using C++ and AI (lemire.me)
A few weeks ago, I attended a software engineering seminar focused on the role of large language models in programming. The distinguished software engineering professors in attendance were notably skeptical, frequently dismissing the technology’s potential. During a break, I turned to a senior professor, a longtime colleague, and playfully remarked, “ChatGPT writes better C++ than you!” The comment was partly in jest, given our years of camaraderie, but it carried a kernel of conviction.
Radiation Tolerant Software Framework for Space Applications (github.com/r0nlt)
A C++ framework for implementing machine learning models that can operate reliably in radiation environments, such as space. This framework implements industry-standard radiation tolerance techniques validated against NASA and ESA reference models.
Xenon is an open source universal game cheating framework C++ (github.com/kiocode)
Xenon is a powerful and flexible C++ framework designed for creating game cheats, both internal and external. It provides a modular architecture that allows developers to easily implement features like ESP, Aimbot, Radar, and more. Xenon supports multiple game engines, including Unreal Engine and Unity, and is designed to be universal, meaning it can be adapted to various games with minimal changes.
Radiation-tolerant ML framework for space (github.com/r0nlt)
A C++ framework for implementing machine learning models that can operate reliably in radiation environments, such as space. This framework implements industry-standard radiation tolerance techniques validated against NASA and ESA reference models.
C++26: Constexpr Exceptions (sandordargo.com)
Starting with C++26, it will become possible to throw exceptions during constant evaluation. This capability is enabled through both language and library changes. Given the significance of this feature, it deserves its own dedicated post.
CLion Is Now Free for Non-Commercial Use (jetbrains.com)
We can’t make С and C++ simpler, but we can make working with them a bit easier. CLion is now free for non-commercial use!
Matt Godbolt sold me on Rust by showing me C++ (collabora.com)
Matt Godbolt, of Compiler Explorer fame, is awesome and you should scour the web for every single bit of content he puts out.
Matt Godbolt sold me on Rust (by showing me C++) (medium.com)
Matt Godbolt, of Compiler Explorer fame, is awesome and you should scour the web for every single bit of content he puts out.
Hazard Pointers in C++26 (modernescpp.com)
Hazard pointers provide garbage collection in C++ and solve the ABA problem.
Show HN: AnuDB– Backed on RocksDB, 279x Faster Than SQLite in Parallel Workloads (github.com/hash-anu)
AnuDB is a lightweight, serverless document database designed for C++ applications, offering efficient storage of JSON documents through MessagePack serialization.
TScale – Distributed training on consumer GPUs (github.com/Foreseerr)
This repo contains transformer train and inference code written in C++ and CUDA.
Using C++ type aliasing to avoid the ODR problem with conditional compilation (microsoft.com)
Some time ago, I discussed the C++ concept of ill-formed no diagnostic required (IFNDR). A common accidental source of this is violating the One Definition Rule (ODR) by defining a class or function differently based on compile-time switches.
Writing your own C++ standard library, part 2 (blogspot.com)
This blog post talked about the "self written C++ standard library" I wrote for the fun of it (code here).
GCC 15 is now available, with support for more draft C++26 features (isocpp.org)
GCC 15 is now available!
C++26: more constexpr in the standard library (sandordargo.com)
Last week, we discussed language features that are becoming constexpr in C++26. Today, let’s turn our attention to the standard library features that will soon be usable at compile time. One topic is missing: exceptions. As they need both core language and library changes, I thought they deserved their own post.
New C++ features in GCC 15 (redhat.com)
The next major version of the GNU Compiler Collection (GCC), 15.1, is expected to be released in April or May 2025.
Some __nonstring__ Turbulence (lwn.net)
New compiler releases often bring with them new warnings; those warnings are usually welcome, since they help developers find problems before they turn into nasty bugs. Adapting to new warnings can also create disruption in the development process, though, especially when an important developer upgrades to a new compiler at an unfortunate time. This is just the scenario that played out with the 6.15-rc3 kernel release and the implementation of -Wunterminated-string-initialization in GCC 15.
C++26: more constexpr in the core language (sandordargo.com)
Since constexpr was added to the language in C++11, its scope has been gradually expanded. In the beginning, we couldn’t even use if, else or loops, which were changed in C++14. C++17 added support for constexpr lambdas. C++20 added the ability to use allocation and use std::vector and std::string in constant expressions. In this article, let’s see how constexpr evolves with C++26. To be more punctual, let’s see what language features become more constexpr-friendly.
Link-Time Optimization of Dynamic Casts in C++ Programs [pdf] (ist.utl.pt)
I started a devblog about mixing SwiftUI and C++ to make a Twitch app (kulve.org)
I figure the tech stack of Kulve is unique enough to be interesting, so seems like a good place to start for my first blog post. Kulve is a SwiftUI application that heavily leverages the Swift/C++ interop that got introducted with Swift 5.9. While it's not perfect, it offers just enough to be able to reliably blend the two languages together.
Show HN: I'm 15 and built a neural network from scratch in C++,just math (github.com/muchlakshay)
A C++ implementation of a Multilayer Perceptron (MLP) neural network using Eigen, supporting multiple activation and loss functions, mini-batch gradient descent, and backpropagation for training.
Less Slow C++ (github.com/ashvardanian)
Learning how to write "Less Slow" code in C++ 20, C 99, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO
C++ creator Bjarne Stroustrup reimagines how coding is taught (stanforddaily.com)
At a Computer Science Education Seminar talk Thursday, C++ creator Bjarne Stroustrup shared his thoughts on the role of C++ and what needs fixing in programming education.