finds.dev

mitchellh/zig-objc

Objective-C runtime bindings for Zig (Zig calling ObjC).

View on GitHub

★ 341ZigMITupdated Apr 2026

// the take

Thin Zig bindings to the Objective-C runtime, letting you call ObjC APIs directly from Zig without writing any ObjC. Aimed at Zig developers building macOS/iOS tools who want to reach Cocoa without bridging through C. Mitchell Hashimoto uses it in his own daily-driver software, so it's battle-tested in at least one real codebase.

The msgSend API is idiomatic Zig — you pass the expected return type as a comptime parameter and get type-safe dispatch without macros or codegen. Block support is genuinely useful and non-trivial; passing Zig closures as ObjC blocks back into Cocoa APIs is the hard part of any ObjC bridge and this handles it. Source is small and well-commented enough that 'read the source' is a reasonable documentation strategy, not a cop-out. CI is wired up and the library only targets released Zig versions, which means it won't silently break on you between nightly builds.

Coverage is explicitly incomplete — protocols, dynamic class registration, and several runtime APIs are missing. The project owner has stated they only add what they personally need, so if you hit a gap, your only option is a PR. No ARC support; you manage memory manually through autorelease pools, which is fine if you know ObjC but a footgun for Zig developers who don't. iOS/tvOS are theoretically in scope (the README mentions them) but there's no evidence of CI or testing on those targets, so treat macOS as the only supported platform in practice.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
341
Forks
46
Language
Zig
License
MIT
Last commit
17 Apr 2026

// nearby

If zig-objc isn't quite it.

All repos →