Fork me on GitHub
#clojurescript
<
2018-11-12
>
cfleming02:11:47

Is CLJS output going to cljs-out by default a figwheel main thing, or is that the ClojureScript compiler’s default?

isker03:11:43

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 🙂

frozenlock13:11:50

Conforming my spec works fine in clojurescript... except in advance compilation where I get 'invalid'.

frozenlock13:11:57

Does it ring any bell?

mfikes13:11:03

@frozenlock not to me—probably worth a minimal repro in a JIRA

frozenlock13:11:01

Nailed it down a little; it might not be related to spec, but rather to multimethods. (Specs are returned by multimethods)

jrbrodie7714:11:37

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?

borkdude14:11:20

@jrbrodie77 one thing that could help a bit:

(when debug-prod?
                               {:pseudo-names true
                                :pretty-print true})

isaac15:11:02

the cljs should support bigdecimal too

manas_marthi15:11:49

Hi all, can clojurescript generate web assembly code?

hlolli16:11:24

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/

hlolli17:11:29

This blog isn't about web assembly?

manas_marthi17:11:01

I was wondering if web assembly code can be generated for serverside FAAS

lilactown17:11:41

maybe one day it will go Clojure -> JVM bytecode -> WASM

lilactown17:11:59

but CLJS -> WASM isn't really all that useful atm. feels very early

jaawerth22:11:33

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.