Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #15752
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Alan Meyer <ameyer2@yahoo.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: (don't bash me too hard) Python interpreter in JavaScript |
| Date | Tue, 15 Nov 2011 18:05:49 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 16 |
| Message-ID | <4EC2F04D.5030801@yahoo.com> (permalink) |
| References | <11816254.67.1321389423944.JavaMail.geo-discussion-forums@vbay19> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="cXfoUdE2tOmL54C/tFXK/Q"; logging-data="17645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nON5q8ilQyVHWKNttLklX" |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
| In-Reply-To | <11816254.67.1321389423944.JavaMail.geo-discussion-forums@vbay19> |
| Cancel-Lock | sha1:g00NOclEvoU2Jd4vgjNuEd9kj9o= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:15752 |
Show key headers only | View raw
On 11/15/2011 3: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.
>
> Of course, I could take the python source and brutally recode it in JavaScript, but that seems like awful lot of work to do. Any ideas how I should proceed with this project?
I don't have any good ideas for how to do this, but I do have a warning.
The JavaScript security model prohibits a lot of things that Python
does not prohibit. So if you need to do anything like access a file on
the user's machine or talk to some computer other than the one you came
from, it won't work.
Alan
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(don't bash me too hard) Python interpreter in JavaScript Passiday <passiday@gmail.com> - 2011-11-15 12:37 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript Chris Angelico <rosuav@gmail.com> - 2011-11-16 07:45 +1100
Re: (don't bash me too hard) Python interpreter in JavaScript Ian Kelly <ian.g.kelly@gmail.com> - 2011-11-15 13:52 -0700
Re: (don't bash me too hard) Python interpreter in JavaScript Stef Mientki <stef.mientki@gmail.com> - 2011-11-15 22:08 +0100
Re: (don't bash me too hard) Python interpreter in JavaScript Terry Reedy <tjreedy@udel.edu> - 2011-11-15 17:15 -0500
Re: (don't bash me too hard) Python interpreter in JavaScript Alan Meyer <ameyer2@yahoo.com> - 2011-11-15 18:05 -0500
Re: (don't bash me too hard) Python interpreter in JavaScript Passiday <passiday@gmail.com> - 2011-11-15 23:07 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript Carl Banks <pavlovevidence@gmail.com> - 2011-11-15 18:51 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript Passiday <passiday@gmail.com> - 2011-11-15 23:05 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript Lorenzo <loluengo@gmail.com> - 2011-11-20 18:16 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-11-21 07:41 +0000
Re: (don't bash me too hard) Python interpreter in JavaScript Alec Taylor <alec.taylor6@gmail.com> - 2011-11-21 20:07 +1100
Re: (don't bash me too hard) Python interpreter in JavaScript Lorenzo <loluengo@gmail.com> - 2011-11-22 06:15 -0800
Re: (don't bash me too hard) Python interpreter in JavaScript becky_lewis <bex.lewis@gmail.com> - 2011-11-22 07:46 -0800
csiph-web