Slashdot Mirror


Python Converted To JavaScript, Executed In-Browser

lkcl writes "Two independent projects, Skulpt and Pyjamas, are working to bring Python to the web browser (and the JavaScript command-line) the hard way: as JavaScript. Skulpt already has a cool Python prompt demo on its homepage; Pyjamas has a gwtcanvas demo port and a GChart 2.6 demo port. Using the 64-bit version of Google v8 and PyV8, Pyjamas has just recently and successfully run its Python regression tests, converted to JavaScript, at the command-line. (Note: don't try any of the above SVG demos with FF2 or IE6; they will suck.)"

4 of 176 comments (clear)

  1. Re:python sucks by master5o1 · · Score: 5, Funny

    Because it's done like this:
    <?php
    die(Python);
    ?>

    --
    signature is pants
  2. Google Translate Extended by aoheno · · Score: 3, Funny

    Announcing onelanguage dot com, an extension of Google Translate, ushering in an era where programmers need only learn one language and have it converted to another language of choice.

    FAQ:

    Q. How accurate is it?
    A. Same as Google Translate. You have to learn the output language to know which parts of the language you already know result in garbage-out. We suggest you use our new Pidgin versions of Python, PHP, Java, and Ruby.

    --
    Her lips were softer than a duck's bill, but her quacks ...
  3. In related news.... by mrops · · Score: 5, Funny

    ...they used a Perl script to convert Python to Javascript.

  4. lipstick, dogs by speedtux · · Score: 2, Funny

    Compiling Python to JavaScript running in a browser really is like putting lipstick on a dog.