Chris Wellons personal blog

Closures as Win32 Window Procedures

Back in 2017 I wrote about a technique for creating closures in C using JIT-compiled wrapper. It’s neat, though rarely necessary in real programs, so I don’t think about it often. I applied it to qsort , which sadly accepts no context pointer. More practical would be working around insufficient custom allocator…
Points
100
HN comments
28
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2025

On Hacker News

SubmittedTitle on HNPointsComments
Dec 13, 2025Closures as Win32 Window Procedures by ibobev10028

More from Chris Wellons

All 75 posts →

Related posts from the same era