Is Python in the browser a dead-end ?

Billy Earney billy.earney at gmail.com
Fri Oct 28 11:03:10 EDT 2011


I believe that python maybe had missed an opportunity to get in early and be
able to take over a large market share from javascript.  But that doesn't
mean python is dead in the browser, it just means it will have more
competition if it wants to replace javascript for Rich Internet
Applications.

there's also emscripten, which takes c code and compiles it into
javascript.  the c python compiler is one of its primary examples as you can
see here:

http://syntensity.com/static/python.html

I've also contributed some code to Skupt so that a person can do something
like

<script type='text/python'>
 put python code here.
</script>

Hopefully eventually, the code I submitted will be of use someday! :)

On Fri, Oct 28, 2011 at 7:07 AM, Amirouche Boubekki <
amirouche.boubekki at gmail.com> wrote:

> Héllo,
>
> There was a thread recently about the missed opportunity for Python to be a
> language that could replace Javascript in the browser.
>
> They are several attempts at doing something in this spirit here are the
> ones I'm aware of:
>
> - pyjamas aka. pyjs it is to Python what GWT is to Java : http://pyjs.org/
> - py2js which compiles Python to Javascript without high level widget like
> pyjamas does https://github.com/qsnake/py2js
> - skulpt unlike py2js and pyjs there is no compilation phase
> http://www.skulpt.org/
>
> And SubScript [1], which I am the creator, a Python-like language [2] and
> Sissi [3] which aims at being the stdlib of SubScript, currently it's
> implemented with py2js. It relies heavly on Google Closure tools [4]. I'm
> planning to add streamer [5] support if I can wrap my head around it.
>
> I'm done with self advertisement.
>
> Before starting SubScript I gave it some thoughts, and I think that it can
> bring value to web development.
>
> Here are articles that backs up my vision:
>
> - Javascript gurus claims that Javascript is indeed the "assembly" of the
> web [6], which means that Javascript is viable target for a compiler
>
> - Similar projects exists with Coffescript and ClojureScript which seems to
> have the lead and are gaining traction in web development community. Dart is
> another example.
>
> - The thing that makes Javascript development difficult is that it's hard
> to debug, but map JS [7] is making its way into Firefox which will help
> greatly
>
> Why do people think that this projects are doomed ?
>
> I ask this question to understand other point of views before commiting
> myself at finish SubScript & Sissi, I don't want to code something that will
> be useless.
>
> Thanks in advance,
>
> Amirouche
>
> [1] https://bitbucket.org/abki/subscript
> [2] currently Subscript code is parsed by Python parsing library the exact
> same syntax should be supported
> [3] https://bitbucket.org/abki/sissi/overview
> [4] http://code.google.com/intl/fr/closure/
> [5] https://github.com/Gozala/streamer
> [6]
> http://www.hanselman.com/blog/JavaScriptIsAssemblyLanguageForTheWebSematicMarkupIsDeadCleanVsMachinecodedHTML.aspx
> [7] https://bugzilla.mozilla.org/show_bug.cgi?id=618650
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111028/d116b1db/attachment-0001.html>


More information about the Python-list mailing list