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

Robert Kern robert.kern at gmail.com
Sun Sep 20 02:22:53 CEST 2009


exarkun at twistedmatrix.com wrote:
> On 19 Sep, 11:04 pm, robert.kern at gmail.com wrote:
>> Daniel Fetchinson wrote:
>>>>> 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 converts Python code to Javascript.
> 
> The question is whether it converts Python code to JavaScript code with 
> the same behavior.  I think you're implying that it does, but you left 
> it implicit, and I think the point is central to deciding if pyjamas is 
> a Python implementation or not, so I thought I'd try to make it explicit.
> 
> Does pyjamas convert any Python program into a JavaScript program with 
> the same behavior? 

Barring the unimplemented libraries and bugs, yes. If you read the original post 
in this thread, you will see that on the roadmap is running the entire Python 
regression suite.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list