Replies: 3 comments 3 replies
-
That's definitely true, C++ didn't have an official package manager, and with my experience using package managers like Cargo, npm, and even Zig's package manager, I feel like the way Cargo was done is so far my favourite, and could be a good base of inspiration (using github to be the package management is really not ideal cough cough Go). |
Beta Was this translation helpful? Give feedback.
-
A package manager is planned. The current priority is providing a compiler for language evaluation, for the 0.1 milestone. A package manager will probably be started before the 1.0 milestone, but there's not a specific milestone for it right now. cargo's sure to be an inspiration, but I don't think there's been much design discussion. Although we use bazel to build carbon, the intent is to make the carbon compiler work more broadly with other build systems (e.g. cmake), fitting in similar to clang. The language tools and ecosystem goal is related here and may also provide some helpful info. |
Beta Was this translation helpful? Give feedback.
-
How would a package manager distribute packages from a centralized index? I believe currently cargo builds each package from source, but for non-open source dependencies this may be a problem. If we were to only distribute the binaries (assuming that carbon is intended to support the wide range of platforms that C++ currently supports) carrying the binaries for every single combination of OS, CPU architecture, kernel, etc seems very expensive and unfeasable. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I figured out how to compile this repo locally on my WSL2. It's not a surprise to see this project is built by
bazel
(which is need JDK) like other google repos. I wasted some time with bazel.But it reminded me on another topic, what will be the build tool/package manager for Carbon?
rust has cargo and C++ failed at that part. I hope one day carbon will fix it as the second mistake of c++ ( the first mistake of c++ is the template thing)
I checked the current carbon, it seems that
carbon
itself will the be build tool, then we only need the package manager :-)Beta Was this translation helpful? Give feedback.
All reactions