The Case for Rust in the base system
mail-archive.freebsd.org
The Case for Rust in the base system
1–10 of 155 posts
Re: The Case for Rust in the base system
#2[flagged]
Re: The Case for Rust in the base system
#3That would be amazing :D
I run FreeBSD on my servers and use scripts to manage jails and send and receive ZFS snapshots between hosts.
I've been wanting to write some more robust tools of my own for those things, than the scripts I have now, and my favourite programming language is Rust!
Re: The Case for Rust in the base system
#4I am not familiar with FreeBSD's development model. What constitutes the "base system"?
Re: The Case for Rust in the base system
#5Very naive question. What's the main selling point of Rust besides being stably sponsored by Mozilla?
Re: The Case for Rust in the base system
#6Very naive question. What's the main selling point of Rust besides being stably sponsored by Mozilla?
In short: the type system is significantly more expressive and encourages domain modeling that tends to lead to fewer errors; "if the compiler says it's OK, it'll be OK" isn't strictly true but it's often pretty close. Rust also offers stronger guarantees around memory safety than C, as well as C++ as commonly practiced. (Which is to say, you can write very memory-safe C++, but you will work at it.)
Re: The Case for Rust in the base system
#7I am not familiar with FreeBSD's development model. What constitutes the "base system"?
The kernel, libc (they tie libc to the kernel unlike Linux), and a standard suite of programs.
Re: The Case for Rust in the base system
#8> fusefs tests. Absolutely impossible to do in C. I considered Rust, but went with C++ so they could live in base. They are too closely coupled to fusefs(5) to live out-of-tree.
Can anyone comment on why this is impossible in C?
Re: The Case for Rust in the base system
#9Very naive question. What's the main selling point of Rust besides being stably sponsored by Mozilla?
The build tools are incredible. That's the main reason many people love Rust.
For kernel dev however, the memory safety is a big win.
Re: The Case for Rust in the base system
#10Very naive question. What's the main selling point of Rust besides being stably sponsored by Mozilla?
Statically checked memory management
Advanced typing
Build tools