Re:Lightpanda migrate DOM implementation to Zig
by dwattttt on Monday January 12, 2026 @04:03PM
(#46594278)
It's harder than you'd expect. Depending on what kind of bucketing an arena does (by size or by type), a stale reference may end up pointing to another piece of memory of the correct type, which is still wrong, but more subtly than a crash.
[ Parent
| on HN ]
Re:Lightpanda migrate DOM implementation to Zig
by dnautics on Tuesday January 13, 2026 @11:08AM
(#46602894)
Look at the architecture of lightpanda and come back with a response.
Re:Lightpanda migrate DOM implementation to Zig
by dwattttt on Tuesday January 13, 2026 @04:24PM
(#46608304)
I'm not familiar enough with Zig to want to dive into architecture, the point I wanted to make is general to arenas in any language that can have a stale reference.
I once had a stale stack reference bug in C that lived for a year, because the exact same object was created at the exact same offset every time it was used, which is a similar situation.