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

OKB (not okblacke) brenNOSPAMbarn at NObrenSPAMbarn.net
Mon Nov 21 02:41:02 EST 2011


Carl Banks wrote:

> Some people have already made an LLVM-to-Javascript compiler, and
> have managed to build Python 2.7 with it. 
> 
> The LLVM-to-Javascript project is called emscripten.
> 
> https://github.com/kripken/emscripten/wiki
> 
> Demo of Python (and a bunch of other languages) here:
> 
> http://repl.it/

    	Very interesting.  Is there a simple way to add third-party 
libraries to these?  I assume that for pure-Python modules you could 
just put a python file in the appropriate place and import it, but what 
about if you wanted a web app that used numpy or something?  Is that 
feasible?

-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is
no path, and leave a trail."
	--author unknown



More information about the Python-list mailing list