Hy
Sometimes, nothing less than a functional programming language will do. This is especially true in machine learning and artificial intelligence, where Lisp and Scheme have a long tradition. Hy is a dialect of Lisp that translates expressions into Python's abstract syntax tree format.
An abstract syntax tree is a high-level representation of a program's structure, independent of the source code. The Python parser turns all Python programs into abstract syntax trees, after which the interpreter performs further operations on the tree on the path to creating executable bytecode. Because the Hy frontend accepts Hy code as input and produces as output an abstract syntax tree compatible with Python's interpreter, Hy code runs in the same interpreter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access