Scittle: evaluate "CLJS" in a script tag using SCI

Evaluate “CLJS” in a script tag using SCI:

https://borkdude.github.io/scittle

Source

9 Likes

really curious how it’s built, totally compiling and running Clojure(Script) inside a browser?

This is not “normal” ClojureScript, but the Small Clojure Interpreter running inside the browser. SCI itself can be compiled with advanced compilation, yielding a fairly small bundle size compared to self-hosted CLJS, but obviously it doesn’t run as fast compared to compiled CLJS code. There are trade-offs to be made between startup time, bundle size and runtime performance. SCI is usually used for applications that need a bit of dynamic evaluation at runtime. Using it in a script tag is just another way of using it.

More info on SCI here.

4 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.