9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions
comment 6y ago · link · parent
But you were talking about generics, which implied you were incorrectly conflating that with template meta-programming, since generics are done with templates.
> I don't think of them as a practical way to do compile time computation
Templates are however the most flexible, advance technique for C++ compile-time programming, though the C++ standard is evolving to bring more and more of those features into the language without using templates, i.e. "constexpr if".
My recommendation would be to avoid speculating on what the benefits are of a language or its features if you clearly don't have serious experience using them. It's fine if C++ is not for you.
comment 6y ago · link · parent
While you can certainly do without generics in the language, as proven by the success of many many languages, perhaps at the inconvenience of some developers, compile time meta programming is an entirely different area that only few languages really support. The high frequency trading firms and the game studios I have partnered with are typically using C++ specifically for those compile time programming features. They make dramatic performance differences in a wide range of highly specialized algorithms.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Edit: Thanks for all the upvotes. I'm glad some in the HN crowd appreciate quality over shortcuts and spoilers. (I was starting to get discouraged!)
comment 6y ago · link · parent
comment 6y ago · link · parent
https://www.barrons.com/articles/apple-stock-services-busine...
It’s not all about the hardware anymore.
comment 6y ago · link · parent
comment 6y ago · link · parent
Also, Mac is a certified UNIX environment, it is native.