DEV Community

Discussion on: Change your perspective

Collapse
 
slifin profile image
Adrian Smith

Like Clojure for the JVM, Clojure for .net, ClojureScript, Clojure on Erlang?

Collapse
 
flaque profile image
Evan

Does Clojure really do this? How??

Collapse
 
maeghith profile image
mæghith | Ramón FSM • Edited

I would guess in the same way you can run a Python program on the “standard” Python VM (implemented in C) or with Jython’s (Java VM), or with Iron Python’s (.Net VM).

"Write once, run anywhere” was a main selling point on the first versions of Java.

It’s the same idea if you manage to think that there isn’t a single environment containing your program, but a chain of them: the program runs in the runtime that runs in the VM that runs in the OS that runs in the actual machine in the end.

We are in a pretty good spot in terms of adding (I.eg. A browser) or replacing (Windows, Linux, Wac) links on the chain.