This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-20
Channels
- # arachne (11)
- # aws (2)
- # beginners (33)
- # boot (167)
- # cider (71)
- # clara (2)
- # cljs-dev (28)
- # cljsrn (3)
- # clojars (1)
- # clojure (83)
- # clojure-austin (21)
- # clojure-dev (24)
- # clojure-russia (19)
- # clojure-spec (33)
- # clojure-uk (108)
- # clojurescript (114)
- # component (1)
- # core-async (1)
- # cursive (7)
- # datomic (13)
- # editors (1)
- # emacs (15)
- # hoplon (10)
- # lein-figwheel (4)
- # leiningen (3)
- # mount (2)
- # om (134)
- # om-next (4)
- # onyx (42)
- # pedestal (41)
- # quil (2)
- # re-frame (29)
- # reagent (4)
- # remote-jobs (6)
- # ring-swagger (5)
- # untangled (9)
I am using the string 2waves which is causing me problems I can use quote with 2 (quote 2) => 2 or ‘2 => 2 but ‘2waves causes a java number format exception - this doesn’t make sense to me - and is there a way to use quote wth 2waves or to treat 2waves as a string
”2waves”
(i.e., write it with double quotes so it actually is a string @tbrooke )
nothing knocks me off my high horse quicker than when I bang my head for an hour trying to use reduce-kv successfully. but when I get it right 👌:skin-tone-2: it feels so nice
When you declare a dependency on clojure in project.clj is there a best practice for choosing a version?
I ask, because I recently forked clj-audio to remove some bitrot so that it could work again with contemporary versions of clojure, and it depended on [org.clojure/clojure "1.5.1"]
.
I want to bump that up to at least 1.7.0 so that cider doesn't complain but is that OK?
if it’s a lib, then generally you should pick the oldest version that works
if it’s an app, then I’d use latest stable
if it helps 95+% of users are using >= clojure 1.7
(based on state of clojure results)
OK, I'm going to go with 1.7.0 then. Thank you @alexmiller .
@beppu and if you have some dependency issues then run lein tree deps
to see the conflicts
@josh_tackett I just tried it out of curiosity and got 'tree' is not a task. See 'lein help'.
sorry
lein tree deps
ah did it again haha
no, it’s lein deps :tree
lein deps tree
lein deps tree
ran and exited cleanly with no output.
lein deps :tree
gave me this:
Possibly confusing dependencies found:
[org.clojure/tools.nrepl "0.2.7"]
overrides
[refactor-nrepl "2.3.0-SNAPSHOT"] -> [org.clojure/tools.nrepl "0.2.12"]
and
[cider/cider-nrepl "0.15.0-SNAPSHOT"] -> [org.clojure/tools.nrepl "0.2.12" :exclusions [org.clojure/clojure]]
Consider using these exclusions:
[refactor-nrepl "2.3.0-20161231.143143-11" :exclusions [org.clojure/tools.nrepl]]
[cider/cider-nrepl "0.15.0-20170113.002518-7" :exclusions [org.clojure/tools.nrepl]]
[cider/cider-nrepl "0.15.0-20170113.002518-7"]
[org.tcrawley/dynapath "0.2.5" :exclusions [[org.clojure/clojure]]]
[clojure-complete "0.2.4" :exclusions [[org.clojure/clojure]]]
[org.clojure/clojure "1.7.0"]
[org.clojure/tools.nrepl "0.2.7"]
[refactor-nrepl "2.3.0-20161231.143143-11"]
It's digging in to my ~/.lein/profiles.clj.Right now, the only dependency of my fork of clj-audio is [org.clojure/clojure "1.7.0"]
My first upload to clojars: https://clojars.org/org.clojars.beppu/clj-audio
The original is here: https://github.com/budu/clj-audio I just removed some bitrot to make it work again.
Hello. I'm using Sente to socket-send stuff between client.cljs and server.clj .. works beautifully when I have just the data and event name, but now I want to send a map of data over the wire.
So my code looks a little somethn' like
(chsk-send! [:nu-blurb {:link blurb-link-input
:content blurb-content-input
:tag blurb-content-tag}])
However, sente doesn't know what to make of that map thang. I'm thinking it makes sense to wrap it in a transit something or other?
As I recall, we were sending all sorts of data across channels / web sockets with Sente with no problems. Can you be a bit more specific about the problems you are seeing @sova?
Oh really? Hmm... So I should be able to send a map without packaging it in some special way? hmmm
@seancorfield I get something like Uncaught cljs$core$ExceptionInfo {message: "Invalid event" in my js console
However, there is a matching event name on the serverside... maybe ordering has something to do with ze defmethods..
FWIW, we were sending some pretty large hash maps with nested vectors of data back and forth via Sente for a live dashboard app we built a few years ago, and displaying those directly with D3.
@seancorfield that is excellent news. I'm wishing to do something similar with live-updating & om.next. Will tinker more and see how it goes.