Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sounds very interesting! Anyone here who uses (or tried) Hy? I'm curious how easy it is to use some arbitrary thing in Python (library, code snippet, etc) in particular.


I wrote https://github.com/rcarmo/sushy on it before they moved let to contrib.

(I later ported it back to pure Python 3, because I couldn’t move forward while Hy was in flux)

If let was “fixed”, I’d probably move back to Hy.


It's great, for me it's basically Python but better.

Downsides:

- On CPython, the generated Python code tends to be noticeably slower in hot loops than the equivalent "native" Python code. I haven't done any testing with PyPy.

- Can't really use it at work since nobody will know how to read it.

My conclusion is: it's fun, it's Lisp, and it's Python. For personal projects and small standalone tools it's perfect.


Hy makes it trivial to use Python stuff. Like Django [0].

Most things are just a (import x) away.

[0] https://github.com/paultag/djlisp/tree/master/djlisp


I'm (perhaps irresponsibly) mixing some of it inside a medium-sized Python codebase.

The one thing that doesn't work is autodoc/Sphinx. Otherwise it's all there, and quite pleasant to work with given a rainbow-parenthesis extension and Parinfer.




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

Search: