Post B22BPTDREfECH5k3DE by argv_minus_one@mastodon.sdf.org
 (DIR) More posts by argv_minus_one@mastodon.sdf.org
 (DIR) Post #B22BPTDREfECH5k3DE by argv_minus_one@mastodon.sdf.org
       2026-01-07T06:18:42Z
       
       1 likes, 0 repeats
       
       Once upon a time, when I was a young programmer, I wrote an implementation of a global expression matcher (same purpose as the POSIX `glob` function).Upon waking up the next morning and looking at the code, I realized I had very little recollection of writing it, and was utterly baffled by the code itself. I was even more baffled that it actually worked correctly. Even now, it's hard to understand.If I didn't know better, I'd think I'd been drunk!I wonder what actually happened that night?
       
 (DIR) Post #B22BPYMq58icFhB83k by argv_minus_one@mastodon.sdf.org
       2026-01-07T06:19:25Z
       
       0 likes, 0 repeats
       
       The code is also horrifyingly inefficient and could easily overflow the stack, so don't get excited. There are way better glob implementations out there.