RSSAmplifier

Blog

Joshua O'Connor

joshuao.comRSS feed ↗3 posts

Latest posts

Counting Page Faults in MacOS

This post is about counting page faults in MacOS, using the task interface.

MSI Hashtable In Zig

This post is about converting a C hash lookup to Zig. It covers moving from implicit (and sometimes implementation defined) C to explicit Zig.

Zig Assert Strategies

This post is about how to express various kinds of assert in Zig. - std.debug.assert is a normal function, and it may evaluate its parameter even in ReleaseFast mode. - All safety-checked illegal behaviour can be dealt with using a custom panic handler. - Use if (@import("builtin").mode == .Debug) when you’re feeling paranoid about slow asserts.