pypy-dev  

Re: [pypy-dev] a faster Python not a primary goal of PyPy?

Bob Ippolito
Mon, 26 Sep 2005 09:35:19 -0700


On Sep 26, 2005, at 10:49 AM, Alex Martelli wrote:

--- holger krekel <[EMAIL PROTECTED]> wrote:

That being said, it might actually be worthwhile to compile
RPython to Javascript which should be reasonably fast
for small programs.  One possibility is to just create
flowgraphs from a python program and then transform the
flowgraph to javascript source code (without much
annotation).


True, annotation wouldn't help much here (translating among VHLLs).

Using MochiKit at a target on top of JS would make it even easier, since comparators, iterators, and repr are already there with Python semantics (more or less).

You'll probably have to throw out multiple inheritance, anything that depends on id() or hash(), and some other features JS can't really do.

-bob

_______________________________________________
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev