Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Hy: The Logical choice (madhouse-project.org)
43 points by _5csa on Jan 26, 2014 | hide | past | favorite | 12 comments


I've been following Hy for a while and it's sad that macros are still part of on-going discussions with no definite plan. It's one of the reason I prefer Scheme-inspired Lisps to Common Lisp. Hy just looks Lispy but it's no where near Lisp without all the macro system.


Hy has macros, and they work fairly well. I'm using plenty of macros in Adderall, would not be possible without them. There are a few rough edges with Hy macros, mostly due to the underlying Python, but I at least, can live with that, and they don't hinder my work.


My bad, you're right. I didn't know the documentation section for macro was added recently. It looks pretty Common Lispy. Reader macro looks nice, still at its beginning stage though.


It is more common lispish, therefore, it is awesome!


Hy looks like fun. On more scheme/lisp derivative on the block. It would be great to see it on IPython.


Would really like to see some clojure->python dialect. Hy seems more "experimental" which is also great.


There is an older clojurepy that exists. The author mentioned abandoning it and it needing to target the python AST (like Hy) instead of .pyc to be more portable/less brittle. If you're interested in this, drop me a line (emidln@gmail.com) as I've been toying with using modern clojurescript as a starting point rather than the old codebase.


Python is great, Hy is even better \m/


Have they implemented multiline lambdas?


Hey dude, language author here - yeah, a (lambda) will become a Python lambda if it's a single expression, otherwise it'll turn into an anonymous function (with a name like `_hy_anon_fn_00011`) and replace the lambda with a ref to the function.

Allll taken care of :)


I just want to say how much I enjoy seeing hy popping up now. I have come to really like ClojureScript for my webdev stuff, Scheme from SICP and Python, well, has also been on my toolstack for long

Sometimes Hy seems a little undecided on language issues as simple as (defn vs defun) usage of ! for mutating objects or alphabetic chars, etc. I value freedom of choice, but are there any plans to unify this in the direction of "there is one way to do it"?


Yeah, totally. Not sure where we're going yet, but right now those stupid warts are just harmless tumors. Hopefully we can clean it up soon.

I, of course, prefer (defn) and (first) / (rest), but I know killing (defun) (car) and (cdr) will make a few people go nuts.

We'll have to make it sane before 1.0 :)

Thanks for hacking with Hy :3




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: