Re:Redox: A Rust Operating System
by Jhsto on Tuesday September 29, 2015 @09:36AM
(#10296144)
I do not understand much about low level languages or operating systems, but could someone explain why does this project need C in its codebase?
[ Parent
| on HN ]
Probably doesn't, but it does currently contain a copy of lua, which is written in C.
Re:Redox: A Rust Operating System
by steveklabnik on Tuesday September 29, 2015 @09:54AM
(#10296273)
There are Rust OS projects with nothing but some assembly and then Rust code, so it shouldn't be strictly required.
Disclaimer: haven't had time to read the code yet.
It is probably easier to do all of the massively unsafe things required to initialize in C than it is in Rust. Then Rust is just used after C does its dirty things.
Re:Redox: A Rust Operating System
by Hemospectrum on Tuesday September 29, 2015 @07:11PM
(#10300499)
That shouldn't ever be necessary. Part of the point of Rust is that you can do unsafe low-level work, so long as you tag it with the "unsafe" keyword to enable pointer arithmetic and so forth.