WeSearch

Build System Reworked

·3 min read · 0 reactions · 0 comments · 12 views
#programming#windows#software development#Andrew Kelley#Zig#Windows#kernel32.dll#ntdll.dll
⚡ TL;DR · AI summary

The article discusses the advantages of bypassing kernel32.dll in favor of using ntdll.dll for Windows API calls. It highlights the inefficiencies and potential issues introduced by the kernel32 wrappers, particularly in terms of resource allocation and error handling. The author provides examples demonstrating how using the native API can lead to better performance and reliability in software development.

Key facts
Original article
Ziglang
Read full at Ziglang →
Opening excerpt (first ~120 words) tap to expand

February 03, 2026 Bypassing Kernel32.dll for Fun and Nonprofit Author: Andrew KelleyThe Windows operating system provides a large ABI surface area for doing things in the kernel. However, not all ABIs are created equally. As Casey Muratori points out in his lecture, The Only Unbreakable Law, the organizational structure of software development teams has a direct impact on the structure of the software they produce.The DLLs on Windows are organized into a heirarchy, with some of the APIs being high-level wrappers around lower-level ones. For example, whenever you call functions of kernel32.dll, ultimately, the actual work is done by ntdll.dll.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Ziglang.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Ziglang