Hy is an actively used programming language created in 2013. Hy (alternately, Hylang) is a programming language, a dialect of the language Lisp designed to interact with the language Python by translating expressions into Python's abstract syntax tree (AST). Hy was introduced at Python Conference (PyCon) 2013 by Paul Tagliamonte.Similar to Kawa's and Clojure's mapping of s-expressions onto the Java virtual machine (JVM), Hy is meant to operate as a transparent Lisp front end to Python's abstract syntax. Lisp allows operating on code as data (metaprogramming). Read more on Wikipedia...
- Hy ranks in the top 10% of languages
- the Hy website
- the Hy wikipedia page
- Hy on github
- Hy first appeared in 2013
- file extensions for Hy include hy
- tryitonline has an online Hy repl
- See also: lisp, ia-32, clojure, python, jvm-vm
- Have a question about Hy not answered here? Email me and let me know how I can help.
Example code from the web:
(+ "Hyllo " "World" "!")
Example code from Linguist:
;; Fibonacci example in Hy. (defn fib [n] (if (<= n 2) n (+ (fib (- n 1)) (fib (- n 2))))) (if (= __name__ "__main__") (for [x [1 2 3 4 5 6 7 8]] (print (fib x))))
Example code from Wikipedia:
=> (print "Hy!") Hy! => (defn salutationsnm [name] (print (+ "Hy " name "!"))) => (salutationsnm "YourName") Hy YourName!
Last updated June 22nd, 2020