News for hackers. Stuff that matters.
Re:Erg: a statically typed language that is Python compatible by gleenn on Saturday August 13, 2022 @08:08PM (#32454999)
I've always been super interested in Hy but couldn't ever get it working. Any suggestions for forums or good installation instructions or tutorials? I live Clojure and also have to deal with a lot of Python at work so would be awesome to use lispy syntax to write my Python stuff
Re:Erg: a statically typed language that is Python compatible by gilch on Tuesday August 23, 2022 @04:07PM (#32570744)
Hissp might be easier to get started with. It's much less complex as a whole and has pretty thorough introductory docs.
Re:Erg: a statically typed language that is Python compatible by markjreed on Monday August 15, 2022 @10:29AM (#32470126)
Just `pip install hy` and then `python -mhy` to run it. Once you see how Python translates into Hy, it's pretty straightforward.

    (import os)
    (import [os.path :as op])
    (with [f (open (op.join dir_name file_name) "w")]
        (.write f "..."))
Some things you just have to learn, like using `(setv var value)` to do assignment, or the fact that `(for)` is an imperative loop while `(lfor)` is a list comprehension, but a little experimentation goes a long way and the docs are quite good.
Re:Erg: a statically typed language that is Python compatible by danuker on Sunday August 14, 2022 @04:51AM (#32457649)
Does this not work?

`pip3 install --user hy`

as mentioned in the first page of the docs:

https://docs.hylang.org/en/stable/