Hacker News new | past | comments | ask | show | jobs | submit login

Do you suggest they should use raw system calls? On most systems your options are either calling standard C functions or doing raw calls (not portable).

Someone did start a C stdlib implementation in Rust, but it appears to be inactive: https://github.com/mahkoh/rlibc

Yes, the right thing is to port your language's standard library to whatever operating system you want to run on ... just like libc did.

You could have a dummy version that just calls out to libc, for compatibility with systems that you haven't finished porting to yet.

And what about systems that don't have a stable interface below dynamically linking that platform's system-provided libc? Just let every program break when the system updates?

See also: https://github.com/lrs-lang/lib which is (I think?) meant to be a different language from rust, but the principle is there.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact