News for hackers. Stuff that matters.
Re:Is the C++ preprocessor still needed? by andrepd on Wednesday May 10, 2017 @11:03AM (#14308710)
C++ and Java are absolutely not similar in terms of performance. Java requires a virtual machine, C++ compiles to binary. Not in the same league.

And in regard to the first draft of a C++ program being slow until you spend lots of time optimizing it, when comparing to say Haskell, that is not at all my experience. I'm generally able to write clean and efficient programs in C++ on the first draft, and they are invariably more performant than if I had written it in a slower language, without a significantly greater amount of effort.

Re:Is the C++ preprocessor still needed? by pjmlp on Wednesday May 10, 2017 @02:51PM (#14310619)
Java doesn't require a VM per se, there are plenty of commercial JDKs that compile straight into native code.

In case you want to state that a VM is like a language runtime in that case, C++ also needs one for handling exceptions, RTTI, global constructors/destructors, floating point emulation,...