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

Reply via email to