Angel \”Java\” Lopez on Blog

November 21, 2013

Python in JavaScript/Node.js

Filed under: JavaScript, NodeJs, Open Source Projects, Py2Script, Python — ajlopez @ 6:15 pm

Some weeks ago, I attended an excellent conference, PyCon Argentina 2013. I should write about my personal experience. Now, I want to publish links and comments about the talk I gave.

As other talks, it is related to JavaScrip y Node.js. I explained my work on compiling Python to JavaScript, using JavaScript. My slides at:

https://github.com/ajlopez/Talks/tree/master/PythonJavaScript

You can read them online:

http://ajlopez.github.io/Talks/PythonJavaScript/index.html

I was using Node.js:

http://nodejs.org/

The project I presented is at:

https://github.com/ajlopez/JPyScript

It can compile .py files to JavaScript, on the fly. And it can access to Node.js modules using import notation

Example:

 

Example using Express:

I mentioned other projects:

http://www.brython.info/
http://www.skulpt.org/
http://apppyjs.appspot.com/

Recently, it entered in my radar:

https://github.com/PythonJS/PythonJS

See the benchmarks:

http://pyppet.blogspot.com.ar/2013/11/brython-vs-pythonjs.html

An additional branch. Past year, I gave a talk about Python implementations, and I mentioned PyPy. This year, I assisted to interesting PyPy talks. I started to explore how to compile Python to C, this time using JavaScript. My first attempts:

https://github.com/ajlopez/RedPython

More fun is comming.

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: