Rust in the NetBSD Kernel, and other odd decisions

46 points by jaypatelani


lorddimwit

NetBSD has Lua in the kernel and that’s so much cooler anyway.

gerikson

Has the attitude to Rust in OpenBSD changed in 8 years?

https://lobste.rs/s/4cf21p/re_integrating_safe_languages_into

pointlessone

Is Rust community actually so cutting-edge-oriented that 1.41 would be useless?

When I’m looking for a crate I regularly find crates that haven’t been updated for 5, sometimes 8 years. Is minimum supported compiler version pushed solely by tokio or web frameworks, or whatever?

moltonel

FreeBSD is apparently considering incorporating Rust code into the kernel

That seems to be an exaggeration ? The FreeBSD wiki list some not so recent kernel rust experiments and I know the community has discussed using Rust for base system utilities, but I don't think there's similar enthusiasm for Rust in the kernel ?

rtpg

Finally, the release cycles of Rust are not compatible with the NetBSD ones. We support the last two major releases. Today, that’s NetBSD 9 and 10. NetBSD 9.0 was released in 2020. Rust 1.41 was the current version back then. If Rust 1.41 had been part of NetBSD 9, it would be useless for anything except compiling NetBSD itself – Rust 1.41 is so old that basically no modern code would compile with it. Not great.

Maybe I'm misunderstanding something, but if Rust 1.41 got released on NetBSD 9, doesn't "we support NetBSD 9" turn into "we ship Rust 1.42, Rust 1.43, etc on NetBSD 9"? Like "support" turns into "we provide patches and fixes" -> "we provide newer versions"?

I could imagine the NetBSD philosophy being much larger here though.

LAC-Tech

As someone who likes rust this feels like a wise choice. I feel like rust is better suited to building new operating systems.