Re:Show HN: a compiler from Python syntax to JavaScript synt...
by daeken on Friday October 29, 2010 @06:05PM
(#1849236)
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.
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.