Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95267
| References | (1 earlier) <CALwzidkSGXNGpmhR2DX8ejGJ_xUY_DeHaTG8NeN6=oGhnQNQag@mail.gmail.com> <CAMQ2MsEuk4Ow=DiU_WbSEHJEeBrkKDmhTK5AH8c0dckcBQdfiw@mail.gmail.com> <CANXBEFocjrpL+8AbbCYtodg1QsMyaOFARhB4Ndh37hm3F0TGSA@mail.gmail.com> <CAMQ2MsFPEapmwTbCg2EH8W7KhK+BZyu_USHuWBJTSmgA00Renw@mail.gmail.com> <CANXBEFphX1ksa2FwB6rSmC9-OD7UQHtFaEcEbBNZ4+k58pUSUA@mail.gmail.com> |
|---|---|
| Date | 2015-08-12 10:52 +1000 |
| Subject | Re: pyjs - a compiler from Python to JavaScript |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.93.1439340763.3627.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pyjs - a compiler from Python to JavaScript Chris Angelico <rosuav@gmail.com> - 2015-08-12 10:52 +1000
csiph-web