News for hackers. Stuff that matters.
Re:How safe is Zig? by 10000truths on Thursday June 23, 2022 @01:12PM (#31852168)
Alternatively, use offset values instead of internal pointers. Now your structs are trivially relocatable, and you can use smaller integer types instead of pointers, which allows you to more easily catch overflow errors.
Re:How safe is Zig? by anonymoushn on Thursday June 23, 2022 @01:20PM (#31852282)
This is a good idea, but native support for slices tempts one to stray from the path.