News for hackers. Stuff that matters.
Re:“Modern” C++ Lamentations by kodemizer on Saturday December 29, 2018 @03:32AM (#18782651)
I'm not sure when the last time you've used Rust is, but that hasn't been true in quite a while (not sure how long exactly). Cargo now has incremental compilation, and it's turned on by default. It's great!
Re:“Modern” C++ Lamentations by pjmlp on Saturday December 29, 2018 @03:51AM (#18782712)
I dabble on Rust regularly, usually during plane or train trips.

It still doesn't do incremental linking, and cargo still builds everything from scratch without any support for binary libraries.

Re:“Modern” C++ Lamentations by kzrdude on Saturday December 29, 2018 @08:28AM (#18783469)
Binary libraries don't help so much -- many libraries use generic types and functions (those are instantiated and compiled for each specific instance) which can only be delivered as library "metadata", not codegen'ed, and the latter is the very slow part.
Re:“Modern” C++ Lamentations by pjmlp on Saturday December 29, 2018 @09:06AM (#18783587)
Wrong since C++11 introduced external templates for common instatiation types.

Additionally, it is not like every C++ library is full of meta-programming templates.

Finally, there are other languages with library "metadata" and generic data types, which can easily beat Rust compile times like Delphi, Eiffel and Ada.

Re:“Modern” C++ Lamentations by pcwalton on Monday December 31, 2018 @06:55PM (#18797930)
Delphi and Eiffel compilers don't do anywhere near the same level of optimization as LLVM does.

And are you sure GCC's Ada has better compile times? My sense is that so few people use Ada at scale that we don't really know.