Re:Swift Static Linux SDK
by PaulDavisThe1st on Wednesday June 12, 2024 @09:19AM
(#40657820)
> My feeling is that making it super easy to pull 50 transitive dependencies without realizing it does not help
What is it that makes you think that C/C++ does not do this also?
[ EDIT: this also has something to do with the typical size and scope of C/C++ libraries ]
> What is it that makes you think that C/C++ does not do this also?
My experience. I haven't worked in a single C++ project that had hundreds of dependencies, but I encounter those regularly in Rust/npm.
Re:Swift Static Linux SDK
by PaulDavisThe1st on Wednesday June 12, 2024 @12:38PM
(#40660087)
I would suggest that this caused more by ideas about the appropriate scope and scale of libraries in the 2020s than anything specifically connected to the language in use.
When in C++ I had 2 direct dependencies it resulted in 6 total dependencies (direct + transitive).
In Rust I had 5 direct dependencies (because some standard stuff is not in the standard lib) and it resulted in... 300 total dependencies.
> but it is by no means determined by language or even context.
Not sure what you mean there. My feeling is that making it super easy to pull 50 transitive dependencies without realizing it does not help. If you have to manually handle every single dependency, first it forces you to look at them (that's a good thing), and second it encourages you to minimize them.