3 ms·
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.
by mhh__ 3y 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.
- Espressosaurus 3y agoIt 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.
- mhh__ 3y agoC++ is much better than C. Personally I use D everywhere I would've previously used C++.
- titzer 3y agoVirgil 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.