pyjs - a compiler from Python to JavaScript

Billy Earney billy.earney at gmail.com
Wed Aug 12 15:52:33 CEST 2015


Uri,

Brython on the other hand, tries to stay true to python (python
compatible).  As stated before it doesn't compile to stand alone
Javascript, but the compile time is usually minimal.  Access to Javascript
libraries is supported.  You really should give it a try..
http://brython.info

Billy

On Tue, Aug 11, 2015 at 7:52 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Wed, Aug 12, 2015 at 5:08 AM, Fabio Zadrozny <fabiofz at gmail.com> wrote:
> >
> > As it's just a way to convert from a Python-like syntax to JavaScript
> syntax you can even switch to plain JavaScript later on if you want -- in
> fact, when you debug the code you'll be debugging JavaScript and not Python
> (it's like CoffeScript but with a Python-like syntax).
> >
>
> So, it functions with ECMAScript semantics everywhere? This is an
> important consideration. A Python integer is not the same as an
> ECMAScript number (which is a float), and a Python string is not the
> same as an ECMAScript string, and a Python dictionary has attributes
> and keys which don't collide.
>
> I'm more than a little tickled by the PyPyJS project:
>
> http://pypyjs.org/
>
> That's PyPy running in your web browser. The semantics are 100%
> Python, but... uhh, it does require a fairly hefty download of code
> before it can do anything. That _is_ a bit of a downside, but it's
> still a pretty cool project!
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150812/ffcc6535/attachment.html>


More information about the Python-list mailing list