Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Conan indulges the fantasy that c++ code is packageable. Sorry, in 2023 the only portable way to distribute c++ libraries is still by source. This is why header only libraries are so desirable.


Portable in what dimensions? There's no portable way to describe how to build an archive containing C++ source code.


I've been using Conan for years with great success. I think you might have missed the documentation: https://docs.conan.io


conan begs to differ. they distribute binary packages for many options: arch, compiler, debug/release, flags, custom, ...


Conan can beg to differ all they want. Offering source meets all of those needs without have to rely on a third party guessing your needs.


Conan is a cooperate packaging framework, which obviously favors binary packages over source-only. And there's no guessing, all the options are hashed, and the binary is based on this hash. A single option change leads to different binaries.

Even in open source it's extremely important to use proper options (arch, flags, deps in which variant, ...). E.g. with something Debian or Redhat they decide on these options. With conan you can decide by yourself. E.g. use better hardening flags or a better libc or a more stable dependency package.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: