This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-19
Channels
- # announcements (2)
- # beginners (12)
- # cider (12)
- # cljsrn (1)
- # clojure (56)
- # clojure-italy (1)
- # clojure-sweden (2)
- # clojure-uk (3)
- # clojured (6)
- # clojurescript (16)
- # cursive (1)
- # data-science (3)
- # datomic (8)
- # emacs (18)
- # figwheel-main (1)
- # graphql (5)
- # jobs (10)
- # luminus (4)
- # nrepl (27)
- # off-topic (5)
- # pathom (7)
- # shadow-cljs (66)
- # sql (40)
- # tools-deps (1)
- # vim (6)
Hi @hoertlehner did you try (require ...) and (function ...) ?
I'm also curious about how this is done
I am stuck in the part of require(['vega-embed'], function(vegaEmbed) { vegaEmbed('#uuid-%s', spec, {defaultStyle:true})
Hi, I am try to get started with Web Workers. Is there a way to transfer arbitrary Clojurescript data structures (arrays, maps, keywords) between worker and the main script?
I see, so the standard approach is to serialize everything into a string?
but https://github.com/cognitect/transit-cljs is a lot faster so might be worth depending on how much data you need to transfer
quite silly 🙂 but the serialization should be sufficient since I am not going to transfer that much
Hey guys, I was wondering if this particular issue will ever be addressed: https://clojuredocs.org/clojure.core/binding#example-5784550fe4b0bafd3e2a049e
In summary, any rebound dynamically bound vars can't be used asynchronously. This has bitten me in the past, and i'm wondering if it's even possible to maintain a local context for each rebinding. As it stands, it looks like the binding
macro is incomplete within clojurescript, as it opted to use with-redef
due to the limitations in NodeJS, and Javascript.
Could this potentially be fixed in the future if NodeJS, or if the javascript ecosystem were to incorporate threading?
no, that will never work unless CLJS gets full var support like clojure has. which would make it unsuitable for the browser given that the output would be much larger and no longer support DCE
Hi @hoertlehner did you try (require ...) and (function ...) ?
I'm also curious about how this is done