4 ms·
You might be interested in Hy [1], which is a Lisp implemented in Python that can import Python libraries. I'm not sure if it cross-compiles to Python or just t
by nerdponx 10y ago
You might be interested in Hy [1], which is a Lisp implemented in Python that can import Python libraries. I'm not sure if it cross-compiles to Python or just to Python bytecode, though.
1: https://github.com/hylang/hy https://github.com/hylang/hy
- agumonkey 10y agoIIRC it's sexp to python AST. There's also Pixie, a python lisp to LLVM system, that was specifically made for high performance.
- willismichael 10y agoFor a moment you had me wondering if there would be a way to use Hy and google's new Grumpy together, and then I dismissed the idea as probably utter madness. For a long time I've been pining for a Clojure-like lisp that can compile to machine code.
- nerdponx 10y agoWhy wouldn't it work?
- willismichael 10y agoI'm not certain that it wouldn't work, but it would have multiple compile steps: Hy => Python => Go => Native, which would either cause a lot of pain or make nigh impossible many of the advantages of using a lisp, like connecting a repl to a running process and being able to evaluate and rewrite code from there.
- nerdponx 10y agoYou could prototype in the Hy REPL then compile after.