logoalt Hacker News

mbrockyesterday at 4:13 PM1 replyview on HN

It would work basically the way it works on Linux? What makes you think it's somehow fundamentally Linux-specific?


Replies

steveklabnikyesterday at 4:24 PM

On non-Linux platforms, you must go through a system provided shared library rather than make syscalls directly. fil-c has its own ABI, and so it has its own libc that uses it. You cannot recompile those other systems's libc (or equivalent) with fil-c, therefore, the strategy used on Linux cannot work.

This is one reason why Rust has unsafe: you have to interact with inherently unsafe APIs in order to do anything meaningful with the operating system. fil-c needs an equivalent of some kind, and so isn't better or worse here, it's just the reality of how these systems work.

show 1 reply