Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95267 > unrolled thread

Re: pyjs - a compiler from Python to JavaScript

Started byChris Angelico <rosuav@gmail.com>
First post2015-08-12 10:52 +1000
Last post2015-08-12 10:52 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: pyjs - a compiler from Python to JavaScript Chris Angelico <rosuav@gmail.com> - 2015-08-12 10:52 +1000

#95267 — Re: pyjs - a compiler from Python to JavaScript

FromChris Angelico <rosuav@gmail.com>
Date2015-08-12 10:52 +1000
SubjectRe: pyjs - a compiler from Python to JavaScript
Message-ID<mailman.93.1439340763.3627.python-list@python.org>
On Wed, Aug 12, 2015 at 5:08 AM, Fabio Zadrozny <fabiofz@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web