News for hackers. Stuff that matters.
Re:Wine 11.0 by teraflop on Sunday January 18, 2026 @06:47PM (#46673404)
Go does hardcode system call numbers on Linux, but it doesn't on Windows. Instead it follows the normal Windows convention of calling the userspace wrappers from kernel32.dll and similar libraries.

https://cs.opensource.google/go/go/+/refs/tags/go1.25.6:src/...

Unlike on Linux, the low-level syscall numbers on the NT kernel are highly unstable across releases, so programs that try to call them directly will generally only work on a very specific kernel version.

Re:Wine 11.0 by nasretdinov on Monday January 19, 2026 @07:40AM (#46678334)
I wonder if due to C slowly fading away things like syscall ABI, kernel numbers, etc, will start getting more stable, not just on Windows but on macOS too
Re:Wine 11.0 by mschuster91 on Monday January 19, 2026 @09:13AM (#46679174)
There still needs to be a cause for working directly with the kernel interface instead of going via the userland interfaces (libc on Linux, kernel32/user32 on Windows, macOS frameworks) to justify the required effort, and the use cases are basically only DRM, malware, malware detectors and anti-cheat.