Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Sunday, 31-Mar-2024 04:14:28 JSTHaelwenn /элвэн/ :triskell: @lispi314 @halva @ipg If you target Linux yeah it's somewhat doable (although like strace does you'd need to parse C headers at one point, good luck).
But if you want portability… nope.
https://utcc.utoronto.ca/~cks/space/blog/programming/GoCLibraryAPIIssues
https://utcc.utoronto.ca/~cks/space/blog/unix/CLibraryAPIRequiresC
And sadly the Linux kernel isn't the only ABI you need to care about, like if you do OpenGL/Vulkan/… you'll end up with having to deal with C.
(And there's core system libraries that are very security-sensitive like the nsswitch.conf stuff and pam where it's stuck to C)