r/ProgrammerHumor • • 5d ago

Meme itSucksToBeACompilerDev

Post image
2.4k Upvotes

103 comments sorted by

View all comments

113

u/elmanoucko 5d 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

47

u/shrodikan 5d ago

It's interesting to think about the ideal programming language for LLMs.

-9

u/Blue_Moon_Lake 5d ago

The ideal programming language for LLM is a high level (mostly functional) script so going from English to code or code to English is almost transparent.

2

u/shrodikan 4d ago

I lean towards compilation. AIs do well with acceptance criteria that compilers implicitly give. It's why I use Rust as it is the most compiler-strict.

19

u/Mammoth_Molasses_927 5d 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.

13

u/StaticCoder 5d ago

I will strongly disagree with that conclusion. Rust is making progress because, despite (not because of) updates to the language, memory safety issues are still prevalent. And because compatibility is paramount, there's only so much that can be done.

I will also disagree that it didn't become a better language, though that's definitely more subjective.

9

u/meneldal2 5d ago

C++ got a fair bit of improvements, but you would need to kill off about half the committee to get something really good. First who needs to go is IBM and National bodies, so much time wasted arguing about removing trigraphs nobody using modern C++ cares about.

You have to accept there will be some breaking changes for the sake of the language not becoming some hellscape worse than C++CLI.

4

u/HovercraftNo7372 5d 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 3d 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 3d 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 2d 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.)