In this thread: people starting to get mad about stuff I was mad about 4 years ago.https://reddit.com/r/programming/comments/51974o/the_cost_of_small_modules_in_the_javascript/ …
-
-
Replying to @tomdale
The best part about being ahead on the caremad curve is you have extra time to resign yourself to your fate.
2 replies 3 retweets 16 likes -
Replying to @tomdale
the real issue is that npm, which people credit for the small module revolution, is unusually bad at small modules.
3 replies 10 retweets 24 likes -
rust also has a small-modules bias, but I tried to learn from npm and make cargo *good* at small modules.
4 replies 2 retweets 9 likes -
Is the goodness mostly due to Rust compiler optimizations or is there something inherent in Cargo as well?
1 reply 0 retweets 0 likes -
I cover it somewhat here. https://blog.rust-lang.org/2016/05/05/cargo-pillars.html … - pretty different from https://docs.npmjs.com/how-npm-works/npm3-nondet …
1 reply 2 retweets 9 likes -
@rustlang determinism itself isn't magic, but little modules often are shared (react, promise libs) and dups won't do1 reply 0 retweets 1 like -
npm3 reduces dups, but not reliably, which just makes the remaining problems even more baffling.
2 replies 0 retweets 2 likes
"just rm -rm node_modules && npm install" "worked for me" "ok closing" "doesn't work for me!" "can't repro sorry"
-
-
Ah, I see. Relies on SemVer to reduce dups then. Exposing types from a dep would still be an issue for interop...
1 reply 0 retweets 0 likes -
right :)
0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.