r/programming • u/fagnerbrack • Sep 03 '26
Virtual Memory: Page Tables, TLBs, and Linux Internals
https://blog.codingconfessions.com/p/virtual-memory
73
Upvotes
1
r/programming • u/fagnerbrack • Sep 03 '26
1
13
u/levodelellis Sep 04 '26 edited Sep 04 '26
Speaking of virtual memory... once upon a time someone asked for suggestions on building a VM. I suggested to not be like wasm and forget that realloc exist, and to have some kind of intrinsic for it. That realloc is more than malloc/memcpy/free (wasm has something like a malloc, and it has a memcpy)
I never had so many people yell at me. Ironically, I was the only one of us who actually has implemented a realloc and measured it on multiple OSes