4 ms·
I've also been trying to learn system programming for a while and what did the trick for me was finding a way to use the C interfaces that UNIX provides. I've
by _benj 5y ago
I've also been trying to learn system programming for a while and what did the trick for me was finding a way to use the C interfaces that UNIX provides.
I've tried to learn C probably 4 times now and I just don't like it. But then I came across LuaJIT ffi which, very easily allows you to use whatever shared library and call whatever syscalls directly and that was a game changer!
After that I decided to test ziglang, which a big part of it's design decisions is interoperability with C, and I'm in love with it! It really feels like anything I would need C for I can do in zig.
If Rust if your jam find a way to call the linux syscalls directly from Rust, not just using a cargo library, but actually importing the appropriate headers and successfully doing an epoll or something.
It will feel like suddenly the man (3) pages all make sense and are extremlly useful!
Good luck!