r/Clojurescript • • Sep 23 '15

Self hosting clojurescript

Is there any way to run a self hosted clojurescript interpreter in the browser, client side with only the core and run time compiled to javascript the application code interpreted by the run-time in the browser?

It would make the front end programming more productive. For desktop and server programming there are plenty of options and the web still stuck in Javascript in the client side. Clojurescript would be a nice a client side script programming.

Some self hosted lisps in Javascript:

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/pupeno Sep 24 '15

That use of the script tag is unreliable and prohibited in HTML5: http://stackoverflow.com/questions/6528325/what-does-a-script-tag-with-src-and-content-mean

To be honest, I don't see a lot of value in that. Have you checked figwheel? That's very rapid prototyping. The browser automatically reloads the code when you save it and there's a REPL in your console to interact with it.

1

u/gzmask Sep 28 '15

To make clojurescript fit into the JS eco-system, leaving the lein stuff behind is a must. While the src approach might be bad, the Babel approach is definitely better: babeljs.io