News for hackers. Stuff that matters.
Re:C++ vs. Rust Build Times by mgaunard on Friday January 06, 2023 @05:19AM (#34273058)
Importing binary packages is a terrible idea, and a source of huge problems.

I don't understand how conan managed to get so much traction, it is so very bad, most of its recipes have billions of options most of which don't work.

The only sensible way to work with C++ is to always build from source, and let the build system transparently cache and reuse binary artifacts as an optimization.

Re:C++ vs. Rust Build Times by pjmlp on Friday January 06, 2023 @05:47AM (#34273251)
Not when one's business depends on shipping binaries, and selling components.

Then again, it isn't something that is relevant in GNU/Linux world, only in other platforms.

Re:C++ vs. Rust Build Times by mgaunard on Friday January 06, 2023 @11:55AM (#34277240)
There is nothing special about GNU/Linux is that respect.

You would still build your code from source, and be very careful handling any dependencies you don't have the source for.

The worst kind of undefined behaviour you can have in C++ is ODR violations, and importing binaries is more likely than not to trigger them, unless you closely manage their ABI.

Re:C++ vs. Rust Build Times by pjmlp on Friday January 06, 2023 @04:06PM (#34281058)
Yes, there is, the culture towards shipping binaries, or selling component libraries.
Re:C++ vs. Rust Build Times by vegerot on Friday January 06, 2023 @06:51PM (#34283120)
I think you two are talking past each other. He’s talking about hypotheticals, and you’re talking about what’s more common
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @05:55AM (#34273317)
> Importing binary packages is a terrible idea, and a source of huge problems.

Importing binary packages is a tradeoff.