Fork me on GitHub
#clojurescript
<
2017-07-01
>
zimablue01:07:19

I just tried Proton, it's really cool, coming from using Spacemacs a bit, just wondering if anyone involved in it can explain if there's any way to separate the master-config element of it from the really-useful-prebuilt-spacemacs-style from it

zimablue01:07:16

like the actual default setup seems amazing but having it become the master control for packages and settings totally ties me in and forces me to really understand this one add-in to then configure/extend it any further?

v4711:07:16

Is there a CSV parser I can use from clojurescript? Everything seems to be JVM only with the exception of https://github.com/testdouble/clojurescript.csv. That one unfortunately seems to be abandoned.

thheller11:07:45

(:require [goog.labs.format.csv :as csv]) then (csv/parse text)

v4711:07:10

Thanks, will try that.

ajs13:07:24

Are there significant performance differences between multi methods and protocols in cljs?

ajs18:07:07

Are the performance trade-offs the same in clojurescript as they are in clojure?

dnolen19:07:17

@ajs yes more or less the same

yury.solovyov15:07:58

How does one ensure that hot-loaded event handlers do not get re-attached on code reloading?

wilkerlucio19:07:11

yury.solovyov: that's one of the big problems React solves

yury.solovyov07:07:08

Well, if you have this listener outside react's container...

wilkerlucio18:07:29

@U297WCSHK one thing you can do is add the event listener inside a defonce form, so it only get's registered at the first load

ajs18:07:07
replied to a thread:@ajs yes

Are the performance trade-offs the same in clojurescript as they are in clojure?

madstap23:07:22

Why do I get this error? Is this possible in cljs?

----  Could not Analyze  <cljs form>   line:4  column:10  ----

  nth not supported on this type: Symbol

  1           (defn clean-ns
  2  ([] (clean-ns *ns*))
  3  ([ns]
  4   (map #(ns-unmap ns %) (keys (ns-interns ns)))))
            ^--- 

----  Analysis Error  ----

dnolen23:07:58

@madstap there are no reified namespaces or vars in ClojureScript

dnolen23:07:10

better to assume none of that stuff works

dnolen23:07:01

there a couple cases where things work out but it’s mostly restricted use cases - testing / specs / calling across async module boundaries

dnolen23:07:09

and none of these cases are dynamic - macro time only

daiyi23:07:50

what's the best way to capture keypress events with clojurescript? is there a good simple example somewhere out there that isn't an entire library? :'D (not sure if this is the right place to ask but here goes)

daiyi23:07:11

@anmonteiro oh excellent, thank you! \o/

yury.solovyov07:07:08

Well, if you have this listener outside react's container...