Working Notes: a commonplace notebook for recording & exploring ideas.
Home. Site Map. Subscribe. More at expLog.
Hy
Exploring hy lang
-
This seems like a fun way to explore programming models.
-
The docs are nice, but a little bit rough, I may be able to help there.
-
Potential projects:
- PAIP in Hy
- This year's advent of code
- Nanogpt, Llama2 in Hy + JAX
-
Getting started
- pip install hy hyrule
- jedhy is a bit outdated / broken
- the emacs mode for jedhy is also broken as a consequence; disabling company-mode helps
Cheatsheet
For things I find myself looking up repeatedly
(require module :reader [macroname])
for reader macros
- slicing / slice macros are a little bit kludgy
#()
tuples aren't hashable?
a.b.c
etc. sugar just works, don't need to use (. a b)
forms
Ecosystem improvements
- Better highlighting, specially in tuples #()
- Easy to use repl with syntax highlighting
- Inferior emacs mode that just works
- Live reload mode / live eval mode?
- Stack traces should be more readable
- Close enough to python to make me itch
- A potential bug? in function handling when using a.b.c[x]; not sure if supported
- Quick way to check generated python code for a given code snippet
— Kunal