←back to thread

291 points love2read | 2 comments | | HN request time: 0.402s | source
Show context
ActorNightly[dead post] ◴[] No.42477322[source]
[flagged]
zxvkhkxvdvbdxz ◴[] No.42477684[source]
With rust having recently entered the Linux kernel, Windows 11, qemu among others where Haskell never took a hold, I really fail to see where you feel the wind is blowing.

The thing is, rust is used today in more and more places because it's reliable. We're not going to switch out the ground we are standing on every time something shiny comes along and that's why this is such an interesting development.

replies(2): >>42480402 #>>42499048 #
1. ActorNightly ◴[] No.42499048[source]
Just because you have tiny pieces being written in it doesnt mean its getting adopted. Its way too cumbersome to write entire OS in it - all the example projects like AWS Firecracker end up with tons of unsafes. And its runtime components for dynamic memory stuff eat into efficiency.

Basically a more expansive and possibly ML powered valgrind can easily offer the same memory safety as Rust does, without the penalty of slower development and efficiency hits, so Rust adoption is "unstable" i.e its just a nice improvement but not does not give a hard advantage in any form and way.

replies(1): >>42536639 #
2. zxvkhkxvdvbdxz ◴[] No.42536639[source]
> Its way too cumbersome to write entire OS in it

Not at all. See https://www.redox-os.org/

and many more: https://github.com/flosse/rust-os-comparison

> all the example projects like AWS Firecracker end up with tons of unsafes.

That's a good thing. With rust you are explicit about unsafe.

> Basically a more expansive and possibly ML powered valgrind can easily offer the same memory safety as Rust does, without the penalty of slower development and efficiency hits

It is apparent that you have no experience from rust, and I wonder if you have used valgrind much too, as you seem unaware about the huge overhead from running your app through valgrind.

Rust's error messages are precise, while valgrind is a crapshow to work with, as you should know since you mentioned it?

> so Rust adoption is "unstable" i.e its just a nice improvement but not does not give a hard advantage in any form and way.

It's used in production in several high profile projects, some that I already mentioned. Apparently smart people do see advantages.