News for hackers. Stuff that matters.
Re:In Defense of C++ by einpoklum on Wednesday September 17, 2025 @12:29PM (#45277989)
It is a big deal even after you know how it works.

The thing is, the languages like Rust only make this easier within their controlled "garden". But for C and C++, you build in the "world outside the garden" to begin with, where you are not guaranteed of everyone having prepared everything for you. So, it's harder, and you may need third-party tools or putting in some elbow grease, or both. The upside is that when rustaceans or go-phers and such wander outside their respective gardens, most of them are completely lost and have no idea what to do; but C and C++ people are kinda-sorta at home there, already.

Re:In Defense of C++ by steveklabnik on Wednesday September 17, 2025 @12:56PM (#45278363)
What is "outside the garden" for Rust?
Re:In Defense of C++ by einpoklum on Thursday September 18, 2025 @05:20AM (#45287457)
Oh, say, use some binary C library with some header, that you found on some system.
Re:In Defense of C++ by hiimkeks on Thursday September 18, 2025 @05:55AM (#45287686)
That shouldn't be too tricky, assuming the binary is built for the sort of device you want to run on. At least not much more complicated than calling any other C code, using bindgen.
Re:In Defense of C++ by steveklabnik on Thursday September 18, 2025 @09:13AM (#45289256)
Yep, Rust made design decisions to make this case as zero overhead as it can be.