Hy

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.

Hy
Hy logo - Cuddles the cuttlefish
ParadigmMulti-paradigm: procedural, functional, object-oriented, meta, reflective, generic
FamilyLisp
Designed byPaul Tagliamonte
DevelopersCore team
First appeared2013 (2013)
Stable release
0.28.0  / 5 January 2024 (5 January 2024)
Preview release
1.0a4 / 16 March 2022 (2022-03-16)
Scopelexical, optionally dynamic
PlatformIA-32, x86-64
OSCross-platform
LicenseMIT-style
Filename extensions.hy
Websitehylang.org
Influenced by
Kawa, Clojure, Common Lisp

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.

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.