my tab management scheme is a bump allocator

February 19, 2026

So, if you squint real hard, my browser tab management scheme is a bump allocator.(sidenote:1Man, non-general-case mallocation schemes are so cool. The general case is just “yeah let’s try to get some memory for you chief, do whatever with it, we’ll clean it up,” but non-general-case implies you know things about your access patterns. Maybe I just do a bunch of stuff and then you can clean it all up after. And we find out this can be faster than managing free lists and coalescing and etc etc. Cool.) I open up my project, need to keep a bunch of things open, I start getting so many tabs that it’s hard to find tabs I’ve already opened, so I just create new ones, but of course I want to keep the previous tabs just in case I need them, and suddenly I’m over here at the finish line, test cases passing, with Firefox prompting me, kindly but perhaps with some concern, on whether I’d really like to close those 134 tabs.

Overall, it’s pretty cool how good code abstractions often end up mirroring real organic behavior.

back to blog