4 ms·
Very cool stuff. But do I understand correctly, that Rust doesn't have any built-in functionality for starting executables? How did a language which the start w
by thinkpad20 13y ago
Very cool stuff. But do I understand correctly, that Rust doesn't have any built-in functionality for starting executables? How did a language which the start was meant for low-level systems programming, go so long without having that built in? I guess one could call into C libraries to do that, but that seems quite unpleasant...
- makomk 13y agoWhat you're missing is that she's writing her own OS in Rust, which means that the OS functionality that Rust would normally use for that doesn't exist unless she writes it.
- deleted 13y ago[deleted]
- Ygg2 13y agoAs makomk noted, you can't call OS from the OS itself. She probably had to throw away most of libstd like zero.rs does for Rust to work at this low level.
- jvns 13y agoYup, all the standard library. If you look at the top of main.rs [1], you'll see #[no_std] which means "don't use the standard library" Instead of the standard library, I use rust-core [2], which provides some of the standard library's features (like the ability to allocate memory). [1] https://github.com/jvns/puddle/blob/master/src/main.rs https://github.com/jvns/puddle/blob/master/src/main.rs [2] https://github.com/thestinger/rust-core https://github.com/thestinger/rust-core