stackless, uthreads, and GUIs

Fernando Pereira pereira at
Wed Mar 22 05:14:40 CET 2000

In article <slrn8dgdru.dk5.neelk at>, Neel Krishnaswami
<neelk at> wrote:

> Johann Hibschman <johann at> wrote:
> > 
> > I was wondering if anyone has experimented with using stackless to
> > implement guis.  I haven't played with the package much myself (yet),
> > but it seems like you could write something nice using continuations
> > to implement dialog boxes, and so on.
> > 
> > I know most real GUIs use threads, but real OS threads are such a PITA
> > to get to compile (in my experience), that I'd like other options.
> > 
> > I'm mostly just playing with this idea for now.  Is it a reasonable
> > direction in which to be thinking?  Any accessible references?
> There is a paper describing precisely this idea called "Escaping the
> Tyranny of the Event Loop: an Alternative Control Structure for
> Multi-threaded GUIs," by Matthew Fuchs. You can find it at
> You may also be interested in reading about Fudgets, a purely
> functional GUI toolkit for Haskell. This one is a bit mind-blowing,
> though:
A related, earlier, and simpler idea, based on ideas from CSP and
Esterel is Cardelli & Pike's "Squeak: a language for communicating with
mice", Proc. Twelfth ACM Annual Conference on Computer Graphics and
Interactive Techniques (SIGGRAPH), 1985,
<>. It might
be a cool exercise to create a uthreads implementation of these ideas.

-- F

More information about the Python-list mailing list