Christian Iversen
unread,Aug 16, 2013, 5:28:39 AM8/16/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyj...@googlegroups.com
Hello World
So, there are 2 areas where Pyjaco is lacking as opposed to CPython and
PyPy. It has proven very difficult to implement generator functions and
the yield keyword without access to low-level tricks like the
instruction pointer, the stack frame, and the closure context.
I've had the idea of programmatically rewriting generator functions
(those that use yield instead of return) into state machines that can
then be fed a simple set of state.
In researching this, I was surprised to find that there is seemingly no
academic prior art for this. I called 3 computer science professors at
my old university, and they all agreed that it should work, but no one
had heard of any one else doing it, either.
So I'm going to try and implement this algorithm. It will be a nice
challenge, and it might mean that I can publish an computer science
article about the workings of Pyjaco. That would be pretty exciting :)
That's all for now. Until next time, stay awesome.
--
Med venlig hilsen
Christian Iversen