Adrian Alic personal blog
Memory-efficient enum arrays in Zig
Proper support for sum types or tagged unions have become table stakes for systems programming languages. However, they can incur a lot of memory fragmentation that's not trivial to avoid without good support for metaprogramming. This post goes into Zig's powerful comptime feature, and how it allows some radical…
- Points
- 322
- HN comments
- 239
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringProgramming Languages2023
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Sep 18, 2023 | Memory-efficient enum arrays in Zig by dist1ll | 322 | 239 |