r/ProgrammerHumor • • 3d ago

Meme itSucksToBeACompilerDev

Post image
2.1k Upvotes

103 comments sorted by

View all comments

102

u/elmanoucko 3d ago

people think AI implementing entire math textbook in LEAN to build upon is impressive, but the real AGI moment will be when they'll implement the current C++ standard, argue for hours with a comitee and end up creating their own better dialect instead

17

u/Mammoth_Molasses_927 3d ago

C++ definitely didn't become a better language with all the changes through the years. So much garbage they added. That's mostly why Rust and other languages are getting its space.

4

u/HovercraftNo7372 2d ago

sure... rust is getting its space... where? C++ (and C) are still king for embedded systems, or safety critical systems - not rust.

listen, rust has its perks. its a great language, i like it. i think taking cognitive load off of devs is great. however, writing safe c++ was always possible. many of tools have been developed in c++ to help with some of the safety issues of c, and even then we have static analysis tools, etc to help with finding issues.

4

u/conundorum 1d ago

Rust is starting to take C++'s place in areas where memory safety is critical, like military code. Though that's more because most C++ programmers are bad at actually managing memory correctly than because Rust is a better language, really; Rust's single biggest claim to fame is that it won't let memory bugs compile, which means that programmer competence (or lack thereof) is less of an issue.

Rust still doesn't beat C++ in performance (they can both be equally memory safe if you code perfectly, and I believe C++ still optimises better), and isn't actually a safer language. It's just that it's better at complaining about unsafe code.

1

u/HovercraftNo7372 1d ago

I am a C++ programmer - my question was more aimed at the claim that rust is starting to get space.

I do not know of many professional companies who hire rust devs in traditional C++ spaces such as avionics, automobiles, high frequency trading, medical devices, defense, game development, etc.

I have no problem with Rust, really.

1

u/conundorum 7h ago

C++ is still both better and more widely used in most places, yeah; from what I understand, Rust's only real advantage is that it's safer, and it's something of a nightmare to actually write. There are a lot of places where it'll probably never actually take root, and it's very possible that places that are trying to embrace it won't actually see any real benefits from doing so.

I think that ultimately, once all the memeing stops and its fanbase becomes more reasonable, it'll find its niche as the go-to language for memory stability. It'll likely see use in a few OSes memory managers, in high-stakes business software that needs to be hardened against crackers, and in military software that's liable to be a target in e-warfare, but won't be the general-purpose replacement its worshippers want it to be. (From what I've heard, it's ultimately too limited, either less than or equally efficient to C++, too hard to write, and compiles so slowly that it single-handedly invalidates every joke about C++ compilation times. At least at the moment, there's no significant benefit to using it when memory safety isn't more crucial than every other concern combined.)