the most important programming concept

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Cache coherence is king, also neat to use linear/pool allocators whenever possible. I am somewhat fond of realizing I can do that in modern C++ anyways, while avoiding most of the oop nonesense.

Veeq
Автор

I know this is a toy example, but can't appending a node potentially cause all of the pointers to be invalidated if the dynamic array needs to allocate a bigger chunk of memory?

BlainWeeks
Автор

you might be the only newsletter i subscribed to that i actually read. Amazing articles and video explanations

screamodev
Автор

isn't what you showed basically a pool allocator? and what's the point of using a linked list when using vectors in the background anyways? (I'm just curious)

thepaulcraft
Автор

i have been playing with arena allocators in C for a month now, i even built some data structures on top of them like "vectors" but i am starting to feel like these types of allocators are mostly powerful for game development and not so much systems programming (which is what i mainly do)
i say this because i only hear game developers talking about this, and from my little experience im not entirely sold on them right now, maybe i'm just using them badly but i feel like there is some mental overhead and rewriting with this paradigm

ismbks
Автор

This also explains why Rust's philosophy is not so great since it is focused on managing individual lifetimes.

IgorStojkovic
Автор

i'm 4 minutes in and you still haven't got to the point

GenericInternetter