Skip to content

Comment on Show HN: a compiler from Python syntax to JavaScript syntax (like CoffeeScript)

Comments

I built something similar a while back (guess it's been in use for about two years now -- built it to support my company's product): http://github.com/daeken/Pyvascript

Key difference between Pyvascript and the other compilers I've seen is a facility for macros performing arbitrary AST manipulations. E.g. in the Pylons environment, you can use _uriOf(Controller.someAction) to have it generate a url in your JS code at compile-time.

Always nice to see competition among compilers, though.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.