Re:The Rust compiler isn't slow; we are
by g_airborne on Wednesday June 17, 2020 @05:02AM
(#23549330)
You could say that Rusts great dependency management is both a blessing and a problem at the same time. C programmers, often motivated by resource constraints, are much less likely to use third party dependencies - not just to save resources but also because it is just much harder to do it and to do it well. They end up just rewriting the parts they need themselves. Because those parts are likely a small subset of a full-featured library, binary size and compile times are smaller at the expense of actual time spent writing code.
[ Parent
| on HN ]
Re:The Rust compiler isn't slow; we are
by indogooner on Wednesday June 17, 2020 @05:09AM
(#23549371)
Also add the time maintaining that code.
Re:The Rust compiler isn't slow; we are
by sheeshkebab on Wednesday June 17, 2020 @08:21AM
(#23550490)
Do we also need to add the time tracking down issues and dealing with all the licensing and churn issues in mostly unstable third party rust dependencies?
I'm about to ship my first Rust project for a client that actually cares about licensing stuff. It's trivial to add a new line to Cargo.toml, but can you legally redistribute it? What MIT-style copyright lines do I need to ship in our License file? Well, let's list the project dependencies and find out how many packages I need to go examine:
$ ~/.cargo/bin/cargo-tree tree --no-indent | cut -f1 -d' ' | sort | uniq | wc -l
61
Oi. I'm not sure this language dependency management thing is such a good idea.
Re:The Rust compiler isn't slow; we are
by steveklabnik on Wednesday June 17, 2020 @09:43AM
(#23551258)
You might like https://github.com/embarkstudios/cargo-about
That looks fantastic, thank you.
Re:The Rust compiler isn't slow; we are
by wizzwizz4 on Wednesday June 17, 2020 @09:30AM
(#23551126)
I'm working on a crate that'll build a String satisfying all the license requirements of a Cargo project's dependencies – you should be able to put that in a build script, include_str!() the file that the build script spits out, then display that string in the About box (like the convention of Windows Forms programs).
Of course, if anybody knows of an existing crate that does that, it'd save me the effort.
For a more polyglot license grep thing, I built https://github.com/akx/license-grep once upon a time. :)
Re:The Rust compiler isn't slow; we are
by jfkebwjsbx on Wednesday June 17, 2020 @08:34AM
(#23550607)
> much harder to do it
What is harder? It is a single command to install most dependencies.
Using a C dependency is super easy from most languages, including C itself, of course.
> binary size and compile times are smaller at the expense of actual time spent writing code.
Nobody writing C professionally is doing that for those reasons unless the library is trivial.