Use-after-free is not always detected, but it is safe because it avoids using the same memory addresses, thereby preventing memory corruption. This test has an undetected use-after-free bug, however, its behavior is still well-defined and no memory corruption occurs.

Show thread

The Zig standard library is finally gaining a general purpose allocator. Importantly, it is *safe*. Here it is integrated with Zig's unit tests, catching memory leaks and double-free.

I worked this week on improving performance of the self-hosted parser in Zig. Thanks to the new benchmark tracking project, I have graphs to show for my efforts!

The Y axes of the "time" graphs is a ratio from a fixed previous commit. maxrss is peak bytes of RAM used.

Thanks to many contributors, but especially Vexu, `zig translate-c` is now fully self-hosted.

Example:

Today, thanks LemonBoy's contributions, Zig
gained Tier 2 support for MIPS!

Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!