Okay. I've done (almost) everything I can
do for python without jumping into C.
So here's a release!
http://pirate.tangentcode.com/
Check out the generator-based microthreads
demo. :) It's horribly slow, but it works!
And note the PARROT_INLINE function - a
nice little touch, I thought :)
Anyway, I'm going to shift focus to some of
my other projects for a few weeks, but I'll
be back in september. (And I'll still be
around if anyone has bug reports or patches)
Thanks everyone for helping me get this far!
Sincerely,
Michal J Wallace
Sabren Enterprises, Inc.
-------------------------------------
contact: mic...@sabren.com
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--------------------------------------
> Tadaa!
/me blinks at the list comprehensions.
Cool stuff. test_microthreads failed for
some reason I still need to look into, but
there's a lot of cool stuff working
already. Time for Dan to begin thinking
about which direction the pie will fly.
/s
> Michal Wallace <mic...@sabren.com> writes:
>
> > Tadaa!
>
> /me blinks at the list comprehensions.
:)
> Cool stuff. test_microthreads failed for
> some reason I still need to look into, but
> there's a lot of cool stuff working
> already. Time for Dan to begin thinking
> about which direction the pie will fly.
D'oh! :/ I didn't mean to include that.
It's really broken, because things get
lost when I invoke the continuation.
That's why the weightless.py has the two
PARROT_INLINE(...) macros in the generator
dispatch loop at the bottom.
The fix for the test is probably something
similar, but I'm not sure how to handle it.
I think the problem is some standard step
that needs to be done around .pcc_begin_yield
and .pcc_end_yield, but I haven't thought
it through completely.