e01.org

Hy (programming language)

Hy is a dialect of the Lisp programming language designed to interact with Python by translating s-expressions into Python's abstract syntax tree (AST). Hy was introduced at Python Conference (PyCon) 2013 by Paul Tagliamonte. Lisp allows operating on code as data (metaprogramming), thus Hy can be used to write domain-specific languages. Similar to Kawa's and Clojure's mappings onto the Java virtual machine (JVM), Hy is meant to operate as a transparent Lisp front-end for Python. It allows Python libraries, including the standard library, to be imported and accessed alongside Hy code with a compiling step where both languages are converted into Python's AST.

Hy is a dialect of the Lisp programming language designed to interact with Python by translating s-expressions into Python's abstract syntax tree (AST). Hy was introduced at Python Conference (PyCon) 2013 by Paul Tagliamonte. Lisp allows operating on code as data (metaprogramming), thus Hy can be used to write domain-specific languages. Similar to Kawa's and Clojure's mappings onto the Java virtual machine (JVM), Hy is meant to operate as a transparent Lisp front-end for Python. It allows Python libraries, including the standard library, to be imported and accessed alongside Hy code with a compiling step where both languages are converted into Python's AST. => (print "Hy!") Hy! => (defn salutationsnm [name] (print (+ "Hy " name "!"))) => (salutationsnm "YourName") Hy YourName! ==Notes== Video of 2014 PyCon talk

References

  1. ^ Hy is tested on Python 2.7, 3.4 through 3.6, and PyPy . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  2. ^ "Hy Documentation" . hylang.org . Retrieved 3 September 2014 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  3. ^ Danjou, Julien (26 March 2014). "The AST" . The Hacker's Guide to Python . pp. 165– 172. Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  4. ^ Kitchin, John (31 March 2016). "More on Hy and why I think it is a big deal" . The Kitchin Research Group . Carnegie Mellon University . Retrieved 19 September 2018 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  5. ^ "Quickstart" . Hylang.org . 15 May 2018 . Retrieved 19 September 2018 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  6. ^ Jaworski, Michał; Ziadé, Tarek (2019). Expert Python programming (Third ed.). Birmingham, U.K.: Packt Publishing. p. 173. ISBN 978-1-78980-677-9 . OCLC 1125343555 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  7. ^ Danjou, Julien (2018). Serious Python: black-belt advice on deployment, scalability, testing, and more . San Francisco, CA: No Starch Press. pp. 145– 149. ISBN 9781593278793 . OCLC 1057729260 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  8. ^ Tagliamonte, Paul (2 April 2013). PyCon lightning talk (Speech). Python Conference (PyCon). Santa Clara . Retrieved 2 September 2014 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  9. ^ Tagliamonte, Paul (11 April 2014). Getting Hy on Python: How to implement a Lisp front-end to Python (Speech). PyCon . Montreal . Retrieved 2 September 2014 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  10. ^ Turto, Tuukka (14 February 2014). "Programming Can Be Fun with Hy" . Open Source For You . Retrieved 2 September 2014 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  11. ^ Watson, Mark (2020). A Lisp Programmer Living in Python-Land: The Hy Programming Language (PDF) . LeanBooks. Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  12. ^ The term "compiled" may apply to expressing Hy code in Python's AST or converting that AST into bytecode, the latter being dependent on the specific Python interpreter used and not Hy. Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  13. ^ Edge, Jake (30 April 2014). "Getting Hy on Python" . LWN.net . Retrieved 2 September 2014 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
  14. ^ "Release 1.3.1" . 31 July 2026 . Retrieved 1 August 2026 . Wikipedia revision 1359706345, retrieved 2026-11-19 · 1795042800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Hy (programming language)". 1781629414. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1359706345

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·