Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41744
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <amirouche.boubekki@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.05; 'classes,': 0.05; 'emulate': 0.07; 'pypy': 0.07; 'python': 0.09; 'bindings': 0.09; 'runtime': 0.09; 'subset': 0.09; 'translator': 0.09; 'library': 0.15; 'backend': 0.15; 'to:name:python-list': 0.15; '->': 0.16; 'snippets': 0.16; 'subject:Javascript': 0.16; 'subject:translator': 0.16; 'url:appspot': 0.16; 'works...': 0.16; 'creates': 0.18; 'written': 0.20; 'jquery': 0.22; 'cheers,': 0.23; 'thus': 0.24; 'creating': 0.26; 'compiled': 0.27; 'components': 0.27; 'message- id:@mail.gmail.com': 0.27; 'methods.': 0.29; 'restricted': 0.29; 'objects': 0.29; "i'm": 0.29; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'along': 0.35; 'there': 0.35; 'announce': 0.36; 'available.': 0.37; 'two': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'called': 0.39; 'side': 0.61; 'more': 0.63; 'making': 0.64; 'online': 0.70; 'topic,': 0.78; 'subject:Welcome': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=PAwmri7vzmu75v9pJ+k3XYxCmZDFdwNMNM6YJU27IeU=; b=I0iICp40vixPab7qxOCeFHgvLWP49bovLabJxzXvnJ3XCpLVSneEqDB2PLzPcXK8Zv jbJAmL2NERc9WpnnuN7pQMGxtYwsIXfHsTz9Trcm/ywh5u8GrtTyNmrmChHHlo1Tra4T HtBUpUSdJnqgaKmbHb+dbF7gfQ93fTqCrdv5v4VzKpNDlVc3z2igYEZQ+lYz7baTafu5 MBrYNZbbLQTeABBiWxfERB2xkM7xdOJwM80XN2rPKlbn90m3cIDH30n89ydWIN+X62/K vNEpL2AJTaS3Jsx9ZSsWDj4hajcNfqdWhT0zQ4XrBEH/sq2hVA1DnpWSTyBzG51LC8Oq XbfQ== |
| X-Received | by 10.60.172.108 with SMTP id bb12mr5670892oec.110.1364055063114; Sat, 23 Mar 2013 09:11:03 -0700 (PDT) |
| MIME-Version | 1.0 |
| From | Amirouche Boubekki <amirouche.boubekki@gmail.com> |
| Date | Sat, 23 Mar 2013 17:10:43 +0100 |
| Subject | Welcome PythonScript: Python to Javascript translator in 350 lines of Python |
| To | python-list <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=bcaec54c4e007e0b6904d899d1d8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3646.1364055071.2939.python-list@python.org> (permalink) |
| Lines | 65 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1364055071 news.xs4all.nl 6849 [2001:888:2000:d::a6]:53419 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41744 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Héllo, I'm happy to announce the immediate avaibility of PythonScript a Python -> Javascript translator written in Python. So far it works... Break it online @ http://apppyjs.appspot.com How it works ? Similarly to PyPy, it use a restricted version of Python called PythonJS. Along side this translator there is two other components PythonToPythonJS which translates (more) Python to PythonJS and a runtime library written in PythonJS that creates javascript objects to emulate classes, objects and methods. It's not compliant. Other Python in the browser solutions are written in Javascript (skulpt, brython) or both (pyjaco, pyjs) and are difficult to work with. This implementation is fully written in Python with small snippets of Javascript. Creating bindings is very easy, jQuery bindings are available. All the thing is not much tested. Also if you are interested in this topic, you might be interested by the avaibility of asm.js in Firefox nightly. asm.js is a subset of JS, that can be compiled by the browser, thus making solutions such as emscripten and PyPy with an asm.js backend more interesting. Cheers, Amirouche
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Welcome PythonScript: Python to Javascript translator in 350 lines of Python Amirouche Boubekki <amirouche.boubekki@gmail.com> - 2013-03-23 17:10 +0100
csiph-web