Hacker News new | ask | show | jobs
by mhh__ 1118 days ago
Doing stuff at compile time is good (although the compiler can do 99% of it anyway its nice to have guarantees), C++ just got it wrong.
1 comments

It could certainly be better, but in a world where my options are C, C++, or assembly, I pick C++ every day.

I do keep hoping for something else to get big enough we can use it because C++ sucks, but is still better than the alternatives we can use.

Virgil doesn't have all the backends for the diversity of embedded ISAs out there, but the first version compiled to C and ran in as little as dozens of bytes of memory (on 8-bit AVR). Nowadays I am not doing embedded systems, otherwise I'd write more backends.
C++ is much better than C. Personally I use D everywhere I would've previously used C++.