News for hackers. Stuff that matters.
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @01:46AM (#34271737)
> not every C++ project is full of template metaprogramming

You're right. My project is not one of those projects.

As mentioned in the article, the C++ project has no dependencies (outside googletest and the standard library, whose build time isn't included in the benchmarks).

Also, the project is relatively light on templates compared to most C++ code that I've seen. The biggest offenders are narrow_cast and vector.

> Also at least in VC++, modules are already a thing

I'd love to use them, but I mostly work on Linux and macOS. =[

> Still looking forward to binary libraries support in cargo (well one can dream).

I didn't consider this downside of Rust! I imagine rlibs can be cached manually, right? I don't know if rlibs are portable between machines.

Re:C++ vs. Rust Build Times by tumdum_ on Friday January 06, 2023 @03:26AM (#34272344)
> I imagine rlibs can be cached manually, right? I don't know if rlibs are portable between machines.

Is this not what sccache is already doing?