Top all-time · #22892
Mike Belousov
Personal blog · mikemikeb.com/blog · on HN as atmikemikebprogrammingsystems
Mike Belousov's personal blog at mikemikeb.com covers programming and systems. Since 2024, 3 different Hacker News readers have linked it 4 times, most often “How I learned to love Zig's diagnostic pattern (2024)”. It is still writing: the last post was on 2025-07-03, and you can follow it by feed.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
Linked in a thread on Go's error handling. The one comment discusses Zig's diagnostics-object pattern for adding context to errors and suggests comparing Go errors with Rust's instead.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Mike Belousov's Website
Most-linked posts?
- How I learned to love Zig's diagnostic pattern (2024)3 people · 3 mentions · first linked 2024-08-03
What Hacker News says?
In Zig you need an allocator to allocate anything, so whenever you need to add some extra information to an error, you pass a diagnostics object as an output argument to a potentially failing function. In this case it becomes a bit harder to compare it to Go's errors, each with pros and cons. I think comparing Go errors to Rust errors would be more fair. There are some articles about the diagnostic pattern in Zig, e…
Comment linking /blog/zig_error_payloads/
on “Why Go Can't Try”Submitted Super Thin RAII Wrappers for C Types as a story · 6 points
HN discussionSubmitted How I learned to love Zig's diagnostic pattern (2024) as a story · 3 points
HN discussionSubmitted How I learned to love Zig's diagnostic pattern as a story · 2 points
HN discussion