• 0 Posts
  • 1 Comment
Joined 1 year ago
cake
Cake day: November 12th, 2023

help-circle
  • Definitely JavaScript, but I think there is a really strong argument for Python.

    There is a language called Hy, which is a Clojure-like LISP that runs on the Python runtime, fully interoperable with Python code in the same runtime. That is, you can freely import between Hy and Python code. Hy also has macros. IIRC they just use the Python standard library for all of this.

    Python actually has really powerful metaprogramming features, especially today. They’re just not homoiconic without Hy.

    Where Python—CPython at least—falls short is that you can’t REALLY do something like replace the exception handling system. It’s not turtles all the way down. But the runtime is surprisingly close in for most use cases.