On Sun, Jun 17, 2012 at 8:42 PM, Michael Fox <[email protected]> wrote:
>
> Yeah. It sounds like something that's never going to happen.

well, actually it's already happened, and was axed due to an abysmal
result.  you can read about some of it here (#5 and #6):

https://github.com/pyjs/pyjs/blob/d351837e44e2b72ca952dbe30923d5e37d091798/README

... but i'm sure it won't take too long to dredge up several rants
about how much the original author thinks it sucks ;-)

> If Adobe Air had been wildly successful then I think the world would
> be clamoring for an open-source alternative.
>
> XULrunner seemed like a good idea at the time but apparently it
> disappeared from Ubuntu years ago and I didn't notice.
>
> An easier, and more sensible project would be implementing the python
> stack trace (or, more ambitiously, pdb or even ipython) in pyjamas for
> a debugging facility.

--enable-debug (possibly some others) should already create a stack
trace, with pretty good accuracy.  use --enable-strict --disable-debug
for production, though.

Peter recently ported the logging interface, so that may also be of use.

> If pyjs can compile arbitrary python code, it should be able to
> compile pypy (python implemented in python) which could be used for
> this.

pyjs can transloate 95% of real-world python code -- this might be
enough to translate pypy, since it's written in rpython, but then you
are *implementing* python -> in python -> in javascript ... 2 layers
of indirection! sans any supporting data, this would be horrendously
slow *and* unable to interface with pyjs (which would be a layer
"below" pypy, eg. C -> assembler) ...

... emscripten (LLVM -> javascript) is capable of translating pypy
wholesale, but i've heard nothing positive with respect to the
performance of the resultant javascript blob.

-- 

C Anthony

Reply via email to