2 ms·
How do you solve this for other languages you use?
by selfmodruntime 2y ago
How do you solve this for other languages you use?
- armitron 2y agoOur main languages are Go and OCaml. We can leverage third party libraries without easily running into transitive dependency hell as there’s an implicit understanding in these communities that large number of dependencies is not a good thing. Or, expressed differently, there is coarser granularity in what ends up being a library. This is not the case with Cargo which has decided to follow the NPM approach.
- lifthrasiir 2y agoAt least in my experience, Go packages and Rust crates are much coarser than NPM packages. (Look at actual direct and indirect dependencies in cargo-watch to judge it by yourself.) I think Go prefers and actually has resource to keep mostly centralized approaches, while Rust crates are heavily distributed and it takes longer for the majority to settle on a single solution.
- hu3 2y agoI've seen this approach go a long way with languages that have a large standard library. Go and C# .NET comes to mind.