4 ms·
Don't forget fuchsia. It has over 800k lines of Rust (not counting dependencies, then it has >2M): https://i.imgur.com/gknVmYk.png https://i.imgur.com/gknVmYk.p
by est31 6y ago
Don't forget fuchsia. It has over 800k lines of Rust (not counting dependencies, then it has >2M): https://i.imgur.com/gknVmYk.png https://i.imgur.com/gknVmYk.png
- busterarm 6y agoIts kernel is still predominantly C++ & Assembly.
- steveklabnik 6y ago... but since Fuchsia is totally-not-a-microkernel, a lot of stuff that would be in the kernel in, say, Linux, is not in the kernel in Fuchsia.
- pjmlp 6y agoTrue, but outside of the kernel the official SDK languages are C++, Go and Dart.
- est31 6y agoThe "kernel" of fuchsia is a microkernel, but when one talks about the Rust-free core of fuchsia, people usually mean the "zircon" component that encompasses both the microkernel as well as core utilities. Around this zircon component they built a set of higher level components. They'd still be considered important parts of an operating system. E.g. things like a bluetooth stack. The SDK you mention is for end user programs targetting the OS.
- steveklabnik 6y agoYou're conflating two different things; outside the kernel, but inside of the OS, you can use Rust. They are using an increasing amount of it, as the other comment shows. What you're talking about is the SDK for people writing applications to run on top of Fuchsia.
- mbStavola 6y agoI'm not sure that this is true. The documentation on fuchsia.dev heavily references Rust, and there is even documentation for usage with FIDL. I don't see anything explicitly relegating Rust usage to the kernel or even drivers. Seems like anything is fair game and "official." Is there another source you are referencing?
- steveklabnik 6y agoHe's talking about https://fuchsia.dev/fuchsia-src/contribute/governance/policy/programming_languages https://fuchsia.dev/fuchsia-src/contribute/governance/policy...
- Jyaif 6y agoThe summary of this page is essentially: For the kernel: C, C++ For the rest of the OS: C, C++, Dart, Rust For the "end-developers" (=regular app developers): C, C++, Dart
- deleted 6y ago[deleted]
- est31 6y agoThe kernel is not what makes fuchsia special. There are plenty of kernels out there. The code around the kernel is far more mission critical to the success of the fuchsia product. In fact, if you remove the kernel, Rust is the main language of fuchsia already.