News for hackers. Stuff that matters.
Re:Porting Rust's Std to Rustix by asplake on Tuesday January 04, 2022 @10:10AM (#29795556)
Possibly dumb q, but potential useful to other languages?
Re:Porting Rust's Std to Rustix by kibwen on Tuesday January 04, 2022 @10:14AM (#29795608)
It looks like the goal of this project is to allow Rust code to avoid having to use FFI to call C code. In order to be useful to non-Rust languages, this project would either have to expose a C-compatible interface for FFI (which somewhat defeats the point of trying to avoid C), or else the other language would need to natively support Rust FFI (which would be a large amount of ongoing labor, since Rust doesn't have a stable ABI).
Re:Porting Rust's Std to Rustix by clhodapp on Tuesday January 04, 2022 @01:43PM (#29798351)
I believe that it would open the door to writing a Linux-only libc in Rust, which could be cool
Re:Porting Rust's Std to Rustix by nicoburns on Tuesday January 04, 2022 @02:31PM (#29799001)
There is in fact already a library that does that https://github.com/redox-os/relibc