5 ms·
It would seem to me that some variety of Lisp would be the ideal candidate as a sort of runs-everywhere language, a thin portable base language that runs on top
by sjmulder 14y ago
It would seem to me that some variety of Lisp would be the ideal candidate as a sort of runs-everywhere language, a thin portable base language that runs on top of different runtimes, offering easy integration with whichever it is running on.
Basically, something like a minimalist Clojure but not just for Java. It would be able to run atop the CLR, JavaScript or the Objective-C runtime as well. The interface with the host platform may be different, as long as the core language works everywhere. Ideally the core would be tiny.
- ChuckMcM 14y agoForth. Constructing the basic machine is trivial, then the rest just comes along with it.
- qznc 14y agoThough Forth is only really elegant, when implemented in assembly. Forth requires to generate code on the fly. For something like the JVM, this means to implement your own bytecode interpreter or hijack the class loader. Neither solution comes close to the simplicity of writing some machine code into memory and jump into it.
- mischov 14y agoSo something like Clojure, but that runs on the CLR and Javascript as well? CLR - https://github.com/richhickey/clojure-clr https://github.com/richhickey/clojure-clr JS - https://github.com/clojure/clojurescript https://github.com/clojure/clojurescript Python - https://github.com/halgari/clojure-py https://github.com/halgari/clojure-py Lua - https://github.com/raph-amiard/clojurescript-lua https://github.com/raph-amiard/clojurescript-lua C - https://github.com/schani/clojurec https://github.com/schani/clojurec (Sorry, couldn't resist.)
- netfeed 14y agoRuby - https://github.com/unnali/rouge https://github.com/unnali/rouge
- jdc 14y agoYou more or less just described Kernel Lisp - http://www.lambdassociates.org/blog/nextlisp(3).htm http://www.lambdassociates.org/blog/nextlisp(3).htm.
- bitdiddle 14y agoscheme
- danenania 14y agoClojurescript compiles seamlessly to javascript, which has become almost universal. It provides a beautiful, battle-ready lisp.