4 ms·
I wish I had a project that warranted C++ right now. It’s a magnificent language.
by ttul 8y ago
I wish I had a project that warranted C++ right now. It’s a magnificent language.
- csears 8y agoWhat would make a new project a good fit for C++?
- andrepd 8y agoPerformance critical.
- std_throwaway 8y agoAlso if Rust is not cutting it yet in your specific niche.
- jeremiep 8y agoI find D to be a good tradeoff between C++ and Rust. I can't stand not having compile-time evaluation, code generation and reflection in Rust and C++ is just too slow to iterate with.
- std_throwaway 8y agoWorking with Python lately I very much got to like the interactive REPL and its immediate feedback. I actually think I forgot how to program in C. It lacks almost every data structure I'd deem useful to getting complex and mixed problems solved quickly. C++ provides many things and is useful if you are in a tight spot or you want/need the speed. If Rust keeps evolving at a quick pace I think I'll look into it a lot in the future. D seems to me like a good thing that is better in many ways but has some critical drawbacks for me like not working on many microcontrollers (an area where C++ really shines). On the other hand it isn't radical enough to really dive into it.
- jordigh 8y agoWhy wouldn't D work on microcontrollers? Runtime is too big? GC too difficult to avoid? Even in -betterC territory?
- creatornator 8y agoCompiling the hello world with -betterC yields a binary of size 8.2K. Seems small but when your microcontroller has 8K of program space that's just untenable. Of course those small micros are getting rarer nowadays when a large AVR and ARM micros are cheap, but there is still an entire range of minimal microcontrollers that are extremely limited in resources.
- dingo_bat 8y agoIt's the opposite. If C++ doesn't cut it for your particular niche you go to rust.
- thosakwe 8y agoAgreed, I actually really like C++ nowadays. I usually tinker with compilers in higher-level languages, but my current project I'm using LibJIT, and wanted to go all-native. I've had a blast with OOP in C++, believe it or not, and writing my recursive descent parser, symbol table, and analyzer felt like working with a higher-level language.
- qubax 8y agoWhy not implement standard data structures? Or system programs ( ls, ping, etc )? Or a compiler ( a subset of C perhaps )? Hell a basic http server or sqlite clone? There's an endless list of projects you could do in C++ if you really wanted to.