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


Groups > comp.lang.python > #15738

Re: (don't bash me too hard) Python interpreter in JavaScript

References <11816254.67.1321389423944.JavaMail.geo-discussion-forums@vbay19>
Date 2011-11-16 07:45 +1100
Subject Re: (don't bash me too hard) Python interpreter in JavaScript
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2747.1321389956.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Nov 16, 2011 at 7:37 AM, Passiday <passiday@gmail.com> wrote:
> 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.

Hmm. If it's to be an educational platform, I would recommend doing
something like the W3Schools "tryit" page [1] and just go back to the
server each time. You have potential security issues to watch out for
(so it may be worth chrooting your interpreter), but it's sure to be
easier than rewriting the entire interpreter in another language. You
would have to maintain your implementation as the language evolves,
keep it bug-free, etc, etc.

ChrisA

[1] eg http://www.w3schools.com/html/tryit.asp?filename=tryhtml_basic

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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