How to Solve a Problem Like Santa Claus
summary
A prototype implements limited join patterns on top of Stackless Python by reusing Plan 9 style select algorithm and treating a join as a conjunction of channel ops. Synchronous channels and a custom select let a 150‑line Python prototype mirror a C implementation that grew to ~1000 lines. The Santa Claus and dining philosophers examples mostly run but show a rare race (about 1 in 500 iterations) when reindeer and elves collide, and the API and internal queuing are still fragile. synchronous channels join-as-channel
AI-written summary · about
