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 implement

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

Re: CPython on the Web

2011-01-03 Thread azakai
ays in JS, etc.), then I hope the code will eventually run quite fast, even comparably to C. - azakai -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread azakai
to work? > Yeah, those are the paths on the machine where the binary was compiled (so, they are the standard paths on ubuntu). Anyhow the filesystem can't (and shouldn't) be accessed from inside a browser page. I think we will implement a minimal virtual filesystem here, just enough

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'

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 &

Re: CPython on the Web

2011-01-02 Thread azakai
be to use your normal makefiles and such, but replacing gcc with llvm-gcc or clang, so it generates LLVM bytecode instead of a normal binary. Then one would run the generated LLVM bytecode through Emscripten, which compiles it to JavaScript. So, the process should be fairly simple. - azakai -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-02 Thread azakai
; printed. I use Internet Explorer. > I've been told it doesn't run properly on IE, we have a bug open on that, sorry. It will work on Firefox, Chrome and Safari right now. - azakai -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-02 Thread azakai
> 3. Is there a virtual file system we can take advantage of so calls to > open() would work? > No, not yet, the libc implementation used just has stubs for input/ output stuff so far. Work in progress ;) - azakai -- http://mail.python.org/mailman/listinfo/python-list

CPython on the Web

2011-01-01 Thread azakai
d allow a simple learning environment for Python, which since it's on the web can be entered immediately without any download (and would run even in places where Python normally can't, like say an iPad). Feedback would be very welcome! - azakai -- http://mail.python.org/mailman/listinfo/python-list