alt.hn

5/2/2026 at 4:40:29 PM

Modern C++ Programming: Busato

https://github.com/federico-busato/Modern-CPP-Programming

by KnuthIsGod

5/3/2026 at 7:43:35 PM

I just read through a few chapters. This is actually a very nice and solid resource!

by spacechild1

5/4/2026 at 5:33:29 AM

About the Author: "Accelerating Sparse Linear Algebra at NVIDIA Senior Software Engineer, IC5

I’m a Software Engineer at NVIDIA in Santa Clara, US (headquarter). I work in the CUDA HPC Math Library team and have been leading the Sparse Linear Algebra group for the past 6 years.

My interests outside sparse linear algebra include parallel computing, software optimization, and graph algorithms. I am also passionate about programming and software engineering, primarily in C++.

.....

I taught C++ professionally for 5 years in undergraduate and graduate courses. I maintain an open-access C++ course. "

https://federico-busato.github.io/

by KnuthIsGod

5/2/2026 at 10:49:50 PM

Another book tactically missing memory and ownership design for modern c++ apps. I think there is no more important topic for teaching. There are some slides in advanced sections but it's quite ironic one needs to know about it from the start!! Who owns memory? How to pass it? Move? Borrow? How to communicate it for readers? It's like a tribal knowledge.

Every time I touch enterprise C++ codebase it's a freakshow heavily struggling with memory management.

As reference the material could be good, as study it's very questionable.

by bvrmn

5/3/2026 at 12:07:20 AM

Do you have any recommendations for books/materials that do include these topics? I've never used c++ professionally, but have been starting to learn it and would appreciate a modern reference on these items.

by shorsher

5/3/2026 at 3:05:02 AM

Nothing did more damage to c++ code bases than people not understanding this. People hear "smart pointers are good" and use them for everything. Not understanding that it's just the lesser evil and still extremely rarely needed (vs just stack memory or variants)

by on_the_train

5/3/2026 at 12:13:14 AM

there are so many job listings for c++ in big tech, but it feels like it's hard to gain proper c++ experience without already being on those projects. it's sweet that those c++ systems are probably critical and actually do cool things, but if I wanted to be a c++ guy there, it's hard to get the experience without already being there I feel. c++ actually doesn't look too bad with RAII?

but maybe it's a dying breed anyway, so I should just learn rust/go/zig/etc

by neko_ranger

5/3/2026 at 2:49:23 AM

This will probably run foul of some purists but Unreal Engine is a large C++ project with a vast amount of documentation, community, examples, and serves a lot of use cases.

It's not standard C++ but also it illustrates why lots of projects go that route.

Because it's niche, it might not be resume fodder but it will scratch the itch if you just want to play with C++.

by jayd16

5/3/2026 at 3:01:32 AM

C++ is still the de facto standard language for new high-performance, high-scale software. It isn’t going anywhere.

by jandrewrogers

5/3/2026 at 1:09:28 AM

Learning Rust is probably onone of the more accessible ways to get this kind of experience. It won't teach you everything you'd need to know to write C++ professionally, but it teaches a lot of the it, including a lot of best practices that it's otherwise hard to learn outside of a professional environment.

by nicoburns

5/3/2026 at 5:59:22 AM

I don't know, someone who solves their borrow checker errors by adding more dynamic allocations (which seems to be common/recommended), will be taught how to program in Java, not C++.

by boris

5/3/2026 at 4:46:33 PM

That's only recommended for beginners while they get tuo to speed (to try and help them avoid ahve to learn too much at once). It's absolutely not recommended in general. The whole point of the borrow checker is to enable memory safety without heap allocating and garbage collecting everything.

by nicoburns

5/3/2026 at 6:48:37 AM

It's a dying breed in that it's being outgrown by others and the niches where it's the best choice are getting fewer, but it's not going away soon either.

For example high performance multithreaded code is now largely written in languages that are better for concurrency correctness, because the added development speed translates to added runtime performance by letting you iterate more in the same timeframe/budget.

A good understanding of the how the C/C++ memory safety bugs happen and lead to vulnerabilities is important to learn if getting into it.

by fulafel

5/3/2026 at 1:47:28 PM

What are these languages? I'm curious because C++ is the standard in my community so it's all I ever hear about (and Rust from the adventurous few).

by MITSardine

5/3/2026 at 1:59:44 PM

Java, Rust, Go, C#, Swift are the biggest ones (in no particular order) on the CPU side.

On the GPU side I'm not as up to date, but there's a lot of Python-ish stacks like JAX, PyTorch, Mojo, etc.

by fulafel

5/3/2026 at 3:43:04 PM

GPUs don’t run python.

by qwertyuiop_

5/4/2026 at 6:31:52 AM

Yes, GPUs run machine code like CPUs. The toolchain compiles code to machine code that gets executed on GPUs. In the stacks referenced above it's not exactly Python, which is why I used the term Python-ish instead of Python.

by fulafel

5/3/2026 at 6:34:10 AM

C++ rules in the gaming industry, HFT, HPC, language runtimes.

Speaking of which what do you think all the languages that build on top of GCC and LLVM, depend on?

by pjmlp

5/3/2026 at 1:30:59 AM

To me, using a programming language that lets me manage memory on a problem where it was important to me (because constraints or performance or whatever) has always been eye opening. go feels like a different thing there, but I suppose cgo can get you into the realm.

by portender

5/3/2026 at 2:36:03 AM

Cgo has its own performance overhead problems, though.

by stingraycharles

5/3/2026 at 2:33:13 AM

CUDA is an extension of C++ just like C++ is an extension of C. Deployed CUDA is growing exponentially. C++ is definitely not a dying language!

by ipnon

5/3/2026 at 9:17:42 AM

Nit pick: there are CUDA extensions for multiple programming languages, e.g. Fortran, but indeed the CUDA extension for C++ is the most widely used.

This is similar how there are OpenMP extensions for multiple languages, but the one for C/C++ is the most widely used.

by adrian_b

5/2/2026 at 10:20:23 PM

"This open-access course is directed at those who are already familiar with C and object-oriented programming" ... but not C++

That's a very, very small target you're aiming at there.

by captaincrowbar

5/2/2026 at 10:25:04 PM

Regardless, it is a very comprehensive review for C++ programmers, and even intermediate ones will probably see new material there.

by grg0

5/2/2026 at 11:02:53 PM

"This open-access course is directed at those who are already familiar with very old C++ and object-oriented programming" ... but not modern C++

Written this way, the target is bit larger.

by actionfromafar

5/3/2026 at 4:18:24 PM

I think you have to be more specific than "modern". "Modern C++" used to mean smart pointers etc. I assume this isn't that.

by IshKebab

5/3/2026 at 8:48:22 AM

Ha, why another programming language? I thought we wouldn't need to learn these in the AI era.

by koala-news

5/3/2026 at 9:55:48 AM

C++ is a rather old programming language.

by MathMonkeyMan