4 ms·
In theory you could later implement libc (libcrust. calling it now) in Rust as well so you get the best of both worlds couldn't you?
by noir_lord 12y ago
In theory you could later implement libc (libcrust. calling it now) in Rust as well so you get the best of both worlds couldn't you?
- vezzy-fnord 12y agoI'm not sure if it makes any sense to implement libc in anything other than C.
- yellowapple 12y agoIt would be an interesting experiment, seeing as how Rust code can be called from C and vice versa. There's already been some tinkering on various operating system kernels written in Rust (even if they don't do much besides printing "Hello, world!" quite yet), so I figure a pure-Rust standard library is the next step in that.
- kibwen 12y agoThis is actually a project I have considered with in the past, though not very seriously. Theoretically you could completely replace libc with a Rust implementation and use it system-wide, and the rest of your programs would be none the wiser. It's a non-trivial amount of effort, however. :)