hy
hy copied to clipboard
A dialect of Lisp that's embedded in Python
I'm writing this ticket in response to this [How to load Hy package in zipapp?](https://stackoverflow.com/questions/54322331/how-to-load-hy-package-in-zipapp) stackoverflow question. I have tried reproducing this on the latest master a38cdb7ccc08b832a17bb54425baf21c9147ba03 using the files...
From a discussion in #1346 ```Hy (defmacro defshadowed [name args &rest body] `(do (defmacro ~name ~args ~@body) (defn ~name ~args (~name ~@args)))) ``` ```Python => (defshadowed zerop [x] ... `(=...
For example this library: https://github.com/glumpy/glumpy/blob/master/glumpy/ext/glfw.py#L139 uses "sys.executable -c" with python code, which is not working with hy and results in a import error. Perhaps the -c argument could check the...
The `inspect` module isn't compatible with some Hy-derived objects, and code that implicitly uses `inspect` (including other standard library modules) is generally error-prone because of this. In particular, debuggers are...
In order for a compiler instance to—for example—simply [re]use itself when calling `hy_eval` (e.g. during `eval-and-compile`), we need to make the compiler "stateless". Current `HyASTCompiler` class members `imports` and `temp_if`...
#1269 brought great speedups for hy. I have one more metric that I don't understand ```bash $ echo >test.hy $ hy test.hy # to byte-compile $ time hy test.hy hy...
Depends on #824. Related #842. Even in the case that `and`/`or` contains a statement, it may have several expressions in a row that don't need to be converted to `if`...
Conditionals containing statements are doing unnecessary work. I know, Python is not renowned for its performance, but let's not make it worse. This kind of thing can matter inside nested...
Error Message : ModuleNotFoundError: No module named 'main main is Hy source file, before importing Hy'
Hy's compiler is a bit of a mess with class defs mixed all around helper functions with seemingly no real organization, several obtuse naming conventions, and an overall lack of...