5 ms·
why doesn't t Go just uses "syscalls" in macos too?
by ithrow 4y ago
why doesn't t Go just uses "syscalls" in macos too?
- aviramha 4y agoThey tried but macOS doesn’t have any user<>kernel stable API so you have to rely on libsystem to provide it. (It broke very often so they changed it to use libsystem)
- infiniteregrets 4y ago> Go used to do raw system calls on macOS, and binaries were occasionally broken by kernel updates. Now Go uses libc on macOS, and binaries are forward compatible with future macOS versions just like any other C/C++/ObjC/swift program. OS X 10.10 (Yosemite) is the current minimum supported version. also found a discussion - https://news.ycombinator.com/item?id=18439100 https://news.ycombinator.com/item?id=18439100 that points to why this might be the case