4 ms·
> However, it might had not spread into the industry as it did. Worse is better. C++ is nothing if not pragmatic, and the core of C++ programmers are similarl
by tfinniga 13y ago
> However, it might had not spread into the industry as it did.
Worse is better. C++ is nothing if not pragmatic, and the core of C++ programmers are similarly pragmatic.
If D or go or rust or whatever else ever become more practical to use than C++, then people will switch. I know C++ is very ugly, but it gives me an unmatched combination of runtime performance, good tools, API/OS compatibility, and acceptable language design. There's a good reason why so many VMs for other languages are written in C and C++, and it isn't elegance.
- pjmlp 13y agoSure, if you look at my history you will see I like C++, just not C. The thing is that many of the WTF people associate with C++, are caused by C underpinnings. > There's a good reason why so many VMs for other languages are written in C and C++, and it isn't elegance. While I do like C++, enough to have lots of C++ books, I only partially agree. I come from the Pascal branch of languages and consider it has more to do with existing toolchain infrastructure than anything else.
- tfinniga 13y agoI agree - the C++ compilers are pretty good, and if the OS is written in C and C++, working with the OS will be simpler if you use C++ than pascal. One thing I've noticed is that the dominant languages for resource-constrained programs all seem to envelop the previous generation. You can embed assembly in C. You can embed C in C++. C++ has yet to be embedded in another language, at least if you want to keep the same memory layout of objects. I'm curious to see if D or some other language can buck the trend.
- pjmlp 13y agoI am quite active in D forums, and also follow Rust closely, given my interest in the ML language family. If you look at the history of systems languages, the only ones that won market share, had the sponsorship of an OS vendor as their official language. Specially because many people hate to write FFI bindings for their favourite language and it doesn't scale to map the full OS API. So the question is which OS vendors would pick the wannabe replacements.