shadow-cljs

awb99 2025-02-18T14:57:27.038489Z

Currently I am using sci in the browser as a clojureacript interpreter. My usecase is to compile and run simple snippets that use exposed functions. This works, but it is has performance issues. I wonder if it is possible to use shadow-cljs to compile clojurescript code snippets at runtime (when prior I used advanced build). Thanks.

borkdude 2025-02-18T15:19:49.136239Z

Here is an alternative to SCI which can be used in a similar way but yields more performant code (compiled, not interpreted). https://github.com/squint-cljs/cherry/blob/main/doc/embed.md

thheller 2025-02-18T15:20:21.794609Z

no, this is not possible. just fundamentally it isn't possible with :advanced

awb99 2025-02-18T22:02:03.656629Z

Thanks @borkdude Thanks @thheller