News for hackers. Stuff that matters.
Re:Hooking Go from Rust by ithrow on Friday August 26, 2022 @03:50PM (#32611956)
why doesn't t Go just uses "syscalls" in macos too?
Re:Hooking Go from Rust by infiniteregrets on Friday August 26, 2022 @04:01PM (#32612081)
> 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 that points to why this might be the case

Re:Hooking Go from Rust by aviramha on Friday August 26, 2022 @04:00PM (#32612072)
They 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)