Fork me on GitHub
#shadow-cljs
<
2021-08-27
>
valerauko08:08:02

i was wondering if there's any chance of getting clojurescript compile to webassembly

ribelo08:08:22

At least for now webassembly is faster than jit in very few cases

ribelo08:08:39

in many is also slower

ribelo08:08:46

I don't suspect that compiling clj/cljs to wasm will ever be useful

thheller14:08:02

yeah I don't see the point either. maybe as a new dialect at some point but thats gonna have even more limitations than CLJS already has.

William Mizuta14:08:18

Is it possible to install dependencies from S3 like it is possible using https://github.com/s3-wagon-private/s3-wagon-private without using any other building tool (eg. leiningen)

thheller14:08:49

yes, that should just work. just specify :maven {:repositories ...} in shadow-cljs.edn

hadils17:08:05

Good morning! I have a an app which renders web pages from the server. I have some Clojurescript code running in the browser on startup — that is working. My question is, if I write Clojurescript code to be invoked from a web page, how do I set up the functions, so they can be referenced from inside the HTML?

borkdude17:08:30

@hadilsabbagh18 This is what ^:export is for

borkdude17:08:12

If you have namespace foo.bar with a function (defn ^:export foo []) then you can refer to it from the HTML like foo.bar.foo

noonian23:08:34

Hello, does anyone know if you can configure shadow-cljs to refresh npm dependencies when they change for local npm modules (not js files within my app)? My app depends on a JS component lib that I wan't to develop alongside my shadow-cljs app but shadow doesn't see changes without restarting the server