r/ProgrammerHumor • • Oct 24 '26

Meme dreamLanguage

Post image
1.4k Upvotes

211 comments sorted by

View all comments

3

u/[deleted] Oct 24 '26

[removed] — view removed comment

5

u/the_vikm Oct 24 '26

It's slow, obviously. Although I thought it's faster than cpp

7

u/luciferoussky72 Oct 24 '26

It depends. Heavy use of proc-macros makes it much slower than C++, and modern C++ features like reflection and modules speed up compile times compared to having to write strange recursive templated structs or classic #include

edit: typo

2

u/Batman_AoD Oct 24 '26

Conversely, heavy use of template metaprogramming makes C++ unbelievably slow to compile. Or did, last time I used it. 

4

u/luciferoussky72 Oct 24 '26

Yeah, although most of that was template abuse that reflection handles now

3

u/Batman_AoD Oct 24 '26

But that's the whole problem with "fixing" issues by adding new language features: you generally don't get to choose the state of the repository you work in, meaning that most professional C++ devs are working in legacy codebases that still use no-longer-recommended patterns. 

2

u/luciferoussky72 Oct 24 '26

Yeah, but in exchange code from the 1990’s still works the same today. It’s the same problem that Rust will someday face, and that plagues any language like Java, C#, or C

1

u/Batman_AoD Oct 24 '26

Oh goodie, 1990s code!

(To be fair, I did use vim up until neovim became usable enough to switch.)

(Also, in practice, I've observed that 1990s code generally stays on 1990s compilers, despite the ISO group's best efforts at backwards compatibility. And, to be fair, there have been breaking changes in the spec.) 

2

u/CrommVardek Oct 25 '26

I have never found Rust compiler slow either. But I've only developed small softwares in Rust, so...