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:

You can read them online:

I was using Node.js:

The project I presented is at:

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



Example using Express:

I mentioned other projects:

Recently, it entered in my radar:

See the benchmarks:

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:

More fun is comming.

Keep tuned!

Angel “Java” Lopez

November 2, 2013

New Month’s Resolutions: November 2013

Time to review my October resolutions:

– Give a talk about PHP and Node.js [complete] see post and PHP/Node repo and PageJs repo at PHP Dev Argentina 2013
– Give a talk about TDD with ASP.NET MVC [complete] see repo
– Give a talk about Scala implementation [complete] see slides and simple samples
– Give a talk about Python in JavaScript [complete] see repo and slides at PyCon 2013 Argentina
– Give a talk about Smalltalk in JavaScript and C# [complete] see repo and slides at Smalltalks 2013

This new month’s resolution:

– Start compiler reduced Python to C, using JavaScript
– Give a talk about Ruby in C#
– Start Ruby to JavaScript compiler
– Complete variable scope in Mass language
– Give a talk about compiling languages to JavaScript (to be confirmed)
– Write web framework for AjTalkJs (to be used in Node.js) (plain? MVC?)
– Improve NPM modules in AjTalkJs and AjTalk
– Improve unit test support in AjTalkjs and AjTalk
– Improve match and data structure in AjErl

More fun is coming 😉

Keep tuned!

Angel “Java” Lopez

January 6, 2013

New Month’s Resolutions: January 2013

The first month of a new year! I’m was busy coding a lot. It’s time to review past month resolutions:

– Work on PythonSharp [pending]
– Work on AjTalk for C# [complete] see repo and see my posts
– Give a Node.js course [complete] Spanish post
– Start .md pages Java tutorial [pending]

Additionally, I was working on:

– Start Py2Script Python to JavaScript compiler [complete] see repo
– Update my Node.js samples [complete] see repo
– Start and publish version 0.0.1 of SimpleWeb, my middleware layer [complete] see repo
– Start BasicScript [complete] see repo
– Start and publish version 0.0.1 of CobolScript [complete] see repo and see my posts
– Update AjConsorSite [complete] see repo
– Start Inmob [complete] see repo

For this new month, these are my new resolutions (some are already started):

– Start SimpleScript
– Start SimpleBoard
– Start SimpleChess
– Start SimpleGo
– Start and publish a version of SimpleMapReduce, with local and distributed sample
– Start and publish a version of SimpleFunc, object with functions serialization
– Start Memolap, C# in-memory multidimensional OLAP-like library and sample
– Start SimpleMemolap, the same but in JavaScript/Node.js
– Start SimpleRules, forward-chaining rule engine, that compiles to JavaScript

A lot of fun! 😉

Keep tuned!

Angel “Java” Lopez

Create a free website or blog at