News for hackers. Stuff that matters.
Re:Arena Allocator Tips and Tricks by matheusmoreira on Wednesday September 27, 2023 @06:44AM (#37672814)
> For the most part is useful for high performance numerical code, and less advantageous for typical pointer chasing stuff.

Yeah. I've read that the aliasing rules and features like restrict were introduced to C because Fortran had them.

> the safest way to implement a custom allocator is to make sure that the compiler can't see through it

Makes sense.

> launder your pointers through appropriate inline asm

This is a really neat trick indeed. I learned a lot today.

There are no comments on this comment yet.