3 ms·
Yeah Go just has those as internal dependencies in the stdlib. That _is_ the tradeoff - Rust builds up from nothing and makes it friction-less to add a new dep
by ReactiveJelly 5y ago
Yeah Go just has those as internal dependencies in the stdlib.
That _is_ the tradeoff - Rust builds up from nothing and makes it friction-less to add a new dependency. Go starts at a higher level and the friction for adding new stuff is high. And some of the high-level stuff, like the GC, can't be removed.
- lumost 5y agoRusts ability to squeeze into small footprints is a huge part of the appeal. I don’t think that that excuses the exceptional difficulty of writing a web server or client in rust relative to other languages. How often are folks writing applications that don’t need to connect to the web these days?
- kibwen 5y ago> How often are folks writing applications that don’t need to connect to the web these days? For Go, perhaps rarely. For Rust, not needing to touch the web is extremely common. Let's also keep in mind that Rust's stdlib does include IP, TCP, and UDP.
- at_compile_time 5y agoI just tested this. It took me 43 second to build a new project with reqwest as a dependency. The second build took 0.55 seconds. If that's exceptional difficulty, I'm underpaid. Maybe the lesson here is to update Rust if you haven't used it in a while?
- msbarnett 5y ago> How often are folks writing applications that don’t need to connect to the web these days? In Go? Rarely, I would expect. In Rust, I'd assume connecting to the web is the exception rather than the norm. Most Rust projects tend to be lower-level infrastructure & systems programming. This probably explains, and in turn is explained by, their different choices re: http in stdlib. They have much different aims and target use-case.
- wongarsu 5y agoI didn't find writing a simple web server or client in Rust any harder or simpler than in e.g. Python. What is this exceptional difficulty we are talking about?
- Ar-Curunir 5y agoIt depends on your niche; as a person writing cryptography libraries in Rust, I have never needed to make a HTTP request.
- masklinn 5y ago> How often are folks writing applications that don’t need to connect to the web these days? Every day? I think the only one I've done that in Rust it was through the program I was wrapping anyway.
- mseepgood 5y ago> and the friction for adding new stuff is high Not really, it's just a 'go get'.
- yencabulator 5y agoNot even that really, just import a thing and the next build downloads it.