encyclopegia.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 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Hy is tested on Python 2.7, 3.4 through 3.6, and PyPy . Wikipedia revision 1359706345, retrieved 2026-11-19." Hy is tested on Python 2. 2026-11-18. https://en.wikipedia.org/wiki/PyPy. Accessed 24 November 2026.

    Chicago "Hy is tested on Python 2.7, 3.4 through 3.6, and PyPy . Wikipedia revision 1359706345, retrieved 2026-11-19." Hy is tested on Python 2. 2026-11-18. https://en.wikipedia.org/wiki/PyPy.

    APA Hy is tested on Python 2. (2026). Hy is tested on Python 2.7, 3.4 through 3.6, and PyPy . Wikipedia revision 1359706345, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/PyPy

  2. Hy Documentation · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Hy Documentation." 2026-11-18. http://docs.hylang.org/en/stable/tutorial.html#hy-is-a-lisp-flavored-python. Accessed 24 November 2026.

    Chicago "Hy Documentation." 2026-11-18. http://docs.hylang.org/en/stable/tutorial.html#hy-is-a-lisp-flavored-python.

    APA encyclopegia.org. (2026). Hy Documentation. Retrieved November 24, 2026, from http://docs.hylang.org/en/stable/tutorial.html#hy-is-a-lisp-flavored-python

  3. The AST · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "The AST." Danjou, Julien (26 March 2014). 2026-11-18. https://books.google.com/books?id=B6nhAwAAQBAJ&pg=PT171. Accessed 24 November 2026.

    Chicago "The AST." Danjou, Julien (26 March 2014). 2026-11-18. https://books.google.com/books?id=B6nhAwAAQBAJ&pg=PT171.

    APA Danjou, Julien (26 March 2014). (2026). The AST. Retrieved November 24, 2026, from https://books.google.com/books?id=B6nhAwAAQBAJ&pg=PT171

  4. More on Hy and why I think it is a big deal · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "More on Hy and why I think it is a big deal." Kitchin, John (31 March 2016). 2026-11-18. http://kitchingroup.cheme.cmu.edu/blog/2016/03/31/More-on-Hy-and-why-I-think-it-is-a-big-deal/. Accessed 24 November 2026.

    Chicago "More on Hy and why I think it is a big deal." Kitchin, John (31 March 2016). 2026-11-18. http://kitchingroup.cheme.cmu.edu/blog/2016/03/31/More-on-Hy-and-why-I-think-it-is-a-big-deal/.

    APA Kitchin, John (31 March 2016). (2026). More on Hy and why I think it is a big deal. Retrieved November 24, 2026, from http://kitchingroup.cheme.cmu.edu/blog/2016/03/31/More-on-Hy-and-why-I-think-it-is-a-big-deal/

  5. Quickstart · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Quickstart." 2026-11-18. http://docs.hylang.org/en/stable/quickstart.html. Accessed 24 November 2026.

    Chicago "Quickstart." 2026-11-18. http://docs.hylang.org/en/stable/quickstart.html.

    APA encyclopegia.org. (2026). Quickstart. Retrieved November 24, 2026, from http://docs.hylang.org/en/stable/quickstart.html

  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 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "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." Jaworski, Michał; Ziadé, Tarek (2019). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "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." Jaworski, Michał; Ziadé, Tarek (2019). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Jaworski, Michał; Ziadé, Tarek (2019). (2026). 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. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  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 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "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." Danjou, Julien (2018). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "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." Danjou, Julien (2018). 2026-11-18. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Danjou, Julien (2018). (2026). 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. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  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 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "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." Tagliamonte, Paul (2 April 2013). 2026-11-18. http://blog.pault.ag/day/2013/04/02. Accessed 24 November 2026.

    Chicago "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." Tagliamonte, Paul (2 April 2013). 2026-11-18. http://blog.pault.ag/day/2013/04/02.

    APA Tagliamonte, Paul (2 April 2013). (2026). 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. Retrieved November 24, 2026, from http://blog.pault.ag/day/2013/04/02

  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 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "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." Tagliamonte, Paul (11 April 2014). 2026-11-18. https://us.pycon.org/2014/schedule/presentation/192/. Accessed 24 November 2026.

    Chicago "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." Tagliamonte, Paul (11 April 2014). 2026-11-18. https://us.pycon.org/2014/schedule/presentation/192/.

    APA Tagliamonte, Paul (11 April 2014). (2026). 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. Retrieved November 24, 2026, from https://us.pycon.org/2014/schedule/presentation/192/

  10. Programming Can Be Fun with Hy · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Programming Can Be Fun with Hy." Turto, Tuukka (14 February 2014). 2026-11-18. http://www.opensourceforu.com/2014/02/programming-can-fun-hy/. Accessed 24 November 2026.

    Chicago "Programming Can Be Fun with Hy." Turto, Tuukka (14 February 2014). 2026-11-18. http://www.opensourceforu.com/2014/02/programming-can-fun-hy/.

    APA Turto, Tuukka (14 February 2014). (2026). Programming Can Be Fun with Hy. Retrieved November 24, 2026, from http://www.opensourceforu.com/2014/02/programming-can-fun-hy/

  11. Watson, Mark (2020). A Lisp Programmer Living in Python-Land: The Hy Programming Language (PDF) . LeanBooks. Wikipedia revision 1359706345, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Watson, Mark (2020). A Lisp Programmer Living in Python-Land: The Hy Programming Language (PDF) . LeanBooks. Wikipedia revision 1359706345, retrieved 2026-11-19." Watson, Mark (2020). 2026-11-18. https://markwatson.com/opencontent/hy-lisp-python.pdf. Accessed 24 November 2026.

    Chicago "Watson, Mark (2020). A Lisp Programmer Living in Python-Land: The Hy Programming Language (PDF) . LeanBooks. Wikipedia revision 1359706345, retrieved 2026-11-19." Watson, Mark (2020). 2026-11-18. https://markwatson.com/opencontent/hy-lisp-python.pdf.

    APA Watson, Mark (2020). (2026). Watson, Mark (2020). A Lisp Programmer Living in Python-Land: The Hy Programming Language (PDF) . LeanBooks. Wikipedia revision 1359706345, retrieved 2026-11-19. Retrieved November 24, 2026, from https://markwatson.com/opencontent/hy-lisp-python.pdf

  12. compiled · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "compiled." The term "compiled" may apply to expressing Hy code in Python's AST or converting that AST into bytecode, the latter bei. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1359706345. Accessed 24 November 2026.

    Chicago "compiled." The term "compiled" may apply to expressing Hy code in Python's AST or converting that AST into bytecode, the latter bei. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1359706345.

    APA The term "compiled" may apply to expressing Hy code in Python's AST or converting that AST into bytecode, the latter bei. (2026). compiled. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359706345

  13. Getting Hy on Python · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Getting Hy on Python." Edge, Jake (30 April 2014). 2026-11-18. https://lwn.net/Articles/596626/. Accessed 24 November 2026.

    Chicago "Getting Hy on Python." Edge, Jake (30 April 2014). 2026-11-18. https://lwn.net/Articles/596626/.

    APA Edge, Jake (30 April 2014). (2026). Getting Hy on Python. Retrieved November 24, 2026, from https://lwn.net/Articles/596626/

  14. Release 1.3.1 · retrieved 2026-11-18 · rev 1359706345
    Cite this reference

    MLA "Release 1.3.1." "Release 1. 2026-11-18. https://github.com/hylang/hy/releases/tag/1.3.1. Accessed 24 November 2026.

    Chicago "Release 1.3.1." "Release 1. 2026-11-18. https://github.com/hylang/hy/releases/tag/1.3.1.

    APA "Release 1. (2026). Release 1.3.1. Retrieved November 24, 2026, from https://github.com/hylang/hy/releases/tag/1.3.1

Cite this article

MLA

"Hy (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hy-programming-language. Accessed 24 November 2026.

Chicago

"Hy (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/hy-programming-language.

APA

encyclopegia.org. (2026). Hy (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/hy-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

official language

stub · references available

pan-Slavic language

stub · references available

Hawaiʻi Sign Language

stub · references available

Taiwanese Sign Language

stub · references available

Category:Programming languages

stub · references available

International Mother Language Day

stub · references available

polysynthetic language

stub · references available

Category:Films by country or language

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359706345 · 0.5 · snapshot enwiki-001359706345

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.