Hacker News new | past | comments | ask | show | jobs | submit login

> are there any examples for successful implementations for these categories in Rust?

Depends on how you define "successful", I'll toss some things in. This won't be comprehensive.

1. O/S kernels and drivers,

Amazon has multiple projects in this space: Firecracker, Bottlerocket. So does Google: ChromeOS, Fuchsia. Kernel maintainers have said that they would accept non-essential drivers in Rust, but they want some examples first.

2. embedded code for tiny microcontrollers,

Tons of stuff here. Multiple RTOSes like Tock and RTFM. Lots of little projects. One of the first Rust-only consultancies does a lot of embedded contracts.

3. language interpreters/runtimes and JITters,

Most of the languages that have existed are bigger than toys, but don't have large user bases. Gluon and Dyon are two examples. JITs exist but aren't really "production", Cranelift has a JIT for example.

4. bootstrap compilers,

rustc is written in Rust (it does use LLVM though)

5. portable command-line utilities,

Tons and tons and tons. ripgrep is the most famous. On the "portable" end, I'm a Windows user, and most things I try Just Work, though they may print out funny paths sometimes. (if you escape a native\windows\path you'll get a native\\windows\\path since \ ends up getting escaped. Only a display issue though, things still work just fine.)

6. low-level/mixed asm routines for performance,

This isn't "for performance" but I like https://crates.io/crates/x86 as an example here. Inline asm isn't stable yet, but we're getting pretty close, it seems.

7. and the large body of legacy apps of course,

It's not clear to me what this actually means.




Add to #1 Redox.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: