On Sep 26, 2005, at 10:49 AM, Alex Martelli wrote:
--- holger krekel <hpk@trillke.net> 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