News for hackers. Stuff that matters.
Re:From Languages to Language Sets by zahlman on Monday March 17, 2025 @11:36AM (#43389639)
>bump allocate

The term isn't familiar to me, and when I try to look it up I get almost exclusively Rust-related results. I guess you mean https://en.wikipedia.org/wiki/Region-based_memory_management , which I grew up calling "pool allocation".

Re:From Languages to Language Sets by sitkack on Monday March 17, 2025 @06:06PM (#43393210)
I am using it a euphemism for reserving address space and then committing pages as your list grows. This isn't preallocating memory, just address space.

But pool allocation works as well. The idea is to go from a chonky representation to a portable compact representation of a C-struct but still have the Python accessors to this data look idiomatic.

Re:From Languages to Language Sets by zahlman on Monday March 17, 2025 @08:49PM (#43394542)
In what sense is reserving address space not "preallocating memory"? It might not be allocated to an object, but it certainly is allocated to your process... yes?
Re:From Languages to Language Sets by Wumpnot on Tuesday March 18, 2025 @12:32AM (#43395780)
No address space does not mean you have memory, you can reserve gigabytes of address space and your process will still show nothing allocated until you commit it.
Re:From Languages to Language Sets by zahlman on Tuesday March 18, 2025 @08:08PM (#43406810)
Ah, of course. Never mind me; when I learned low-level concepts, hardware was much simpler (and so were operating systems).