2 ms·
> I'm really curious why there aren't more enterprise-grade, production ready kernels at this point. What would be the point? Kernels aren't swappable, and the
by lelanthran 4y ago
> I'm really curious why there aren't more enterprise-grade, production ready kernels at this point.
What would be the point? Kernels aren't swappable, and the value of an OS is in the non-kernel parts - drivers and software.
So a new kernel, even if it is enterprise-grade and production ready, won't run all the things that Linux does. Only for very niche cases, it makes sense (bare-metal hypervisors, or example).
> Projects in C/C++ seem to be making much faster progress eg. SerenityOS than the Rust community. What is holding Rust back in this area?
It's slower to write in, maybe? Unlike traditional projects where the language doesn't matter as much as the libraries available, with OS projects having a huge library doesn't help much.
For example, it might be just as fast to write a data processor in Rust as in C++, because the majority of the code is in already written libraries - you just glue together input libraries, database libraries, etc.
- Ygg2 4y ago> It's slower to write in, maybe? I doubt it. For decades C++ was mocked by Linus as unfit to write kernels in it. But we saw resurgence with new OS like Haiku and Serenity. You need luck to be popular, but it's not enough.
- pjmlp 4y agoAlso, outside FOSS UNIX world, C++ has had a presence already in kernels for quite some time. Even if not for the kernel itself, the drivers make use of C++, naturally a subset, just like the C for kernel space isn't ISO C proper.
- roguebantha 4y agoMy understanding is that Rust is particularly lacking in the hardware interface area - a feature of incredible importance for kernels. In fact, that is the Kernel's primary function - to serve as an interface between user programs and hardware. Without excellent hardware interaction support, it's unlikely to be a good language to write a kernel in.