News for hackers. Stuff that matters.
Re:Learn Modern C++ by loup-vaillant on Wednesday December 27, 2023 @01:15PM (#38784751)
Are you assuming I didn't already do that? For your information I've written an entire cryptographic library in C https://monocypher.org and routinely chose C over C++. My claim that C is broken beyond repair doesn't come from ignorance or hype, it comes from over 15 years of first hand experience.

And of course, GC and RC aren't fixes, they can't apply in the performance constrained settings C and C++ typically are used for (tiny embedded chips, video games, video encoding…).

Also there's no way I'll even look at a new language without some form of generics. They're just too damn useful. Sure we could try the Go approach and special case generics for a few core data structures, but I believe a general purpose language needs a way to add custom ones. Heck, even Go fixed its mistakes and added generics after all.

Re:Learn Modern C++ by jansommer on Wednesday December 27, 2023 @01:33PM (#38784962)
Excellent, now let 7thaccount discover that. I suggest he or she starts with C.
Re:Learn Modern C++ by loup-vaillant on Wednesday December 27, 2023 @04:07PM (#38786752)
Ah, I see I missed the context of your initial reply. If one's goal is to learn low-level languages, starting from C isn't such a bad choice (though I would still suggest moving away when possible).

But I (mistakenly) thought we were talking about designing a language. And for this I have a point: coming up with something like C in 2023 would be unacceptable. We know better now.

Sorry about the non-sequitur.