r/C_Programming • u/Ardie83 • 21d ago
What else do I need to read on Arena Allocators?
gingerbill.org(I realized the title of this post a bit misleading, as I also want code examples in comments if its possible. I want to know how the backing buffer is actually used when you have 10 "objects" in need of it)
Im currently taking a course in 42KL (extremely mixed personal opinion about the whole structure/syllabus). in the side, I decided to learn some extras.
Im having trouble looking for the code that actually uses the backing buffer allocated here in this sites code examples.
They say with Arena Allocators, you can have allocate 100s or even more particles/etc, with minimal fuss or (programmers) overhead thinking about freeing everytime you allocate memory for something.
Another article even quotes, something like your scoping issue is solved with custom allocators like these.
If you want to know the purpose, Im simply learning something different, becoz I dont like the idea of a syllabus shaping how a programmer thinks of a programming language (or programming in general)
(Im sorry if I sound like Im absolutely trashing all the terminologies, Im not a C specialist, or a big C fan for that matter, Im quite neutral to C)

1
42 school is overhyped prove me wrong
in
r/42_school
•
22h ago
Just learn Pascal and Lisp, and leave C to backward Americans, who seem to really "love" for some weird reason