News for hackers. Stuff that matters.
Re:Apple Announces Foundation Models and Containerization fr... by msgodel on Monday June 09, 2025 @03:38PM (#44228513)
If they implemented the Linux syscall interface in their kernel they absolutely could.
Re:Apple Announces Foundation Models and Containerization fr... by vips7L on Monday June 09, 2025 @04:00PM (#44228765)
Aren't the syscalls a constant moving target? Didn't even Microsoft fail at keeping up with them in WSL?
Re:Apple Announces Foundation Models and Containerization fr... by asabil on Monday June 09, 2025 @04:22PM (#44229018)
Not Linux syscalls, they are a stable interface as far as the Linux kernel is concerned.
Re:Apple Announces Foundation Models and Containerization fr... by koito17 on Monday June 09, 2025 @04:48PM (#44229309)
Linux is exceptional in that it has stable syscall numbers and guarantees stability. This is largely why statically linked binaries (and containers) "just work" on Linux, meanwhile Windows and Mac OS inevitably break things with an OS update.

Microsoft frequently tweaks syscall numbers, and they make it clear that developers must access functions through e.g. NTDLL. Mac OS at least has public source files used to generate syscall.h, but they do break things, and there was a recent incident where Go programs all broke after a major OS update. Now Go uses libSystem (and dynamic linking)[2].

[1] https://j00ru.vexillium.org/syscalls/nt/64/

[2] https://go.dev/doc/go1.11#runtime

Re:Apple Announces Foundation Models and Containerization fr... by my123 on Tuesday June 10, 2025 @08:24PM (#44242991)
arm64 macOS doesn't even allow statically linked binaries at all.

on the windows side, syscall ABI became stable since Server 2022 to run mismatched container releases

Re:Apple Announces Foundation Models and Containerization fr... by PhilipRoman on Monday June 09, 2025 @05:30PM (#44229733)
They're not really a moving target (since some distros ship ancient kernels, most components will handle lack of new syscalls gracefully), but the surface is still pretty big. A single ioctl() or write() syscall could do a billion different things and a lot of software depends on small bits of this functionality, meaning you gotta implement 99% of it to get everything working.
Re:Apple Announces Foundation Models and Containerization fr... by NewJazz on Monday June 09, 2025 @04:00PM (#44228769)
They didn't.
Re:Apple Announces Foundation Models and Containerization fr... by rjsw on Monday June 09, 2025 @06:19PM (#44230171)
FreeBSD and NetBSD do this.