On May 7, 2013, at 3:44 PM, Dan Stromberg <[email protected]> wrote:

> 
> 
> I'm putting together a presentation for my local Python User Group about 
> Python in the Browser.
> 
> To start things off, I've been creating an HTML table at 
> http://stromberg.dnsalias.org/~strombrg/pybrowser/python-browser.html.
> 
> If people more familiar with pyjs than I could look at it, especially the 
> pyjs row, and suggest corrections for inaccuracies and omissions, that'd be 
> awesome.
> 
> I'm also open to suggestions for new columns - perhaps there are 
> considerations I should be comparing that I'm not yet.
> 
> Thanks!

I'm unfortunately not super familiar with PyJS, but I did do a presentation at 
PyCon this year that demonstrated some of its capabilities.

<http://pyvideo.org/video/1681/so-easy-you-can-even-do-it-in-javascript-event-d>

One extra column I'd like to see in your table is some kind of evaluation as to 
how "real" of a Python the "Python" in the browser is.  Brython and Skulpt, for 
example, are both python-like languages, but very basic issues like 
<https://bitbucket.org/olemis/brython/issue/57/object-has-no-__getattr__-method>
 and 
<https://bitbucket.org/olemis/brython/issue/21/missing-methods-in-str-objects-eg-format>
 and 
<https://bitbucket.org/olemis/brython/issue/10/add-support-for-__abs__-__neg__> 
and <https://github.com/bnmnetp/skulpt/issues/14> and 
<https://github.com/bnmnetp/skulpt/issues/53> means that even very basic Python 
programs will not work, unless they are specifically written for these runtimes.

PyJS is much better, although it has its own share of problems, like 
<https://github.com/pyjs/pyjs/issues/787>.

You'll have to come up with some objective metric for identifying how 
linguistically faithful these implementations are.  It would be fantastic if 
you could shoehorn the Python test suite itself into them somehow!  But, that's 
likely to be a bit too much work, so some smaller set of tests would be a good 
start.

-glyph

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to