hy
hy copied to clipboard
A dialect of Lisp that's embedded in Python
We could give `hy2py` a recursive mode that goes through a source tree and saves a matching Python file for each Hy file, if an up-to-date one doesn't already exist....
here is my module ``` . ├── __init__.py ├── args.hy ├── config.hy ├── log.hy ├── macros.hy ├── main.hy ├── type_helpers.hy └── utils.hy ``` when i try to compile `hy2py args.hy`...
Noticed this while working on the reader macro tests. `hy.eval` is supposed to allow passing a module name surrounded by `` to signify creating a new module to evaluate in...
When you have a new programming language, it really helps—for the purposes of advertising the language, of helping people learn how to use it, and of giving the language a...
This might be doable now that we have Sunjay's fancy scope-tracking code: ``` (pragma strict-vars) (def foo 1) ; foo = 1 (setv foo 2) ; foo = 2 (def...
As mentioned elsewhere, rightly or wrongly, runnng `hy` sets `sys.executable` to the Hy startup script rather than the underlying Python executable. One surprising consequence of this is that importing `sklearn`,...
Consider the following code similar to Hy's `tests/resources/bin/circular_macro_require.hy`, placed in `mydir/t1.hy`: ``` (defmacro bar [expr] `(print (.upper ~expr))) (defmacro foo [expr] `(do (require mydir.t1 [bar]) (bar ~expr))) (foo "wowie") ```...
As noted in #2131, Hy ends up loading most of its internal modules just from the initial import of the top-level module. Turns out it's not entirely trivial to fix...
Docs are problemating, as they often fall behind when code evolves. Still it would be good idea to have a section in docs to give overall view of the codebase...
So, was going to put this off until I got some of my other ideas completed, but someone just opened an issue on an old project I started the last...