pyjamas pyv8run converts python to javascript, executes under command-line

Diez B. Roggisch deets at nospam.web.de
Sat Sep 19 19:16:40 EDT 2009


Daniel Fetchinson schrieb:
>>> the pyjamas project is taking a slightly different approach to achieve
>>> this same goal: beat the stuffing out of the pyjamas compiler, rather
>>> than hand-write such large sections of code in pure javascript, and
>>> double-run regression tests (once as python, second time converted to
>>> javascript under pyv8run, d8 or spidermonkey).
>>>
>>> anyway, just thought there might be people who would be intrigued (or
>>> horrified enough to care what's being done in the name of computer
>>> science) by either of these projects.
>> I've added pyjamas to the implementations page on the Python Wiki in
>> the compilers section:
>>
>> http://wiki.python.org/moin/implementation
> 
> In what way is pyjamas a python implementation? As far as I know
> pyjamas is an application written in python that is capable of
> generating javascript code. Does this make it a 'python
> implementation'? That would be news to me but I've been wrong many
> times before.

It is an implementation. It takes python-code, and translates that to JS 
- so you code in Python, but the code is executed inside a JS-"VM".

Diez



More information about the Python-list mailing list