Re: CPython on the Web

2011-01-04 Thread Gerry Reno
On 01/04/2011 12:38 PM, gry wrote: > On Jan 4, 1:11 am, John Nagle wrote: > >> On 1/1/2011 11:26 PM, azakai wrote: >> >> >>> Hello, I hope this will be interesting to people here: CPython running >>> on the web, >>> >> >>> http://syntensity.com/static/python.html >>> >>

Re: CPython on the Web

2011-01-04 Thread gry
On Jan 4, 1:11 am, John Nagle wrote: > On 1/1/2011 11:26 PM, azakai wrote: > > > Hello, I hope this will be interesting to people here: CPython running > > on the web, > > >http://syntensity.com/static/python.html > > > That isn't a new implementation of Python, but rather CPython 2.7.1, > > compi

Re: CPython on the Web

2011-01-04 Thread Carl Banks
On Jan 3, 4:55 pm, azakai wrote: > But through a combination of optimizations on the side of Emscripten > (getting all LLVM optimizations to work when compiling to JS) and on > the side of the browsers (optimizing accesses on typed arrays in JS, > etc.), then I hope the code will eventually run qu

Re: CPython on the Web

2011-01-04 Thread John Nagle
On 1/3/2011 11:13 PM, azakai wrote: On Jan 3, 10:11 pm, John Nagle wrote: On 1/1/2011 11:26 PM, azakai wrote: Hello, I hope this will be interesting to people here: CPython running on the web, http://syntensity.com/static/python.html That isn't a new implementation of Python, but rather

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 10:11 pm, John Nagle wrote: > On 1/1/2011 11:26 PM, azakai wrote: > > > Hello, I hope this will be interesting to people here: CPython running > > on the web, > > >http://syntensity.com/static/python.html > > > That isn't a new implementation of Python, but rather CPython 2.7.1, > > comp

Re: CPython on the Web

2011-01-03 Thread John Nagle
On 1/1/2011 11:26 PM, azakai wrote: Hello, I hope this will be interesting to people here: CPython running on the web, http://syntensity.com/static/python.html That isn't a new implementation of Python, but rather CPython 2.7.1, compiled from C to JavaScript using Emscripten and LLVM. For more

Re: CPython on the Web

2011-01-03 Thread MrJean1
FYI, The example http://syntensity.com/static/python.html works fine in Safari 4.1.3 on MacOS X Tiger (10.4.11). /Jean On Jan 3, 5:59 pm, azakai wrote: > On Jan 3, 12:23 pm, Gerry Reno wrote: > > > > > > > On 01/03/2011 03:10 PM, azakai wrote: > > > > On Jan 2, 5:55 pm, Gerry Reno wrote:

Re: CPython on the Web

2011-01-03 Thread MrJean1
FireFox 3.6.13 on MacOS X Tiger (10.4.11) fails: Error: too much recursion Error: Modules is not defined Source File: http://synthensity.com/static/python.html /Jean On Jan 2, 11:26 pm, Wolfgang Strobl wrote: > azakai : > > >On Jan 2, 4:58 pm, pyt...@bdurham.com wrote: > >> Azakai/Gerry,

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 12:23 pm, Gerry Reno wrote: > On 01/03/2011 03:10 PM, azakai wrote: > > > > > > > > > > > On Jan 2, 5:55 pm, Gerry Reno wrote: > > >> I tried printing sys.path and here is the output: > > >> ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', > >> '/usr/local/lib/python2.7/

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 12:13 pm, de...@web.de (Diez B. Roggisch) wrote: > A fun hack. Have you bothered to compare it to the PyPy javascript > backend - perfomance-wise, that is? > Gerry already gave a complete and accurate answer to the status of this project in comparison to PyPy and pyjamas. Regarding perfo

Re: CPython on the Web

2011-01-03 Thread astar
On Jan 2, 4:58 pm, pyt...@bdurham.com wrote: > Azakai/Gerry, > > > Errors when using Firefox 3.6.3: > firefox 3.6.13 openbsd i386 4.8 -current error console has some errors: editor not defined module not define too much recursion nothing interested happened on the web page, but wonderful projec

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 05:55 PM, Diez B. Roggisch wrote: > Gerry Reno writes: > > >> On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: >> >>> A fun hack. Have you bothered to compare it to the PyPy javascript >>> backend - perfomance-wise, that is? >>> >>> Diez >>> >>> >> I don't think that

Re: CPython on the Web

2011-01-03 Thread Diez B. Roggisch
Gerry Reno writes: > On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: >> >> A fun hack. Have you bothered to compare it to the PyPy javascript >> backend - perfomance-wise, that is? >> >> Diez >> > > I don't think that exists anymore. Didn't that get removed from PyPy > about 2 years ago? Ah,

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: > > A fun hack. Have you bothered to compare it to the PyPy javascript > backend - perfomance-wise, that is? > > Diez > I don't think that exists anymore. Didn't that get removed from PyPy about 2 years ago? Regards, Gerry -- http://mail.pyth

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:10 PM, azakai wrote: > On Jan 2, 5:55 pm, Gerry Reno wrote: > >> I tried printing sys.path and here is the output: >> >> ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', >> '/usr/local/lib/python2.7/plat-linux2', >> '/usr/local/lib/python2.7/lib-tk', '/usr/local

Re: CPython on the Web

2011-01-03 Thread Diez B. Roggisch
azakai writes: > Hello, I hope this will be interesting to people here: CPython running > on the web, > > http://syntensity.com/static/python.html > > That isn't a new implementation of Python, but rather CPython 2.7.1, > compiled from C to JavaScript using Emscripten and LLVM. For more > details

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 2, 5:55 pm, Gerry Reno wrote: > I tried printing sys.path and here is the output: > > ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', > '/usr/local/lib/python2.7/plat-linux2', > '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', > '/usr/local/lib/lib-dyn

Re: CPython on the Web

2011-01-02 Thread Wolfgang Strobl
azakai : >On Jan 2, 4:58 pm, pyt...@bdurham.com wrote: >> Azakai/Gerry, >> >> > Errors when using Firefox 3.6.3: >> >> I'm running Firefox 3.6.1.3 and the interpreter is running fine. I guess that meant FIrefox 3.6.13 (without the last dot), the current stable version. I'm using Firefox 3.6.13 (

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
I tried printing sys.path and here is the output: ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/lib-dynload'] Now, those paths must be on your machine

Re: CPython on the Web

2011-01-02 Thread azakai
On Jan 2, 4:58 pm, pyt...@bdurham.com wrote: > Azakai/Gerry, > > > Errors when using Firefox 3.6.3: > > I'm running Firefox 3.6.1.3 and the interpreter is running fine. > > I'm on Windows 7 Pro 64-bit. > > Malcolm Thanks for the info. To be honest I'm surprised it works there. I guess the error Ge

Re: CPython on the Web

2011-01-02 Thread azakai
On Jan 2, 3:14 pm, Gerry Reno wrote: > On 01/02/2011 05:53 PM, azakai wrote: > > > On Jan 2, 1:01 pm, Gerry Reno wrote: > > >> Ok, visiting this page: > > >>http://syntensity.com/static/python.html > > >> I do not see anything happen when I click 'execute' button.  I'm running > >> Firefox 3.6.3.

Re: CPython on the Web

2011-01-02 Thread python
Azakai/Gerry, > Errors when using Firefox 3.6.3: I'm running Firefox 3.6.1.3 and the interpreter is running fine. I'm on Windows 7 Pro 64-bit. Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
On 01/02/2011 05:53 PM, azakai wrote: > On Jan 2, 1:01 pm, Gerry Reno wrote: > >> Ok, visiting this page: >> >> http://syntensity.com/static/python.html >> >> I do not see anything happen when I click 'execute' button. I'm running >> Firefox 3.6.3. >> >> > I've only tested with Firefox 4.

Re: CPython on the Web

2011-01-02 Thread azakai
On Jan 2, 1:01 pm, Gerry Reno wrote: > > Ok, visiting this page: > > http://syntensity.com/static/python.html > > I do not see anything happen when I click 'execute' button.  I'm running > Firefox 3.6.3. > I've only tested with Firefox 4. I'm surprised though that it wouldn't work on 3.6.3. Can y

Re: CPython on the Web

2011-01-02 Thread Gerry Reno
On 01/02/2011 02:26 AM, azakai wrote: > Hello, I hope this will be interesting to people here: CPython running > on the web, > > http://syntensity.com/static/python.html > > That isn't a new implementation of Python, but rather CPython 2.7.1, > compiled from C to JavaScript using Emscripten and LLV

Re: CPython on the Web

2011-01-02 Thread azakai
On Jan 2, 5:52 am, "Octavian Rasnita" wrote: > > Then, how can the Python programs run on the "desktop"? > I suspect that the Python code is somehow translated to Javascript in order > to run on the browser. Am I right? To clarify, in this demo, CPython itself - the C implementation of Python -

Re: CPython on the Web

2011-01-02 Thread azakai
On Jan 2, 5:42 am, pyt...@bdurham.com wrote: > > 1. Are there plans to support IE 7 or 8? I think it might run slowly there, but otherwise sure, it should run - the code is intended to be valid JavaScript (if it isn't, that's a bug). Currently though a minor issue prevents it from running on IE, I

Re: CPython on the Web

2011-01-02 Thread Octavian Rasnita
From: "Katie T" Subject: Re: CPython on the Web > On Sun, Jan 2, 2011 at 7:26 AM, azakai wrote: >> The idea is that by compiling CPython itself, all the features of the >> language are immediately present, and at the latest version, unlike >> writing a new impl

Re: CPython on the Web

2011-01-02 Thread python
Azakai, WOW! That's incredible!! Thank you for sharing your work with the community. 1. Are there plans to support IE 7 or 8? 2. I'm not sure what you mean by non-static modules? Can we use modules such as json, pickle/cPickle, StringIO/cStringIO? 3. Is there a virtual file system we can take a

Re: CPython on the Web

2011-01-02 Thread Katie T
On Sun, Jan 2, 2011 at 7:26 AM, azakai wrote: > The idea is that by compiling CPython itself, all the features of the > language are immediately present, and at the latest version, unlike > writing a new implementation which takes time and tends to lag behind. > As to why run it on the web, there