"CPS is also generally used as an IR in compilers, not something you write by hand"
http://news.ycombinator.com/item?id=3511211
This reminds me of my Celluloid::IO system in Ruby (which uses coroutines to provide a synchronous API), except Celluloid::IO lets you have as many event loops as you want:
https://github.com/tarcieri/celluloid-io
"CPS is also generally used as an IR in compilers, not something you write by hand"
http://news.ycombinator.com/item?id=3511211
This reminds me of my Celluloid::IO system in Ruby (which uses coroutines to provide a synchronous API), except Celluloid::IO lets you have as many event loops as you want:
https://github.com/tarcieri/celluloid-io