This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-12
Channels
- # announcements (2)
- # beginners (104)
- # cider (2)
- # cljs-dev (26)
- # cljsrn (1)
- # clojure (125)
- # clojure-dev (27)
- # clojure-italy (24)
- # clojure-nl (24)
- # clojure-russia (4)
- # clojure-spec (10)
- # clojure-uk (83)
- # clojurescript (18)
- # code-reviews (102)
- # community-development (14)
- # core-async (18)
- # cryogen (11)
- # cursive (15)
- # datomic (16)
- # emacs (6)
- # figwheel-main (6)
- # fulcro (142)
- # graphql (5)
- # jobs (5)
- # jobs-discuss (18)
- # kaocha (1)
- # keechma (1)
- # leiningen (20)
- # luminus (1)
- # mount (5)
- # pedestal (4)
- # reagent (17)
- # reitit (8)
- # shadow-cljs (29)
- # tools-deps (19)
- # vim (108)
Is CLJS output going to cljs-out
by default a figwheel main thing, or is that the ClojureScript compiler’s default?
Looks like figwheel: https://github.com/bhauman/figwheel-main/blob/43dfeb65d4c4401ab14fefcdbae9132aeb964e5d/src/figwheel/main.cljc#L722
any way to get the compiler to not output all of the directories' worth of unconcatenated sources etc when you're doing advanced optimizations? i just want my one file 🙂
Conforming my spec works fine in clojurescript... except in advance compilation where I get 'invalid'.
Does it ring any bell?
@frozenlock not to me—probably worth a minimal repro in a JIRA
Nailed it down a little; it might not be related to spec, but rather to multimethods. (Specs are returned by multimethods)
Any tips on idomatic ways of removing debugging code for production builds? I'm using clairvoyant trace-forms, getting tired of manually wrapping and unwrapping my program. I'm using lein-cljsbuild, perhaps some kind of profile switch could help?
@jrbrodie77 one thing that could help a bit:
(when debug-prod?
{:pseudo-names true
:pretty-print true})
Hi all, can clojurescript generate web assembly code?
No, and I wouldn't even want to try it, given how javascript is today. Clojurescript works well with makeing interfaces for wasm app. I made a cljs and js interface in cljs for a c-based app https://csound-wasm-demo.hlolli.com/
I was wondering if web assembly code can be generated for serverside FAAS
It's theoretically possible but would require a lot of re-implementation to make it work without going clojure -> jvm -> bytecode -> wasm . All the bits of clojure/clojure core that are backed by JS + google closure library would need to be re-implemented in WASM, including clojure's immutable data structures. The interop story would also change significantly; for example, implementation details for protocols.