It's a dialect of LISP that's compiled down to Python AST IICR.<p>Here's more information: <a href="http://docs.hylang.org/en/latest/tutorial.html" rel="nofollow">http://docs.hylang.org/en/latest/tutorial.html</a>
I did a little presentation on Hy at Pycon Canada earlier this year [1].<p>Hy has come a ways since then even. Shortly after that talk we added succinct syntax aliases for QUOTE and QUASIQUOTE. And we added a nice clojure-inspired core library.<p>It's a cool little language. Fun to hack on. You could learn a few things if you do. And I do hope that we can start help creating documentation for the Python AST module via this project.<p>[1] <a href="http://pyvideo.org/video/2328/hy-a-lisp-that-compiles-to-python" rel="nofollow">http://pyvideo.org/video/2328/hy-a-lisp-that-compiles-to-pyt...</a>
So it just desugars into Python? I see there is a section in the documentation for macros, but there's nothing there. Does it support AST macros right now? I thought of doing something similar to this except doing some kind of static or gradual typing (that would be a larger project though).
Hy is neat. I love Lisps that "compile" or are embedable within host scripting languages.<p>My favourite one to hack on (owing to my PHP ability) is Pharen[0]. Very neat little Lisp that compiles down to PHP, which is very fun to play with. I highly suggest giving Hy a go if you're a Pythonista, as you can learn a lot about programming in general by seeing how these sorts of languages map to the host. Very fun to hack on, too!<p>[0]: <a href="http://scriptor.github.io/pharen/" rel="nofollow">http://scriptor.github.io/pharen/</a>
Not bad. Could be a very useful tool to teach Python programmers Lisp, although I don't think Python benefits much from converting its syntax to sexprs.
Apparently without TCO :(<p><pre><code> File "<input>", line 1, in fac
File "<input>", line 1, in fac
File "<input>", line 1, in fac
RuntimeError: maximum recursion depth exceeded
=></code></pre>
Heh, recognized reverse polish notation right away. One of the companies I interviewed at last year had me program an RPN calculator fed by CSV spreadsheets. Weirdest thing I've made to date by a pretty wide margin.
What blew my mind is this actually worked on my iPod Touch and brought up the keyboard. Usually "dynamic" JavaScript keyboards or games totally fail on there..