Any downsides to using Hy (over Python)? Other than my coworkers don't know Lisp? More concrete: Are there Python language features I can't use in Hy? Or performance penalties in using Hy?
Hy 1.0 – Lisp dialect for Python
41–50 of 131 posts
Re: Hy 1.0 – Lisp dialect for Python
#42Earlier quoted context omitted.
1. I don't know what a breakloop is. Hy uses Python's exception system, which is more like a traditional exception system than Common Lisp's condition system. 2. No, sorry.
A breakloop is a REPL operating in the context of condition handling. When a condition is signaled, you can use the breakloop to modify state and direct how the condition should be handled (including fixing something local and letting the current function proceed by ignoring the condition). Seems like that would only be doable by altering CPython to at least have a hook in the initial exception processing (or maybe t…
Re: Hy 1.0 – Lisp dialect for Python
#43I was having some difficulty figuring out how Hy actually is translated to Python (and wasn't even sure if it was compiled or interpreted). Eventually I found on Wikipedia the following: > Hy is a dialect of the Lisp programming language designed to interact with Python by translating s-expressions into Python's abstract syntax tree (AST). Also, looking at the code on Github suggests this compiler is written in Pytho…
> Hy is a Lisp dialect that's embedded in Python. Since Hy transforms its Lisp code into Python abstract syntax tree (AST) objects, you have the whole beautiful world of Python at your fingertips, in Lisp form.
Re: Hy 1.0 – Lisp dialect for Python
#44Earlier quoted context omitted.
1. I don't know what a breakloop is. Hy uses Python's exception system, which is more like a traditional exception system than Common Lisp's condition system. 2. No, sorry.
A breakloop is a REPL operating in the context of condition handling. When a condition is signaled, you can use the breakloop to modify state and direct how the condition should be handled (including fixing something local and letting the current function proceed by ignoring the condition). Seems like that would only be doable by altering CPython to at least have a hook in the initial exception processing (or maybe t…
Re: Hy 1.0 – Lisp dialect for Python
#45Re: Hy 1.0 – Lisp dialect for Python
#46Re: Hy 1.0 – Lisp dialect for Python
#47Years ago, under the influence of Lisp romanticism late into my university years, I worked on a domain-specific language for designing and analyzing control systems as my senior design project, using Hy! Just checked, it's been five and a half years to be specific. Really, time flies.
Here it is for anyone curious: https://github.com/celaleddin/gently
Since then, I've been following Hy from a distance and it's amazing to see it's still active. Thank you everyone involved!
Re: Hy 1.0 – Lisp dialect for Python
#48I loved the HYPE POST.[0] I work with corporate software. It is absolutely brilliant. [0] https://github.com/hylang/hy/discussions/2609
Re: Hy 1.0 – Lisp dialect for Python
#49Does PyCharm support it already?
Re: Hy 1.0 – Lisp dialect for Python
#50It would be awesome if there were an example of something that can't be done in Python because it takes advantage of lisp's "functions are first class".