[Stackless] "escaping the event loop"
Sam M. Rushing
srushing at ironport.com
Wed Aug 14 20:24:29 CEST 2002
> -----Original Message-----
> From: Ctismer (forward)
> Sent: Tuesday, August 13, 2002 6:49 PM
> To: aaron at reportlab.com
> Cc: stackless at tismer.com
> Subject: [Stackless] Re: Stackless subscription notification
> Welcome! I'm in fact impressed of your interest!
> On the other hand, I'm using Stackless myself, now.
> And I find myself writing event handlers as simple,
> endless lops, now. Look here, please:
> Please, see this extremely simple event loop. This is a single
> tasklet that stays waiting for mouse events, until it gets
> blown by a SystemExit exception.
> This is quite revealing. Now I can have program state in my
> PC counter, as it was 20 years ago. The handler feels like
> a main program.
In my secret past as GUI developer, this was definitely on my
list of things to explore - using continuations/coroutines for
UI stuff. There's a Scheme guy out there - Mathew Fuchs - who
did some work in this direction, I've been handing out pointers
to his paper for years:
"Escaping the event loop: an alternative control structure for
I think eXene (X implementation for SML/CML) is written this way.
Stackless mailing list
Stackless at www.tismer.com
More information about the Stackless