pirate 0.01 alpha!
Annoucing pirate 0.01 alpha! http://pirate.tangentcode.com/ """ Right now, pirate supports a good deal of python. The two biggest things that are still missing are classes (because parrot classes aren't quite done yet) and exec/eval/import (because those things require a compiler -- and without classes, pirate can't compile itself). None of the builtin functions exist, either, and the types are borrowed from perl. :) BUT: there's still a lot you can do! For example, parrot is able to run this generator-based microtheads demo and correctly run over 50 small test cases covering much of the language. As a special bonus, it currently runs dog slow! The microthreads example runs about 8-9 times slower on pirate than on regular python. But that's not parrot's fault: the generated code is completely unoptimized. """ Comments, bug reports, patches, flames, etc welcome. :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. ------------------------------------- contact: michal@sabren.com hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --------------------------------------
Michal Wallace
As a special bonus, it currently runs dog slow! The microthreads example runs about 8-9 times slower on pirate than on regular python. But that's not parrot's fault: the generated code is completely unoptimized.
It's fair, though -- the regular Python's bytecode is completely unoptimised, too. :-) Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
On Tue, 19 Aug 2003, Greg Ewing wrote:
Michal Wallace
: As a special bonus, it currently runs dog slow! The microthreads example runs about 8-9 times slower on pirate than on regular python. But that's not parrot's fault: the generated code is completely unoptimized.
It's fair, though -- the regular Python's bytecode is completely unoptimised, too. :-)
Yeah, but as I told someone else who made this point, it's really not a fair fight. Running something as simple as "x=x+x" through pirate currently allocates at least 4 new objects (possibly up to 8, depending what x is) and does three separate searches through the frame stack for the value of x. And that's just off the top of my head... :) Sincerely, Michal J Wallace Sabren Enterprises, Inc. ------------------------------------- contact: michal@sabren.com hosting: http://www.cornerhost.com/ my site: http://www.withoutane.com/ --------------------------------------
participants (2)
-
Greg Ewing
-
Michal Wallace