[medusa] Medusa & JPython
Sam Rushing
rushing@n...
Sat, 30 Sep 2000 15:09:30 -0700 (PDT)
Andrew Kuchling writes:
> On Thu, Sep 28, 2000 at 06:34:30PM -0000, mdeavila@s... wrote:
> >It appears that Medusa (ver. dated 2000/06/01) does not run under
> >JPython. Specifically, Medusa uses the regex module, which does not
> >exist under JPYthon.
>
> Does JPython support an emulation of the select module, though? This
> would be critical to Medusa working at all. select could be emulated
> with threads, though I'd imagine this would make it impossible to
> handle very many clients simulatneously, due to the number of threads
> required.
Running something like Medusa under Java is probably pointless, unless
you were to use an 'illegal' Java that exposed a real select().
To further explain: Java's "Green Threads" implementation is actually
very similar to the select()-loop core of Medusa itself - it gives the
illusion of threads by multiplexing I/O and attaching a scheduler to a
timer.
-Sam