Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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.04; 'ide': 0.05; 'interpreter': 0.05; 'javascript,': 0.05; 'scripting': 0.05; 'subject:Python': 0.06; 'pypy': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'interpreter.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'runtime': 0.09; 'subject:don': 0.09; 'debugging': 0.13; 'reedy': 0.16; 'side.': 0.16; 'linux': 0.17; 'wrote:': 0.18; 'jan': 0.19; 'programming': 0.21; 'header:In-Reply-To:1': 0.23; 'code,': 0.27; 'somebody': 0.27; '(and': 0.28; 'compile': 0.28; 'kelly': 0.30; 'nov': 0.31; 'pm,': 0.31; 'tue,': 0.32; 'app': 0.32; 'to:addr :python-list': 0.32; "i've": 0.33; 'header:User-Agent:1': 0.33; 'done': 0.33; 'header:X-Complaints-To:1': 0.33; 'all.': 0.34; 'crazy': 0.34; 'running': 0.35; 'project': 0.35; 'google': 0.36; 'something': 0.36; 'but': 0.37; 'received:org': 0.37; 'could': 0.38; 'hello,': 0.38; 'some': 0.38; 'perhaps': 0.38; 'client': 0.38; "i'd": 0.39; 'should': 0.39; 'basic': 0.39; "couldn't": 0.39; "it's": 0.39; 'to:addr:python.org': 0.39; '2011': 0.62; 'order': 0.62; 'anything.': 0.71; 'pyjamas': 0.84; 'subject:hard': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: (don't bash me too hard) Python interpreter in JavaScript Date: Tue, 15 Nov 2011 17:15:18 -0500 References: <11816254.67.1321389423944.JavaMail.geo-discussion-forums@vbay19> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321395335 news.xs4all.nl 6871 [2001:888:2000:d::a6]:36241 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15745 On 11/15/2011 3:52 PM, Ian Kelly wrote: > On Tue, Nov 15, 2011 at 1:37 PM, Passiday wrote: >> Hello, >> >> I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of course, would be done in JavaScript. I'd like to avoid any client-server transactions, so all the interpretation should take place on the client side. The purpose of all this would be to create educational platform for learning the programming in python. >> >> I hoped somebody already had done something like this, but I couldn't google up anything. I've found some crazy project emulating PC in JavaScript (and even running Linux on top of it), but not a python interpreter. > > You could take a look at pyjamas, but it's precompiled. I don't know > whether they have support for runtime compilation at all. Perhaps one could use pyjamas to compile pypy to javascript ;-). -- Terry Jan Reedy