News for hackers. Stuff that matters.
Re:Show HN: Building a web server in assembly to give my lif... by mappu on Sunday May 10, 2026 @01:44AM (#48081329)
Syscalls on macOS aren't guaranteed to be stable - Go found out the hard way and in 1.12 they changed to call libSystem.dylib instead.

In general, stable syscall numbers are just a Linux thing. Everyone else uses blessed system libraries

Re:Show HN: Building a web server in assembly to give my lif... by imtomt on Sunday May 10, 2026 @02:00AM (#48081391)
Yeah, I know MacOS syscalls aren't stable. Interesting point about Go, I hadn't heard about that. Unfortunately I'm a masochist though, and want to avoid libSystem.dylib as much as possible. The only reason I link against it at all is because MacOS requires it for executables to run, I never actually call into it. Figured I'd just update the syscall numbers if/when they change.
Re:Show HN: Building a web server in assembly to give my lif... by not_a9 on Sunday May 10, 2026 @05:48PM (#48088446)
You could also do a trick some Windows stuff does - parse syscall indices from said dylib.