(Thanks to Karen Rustad for Cuddles!)
HOW TO GET HY REAL FAST:
Create a Virtual Python Environment.
Activate your Virtual Python Environment.
Install hy from GitHub with
$ pip install git+https://github.com/hylang/hy.git.
Start a REPL with
Type stuff in the REPL:
=> (print "Hy!") Hy! => (defn salutationsnm [name] (print (+ "Hy " name "!"))) => (salutationsnm "YourName") Hy YourName! etc
Hit CTRL-D when you’re done.
If you’re familiar with Python, start the REPL using
hy --spyto check what happens inside:
=> (+ "Hyllo " "World" "!") 'Hyllo ' + 'World' + '!' 'Hyllo World!'
OMG! That’s amazing! I want to write a Hy program.
Open up an elite programming editor and type:
#! /usr/bin/env hy (print "I was going to code in Python syntax, but then I got Hy.")
Make it executable:
chmod +x awesome.hy
And run your first Hy program:
Take a deep breath so as to not hyperventilate.
Smile villainously and sneak off to your hydeaway and do unspeakable things.