Skip to content

Comment on The Lux Programming Languageparent

Comments

"runs under CLisp, SBCL, Clojure, Scheme, Ruby, Python, the JVM, Haskell and Javascript"

Wow, someone really likes writing compilers...

Mark Tarver originally wrote Qi, which exclusively ran on top of Common Lisp. Qi was refactored as Shen, which is implemented on a small core and is thus very portable. IIRC Mark only maintains the Common Lisp implementations, and the rest were implemented by the community.

How can something, no matter how small core it has, be very portable from CL to Haskell?

Shen doesn't execute directly, it's compiled to K-lambda, a very small, simple, lisp-as-bytecode. K-lambda is very portable, and wherever K-lambda can run, so can Shen.

Details here: http://www.lambdassociates.org/blog/klambda.htm

Interesting to see how many of these overlap.

For example:

Lux->Clojure->JVM

Lux->Ruby->JVM

Lux->Haskell->Javascript

Any more that I missed?

Hypothetically: Lua->Clojure->Javascript (since Javascript is supposedly one of Clojure's compilation targets, in the form of ClojureScript).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.