News for hackers. Stuff that matters.
Re:Leveraging Zig's Allocators by josephg on Saturday June 15, 2024 @05:46PM (#40692930)
In C, you can use explicit_bzero to make sure the instructions aren’t removed by the optimiser:

https://man7.org/linux/man-pages/man3/bzero.3.html

Re:Leveraging Zig's Allocators by pjmlp on Sunday June 16, 2024 @04:40PM (#40699920)
> Marked as LEGACY in POSIX.1-2001. Removed in POSIX.1-2008.

In Linux you mean.

Re:Leveraging Zig's Allocators by atiedebee on Sunday June 16, 2024 @07:04PM (#40700829)
The only standard explicit memset is in C23