What's a Memory Allocator Anyway? - Benjamin Feng

Channel:Zig SHOWTIME · Length:48:30 · Published:2020-06-29 · Views:89943

Watch on YouTube

Summary

A Zig SHOWTIME talk by Benjamin Feng on what a memory allocator is, followed by an interview. It covers allocation strategies and different allocator types in Zig.

Why HN recommends it

Recommended as a quick, clear overview of allocators and arenas that also shows how Zig approaches allocation.

C, C++, Rust, Go & systems languages · Software performance & optimization

Subtitles (excerpt)

you Benjamin Fang is not only our first speaker today but also our first returning speaker ever normally I try to make a joke in the introduction but this time all I want to say is Thank You Benjamin for your courage and your effort this talk today is the first talk that we are hosting meant to introduce newcomers to the C programming language to a systems programming concept the title is what's a memory allocator anyway and Benjamin the zoom is yours hi thanks for the introduction Laurie and it's good to be back and let's get started with our talk so as Laurie's has just mentioned my talk is going to be on memory allocator specifically manual memory allocation and to understand what is a memory allocator we need to understand why is a memory allocator and that's actually a pretty good question because let's take a look at what the z compiler will provide for us so this is just a very simple simple function that I wrote up real quick all it does is it takes two variables they start in an end and it goes and it sums up everything in the middle now how that word looks in the in the actual compiler is that we will be provided a segment of memory at the very top is going to be some function metadata specifically to

On Hacker News

For an overview of how Zig does this and at the same time a nice overview on different types of allocators: What's a Memory Allocator Anyway? by Benjamin Feng [VIDEO] — kristoff_it, 2021-03
It's interesting that I saw this post minutes after watching the talk "What's a Memory Allocator Anyway?" by Benjamin Feng. It's ostensibly about Zig's allocation schemes, but it's more of a general overview of the varied (single-thread) allocation strategies in use today. It made me really want to try out arena allocators It's a quick watch at 1.5x speed, the last third is an interview. 1. [VIDE… — Rendello, 2021-02
Would recommend watching the "What's a Memory Allocator, Anyway?" talk from Zig contributor Benjamin Feng: [VIDEO] — snicker7, 2020-10

Related videos