u/jackdbdin r/Zig • Recommends
On “What book can you recommend to learn zig?”
…For example:
* bump allocator
* bump allocator with expandable memory (aka arena allocator)
* testing allocator (very useful when you are writing tests because it will scream at you when your code has memory leaks)
Maybe write some tests that allocate some memory to see how to use them.
And of course watch this excellent talk by Benjamin Feng: [video
This talk about memory allocation by Jorge Rodriguez is also great:
[video
Also, you'll need to understand the different types of **pointers** in Zig, so have a look at Solving Common Pointer Conundrums by Loris Cro: [video
As for some materials on stack, heap, etc, try googling something like "memory layout of a C program".
I woul…