3 ms·
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 pa
by owenversteeg 7y ago
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.
- shakna 7y agoHy 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 https://github.com/paultag/djlisp/tree/master/djlisp
- rcarmo 7y agoI wrote https://github.com/rcarmo/sushy 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.
- nerdponx 7y agoIt'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.
- thanatropism 7y agoI'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.