3 ms·
> Rust's philosophy is "batteries not included". In Javascript this led to, well, npm. Because there's no standard library, and everyone ended up reinventing e
by dmitriid 4y ago
> Rust's philosophy is "batteries not included".
In Javascript this led to, well, npm. Because there's no standard library, and everyone ended up reinventing everything.
- sbergot 4y agoI am not sure that python is a shining example for library management. Cargo seems well designed. And the package size is more a cultural thing.
- deleted 4y ago[deleted]
- wongarsu 4y agoAnd Python's philosophy leads to three different HTTP libraries in the standard library, but everyone still just does "pip install requests". It's easy to find drawbacks of either extreme. I find Rust's approach of favoring competing, versioned libraries over standard library inclusion generally works well. Many of the libraries managed to significantly improve performance and ergonomics because they can have space to improve their API, and explore which behaviors and guarantees are useful. The biggest downside is that it's more difficult to protect against supply chain attacks.
- maple3142 4y agoJavaScript certainly has a standard library, it just really small. Node.js have a bigger standard library (https://nodejs.org/docs/latest-v18.x/api/index.html https://nodejs.org/docs/latest-v18.x/api/index.html), including http/https and crypto stuffs and more, they are just not easy to use.