Zero.rs: runtime-less Rust programs
github.com
github.com
- Write a Rust garbage collector in Rust, hell, rewrite the Rust runtime in Rust.
- Do a Linux kernel module.
- Or a bootloader.
- Or an entire OS.
This is a great demonstration. It's one thing to know that something can be done, seeing a concrete example is invaluable.
And now I'm kind of itching to write that bootloader.
The runtime is currently being rewritten to Rust[1], and the GC-in-Rust is almost complete[2] (as far as I understand it).
[1]: Work in progress: https://github.com/mozilla/rust/tree/incoming/src/libstd/rt
Early I/O performance numbers for the new scheduler are quite encouraging. (Nothing to post yet, as we need to do more measurements before we can definitively talk about performance, but you can find numbers in the issue tracker if you're curious.)
Great job btw!
unsafe { *(123 as *mut uint) = 4567; }This is simply a tiny alternate implementation of all the lang items on top of the C library.