←back to thread

239 points ivankra | 9 comments | | HN request time: 1.143s | source | bottom
Show context
cluckindan ◴[] No.45944902[source]
Memory safety is one of Rust’s biggest selling points. It’s a bit baffling that this engine would choose to implement unsafe garbage collection.
replies(5): >>45945042 #>>45945421 #>>45945492 #>>45945613 #>>45945847 #
the__alchemist ◴[] No.45945847[source]
IMO the memory safety aspect is overblown by enthusiasts and purists. Rust is an overall nice fast imperative language.
replies(1): >>45946021 #
1. phplovesong ◴[] No.45946021[source]
Rust WAS really nice before it got mangled with syntax like we never seen before. Graydon did not imagine rust as what it is today. Rust core wo. async is ok, but in practice rust projects tend to have hundreds of deps and really slow compiles. Its just like javascript with npm.
replies(3): >>45946339 #>>45946744 #>>45947876 #
2. swiftcoder ◴[] No.45946339[source]
> in practice rust projects tend to have hundreds of deps

That's really just any language with a built-in package manager. Go somewhat sidesteps this by making you vendor your dependencies, but very few other languages escape the ballooning dependency graph.

replies(1): >>45946721 #
3. phplovesong ◴[] No.45946721[source]
Go has probably more packages than Rust, but i rarely see Go projects that use as many as rust. In Go the usuals are depending on the app, possibly some db drivers, a simple router and maybe some crypto related thing. Most projects do fine with just the stdlib. In rust i tend to see 100 deps, and 1000 transient deps. Compile times are not in seconds, but minutes.
replies(1): >>45947415 #
4. the__alchemist ◴[] No.45946744[source]
This is a concern when viewing the Rust experience. It can be avoided by judiciously choosing dependencies that you need, and that have shallow trees of their own. I like to distinguish the rust lang from The rust OSS community. They overlap, but can be treated separately if you exercise case.
5. swiftcoder ◴[] No.45947415{3}[source]
You can do that just fine in Rust too, for example the Makepad[1] developers take a pretty extreme non-invented-here stance, and builds a full UI toolkit with no external dependencies (and a major focus on clean-build compile times).

However, it isn't really part of the Rust OSS culture to operate like that. The culture typically values safety over compile times, and prefers to lean on a deep stable of battle-hardened abstractions.

[1]: https://makepad.nl, https://github.com/makepad/makepad

replies(1): >>45951047 #
6. VerifiedReports ◴[] No.45947876[source]
"like we never seen"?
replies(1): >>45979083 #
7. hu3 ◴[] No.45951047{4}[source]
It's still hundreds of functionalities that they have to maintain themselves instead of leveraging a much more battle tested stdlib.
8. phplovesong ◴[] No.45979083[source]
Yes. Rust syntax is aweful for no real reason.
replies(1): >>46041499 #
9. VerifiedReports ◴[] No.46041499{3}[source]
Appalachian++