A Deep Look at a Memory Allocator

Doug Lea’s allocator, often referred to as dlmalloc, provides implementations of the standard C memory functions malloc(), free(), realloc(), and friends. I need a memory allocator for a personal project and Lea generously put his code in the public domain, so I thought to adapt it to my needs. Note that the latest release in 2023 relicensed it under the “MIT No Attribution” (MIT-0) License, which is supposed to be more palatable than the public domain.

Glob Patterns

Some time in 2016 or 2017, I needed a way to match file paths with glob patterns. The trick was that it had to work in a filter driver running in the Windows kernel. There weren’t a lot of ready-to-use libraries that were kernel-ready. In fact I couldn’t find any, so I wrote my own.

A Quick Note on Python

I saw an amusing Python tutorial.