For each piece of software, there just be a version in Rust, and that version must advertise it's rustiness
Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
11–20 of 196 posts
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#12A star has been born. A Linux alternative needs to be compatible with Linux binaries and also support modern architectures. If you want Linux to survive, it needs to be re-written from scratch, optimised in Rust and compatible with the existing Linux binaries or drivers. This project might have a chance. From: [0] > TL;DR: I'm writing a Linux clone in Rust just for fun. It does NOT aim to replace the Linux kernel. A…
sigh... Linux is going to survive. And no it does not need to be re-written from scratch in Rust. Someone lied to you at the church of rust.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#13A star has been born. A Linux alternative needs to be compatible with Linux binaries and also support modern architectures. If you want Linux to survive, it needs to be re-written from scratch, optimised in Rust and compatible with the existing Linux binaries or drivers. This project might have a chance. From: [0] > TL;DR: I'm writing a Linux clone in Rust just for fun. It does NOT aim to replace the Linux kernel. A…
Absolute codswallop. Linux will be here for many, many years to come yet.
Why do you think the Linux developers are bolting on Rust in the Linux kernel themselves? [0]
It has already been admitted.
[0] https://lore.kernel.org/lkml/20210704202756.29107-1-ojeda@ke...
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#14A minimal interactive demo running busybox is here: ssh root@kerla-demo.seiya.me
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#15I think a killer feature would be to emulate the Linux kernel device driver model such that existing C driver modules could be used with Kerla. Further, borrow (no pun intended!) the Linux device driver Rust wrappers from the Rust for Linux kernel project to then enable writing Linux device drivers in Rust.
The question is whether emulating the Linux device driver model (by which I kind of mean mimicking the set of core kernel services needed to support drivers - kernel threads, sync primitives, allocators etc) ends up being a massive task akin to writing the core kernel itself.
I think there might be reasonable trade offs that make the problem more tractable.
Having the ability to have a significantly simpler kernel with Rust’s memory and thread safety guarantees plus the ability to use even a small set of Linux’s massive set of drivers would be very compelling.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#16A big problem in the Rust ecosystem is the lack of continued work and support on libraries (understandably, since many are new and aren't commercially supported).
For example, pyroute2 is still better for Linux admin that the equivalent Rust crates. Whilst the latter often fully support async, none of them cover all of the features of pyroute2 nor the easy-to-use API.
Hopefully things will improve over time, it's always a shame to see great projects be abandoned.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#17For each piece of software, there just be a version in Rust, and that version must advertise it's rustiness
The type of software makes the difference - does it process untrusted input, maybe even over the network? This here is a kernel including a memory-safe TCP/IP stack ( https://github.com/smoltcp-rs/smoltcp/ ), and not having it crash or be full of security vulnerabilities due to preventable memory corruption is a quality beyond personal language preferences.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#18For each piece of software, there just be a version in Rust, and that version must advertise it's rustiness
Mozilla decided to create Rust after years of using C/C++. Why?
Because they spent a fortune fixing the same problems over and over again, and they realized that no matter how clever their developers were, those problems were always going to arise as long as they kept using C/C++.
Not because C/C++ is inherently bad, but because is more flexible than strictly needed in some ways.
Rust was designed to prevent many classes of problems.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#19Earlier quoted context omitted.
sigh... Linux is going to survive. And no it does not need to be re-written from scratch in Rust. Someone lied to you at the church of rust.
But its a fun thing to do, and that's a good enough reason to do it. After all is that not exactly how Linux came into being anyway.
My assumption is that all titles with Rust get blind upvotes, sure a new kernel is cool but would be more cool if is more then someone toy project, this should probably be posted and upvoted in Rust forums so it gets support from the fans and hopefully the Rust guys will decide what kernel should they focus on and stop promoting every student weekend project here.
Re: Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
#20Very cool! I think a killer feature would be to emulate the Linux kernel device driver model such that existing C driver modules could be used with Kerla. Further, borrow (no pun intended!) the Linux device driver Rust wrappers from the Rust for Linux kernel project to then enable writing Linux device drivers in Rust. The question is whether emulating the Linux device driver model (by which I kind of mean mimicking t…