This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-20
Channels
- # aleph (11)
- # announcements (3)
- # babashka (35)
- # babashka-sci-dev (28)
- # beginners (29)
- # calva (51)
- # cider (33)
- # clj-kondo (26)
- # clj-on-windows (1)
- # clojure (40)
- # clojure-austin (1)
- # clojure-europe (47)
- # clojure-nl (9)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (69)
- # conjure (30)
- # cursive (7)
- # data-science (9)
- # datomic (2)
- # etaoin (10)
- # events (2)
- # fulcro (1)
- # graalvm (1)
- # gratitude (6)
- # helix (16)
- # honeysql (20)
- # hyperfiddle (14)
- # inf-clojure (2)
- # jobs (1)
- # jobs-discuss (12)
- # kaocha (9)
- # leiningen (2)
- # lsp (4)
- # malli (8)
- # music (9)
- # off-topic (12)
- # pathom (10)
- # portal (14)
- # practicalli (15)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (4)
- # sci (37)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (6)
- # vim (6)
- # xtdb (21)
Is there a gotcha for using npm modules that call into wasm? I have added https://github.com/drbh/wasm-flate as a dependency and I can :require
it, but the namespace just returns an empty js obj (ie #js {}
), which predictably results in no actual functions to call. The https://drbh.github.io/wasm-flate/ mention the use of wasm bindgen
to create the JS files needed, but it seems like that is also unnecessary when using the npm
version`?
I guess either this is a specific problem with flate and you can disregard it or there is something I'm missing about working with wasm in shadow
depending on how the lib is used you may however just copy the wasm file manually and load it
OK, thanks! I'll see if I can do it manually then, or just use some pure js-equivalent.
Do you have any clue on what this warning means?
14 | (defn app-view []
------------^-------------------------------------------------------------------
Receiver reference in function app.core.app_view changes meaning when namespace is collapsed.
Consider annotating @nocollapse; however, other properties on the receiver may still be collapsed.
--------------------------------------------------------------------------------