This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (6)
- # beginners (147)
- # boot (9)
- # braveandtrue (5)
- # cider (11)
- # cljsjs (1)
- # cljsrn (4)
- # clojure (82)
- # clojure-greece (9)
- # clojure-poland (9)
- # clojure-russia (288)
- # clojure-taiwan (2)
- # clojure-uk (73)
- # clojurescript (123)
- # consulting (3)
- # cursive (26)
- # datascript (4)
- # datomic (32)
- # dirac (56)
- # emacs (11)
- # flambo (2)
- # hoplon (425)
- # jobs-rus (1)
- # lein-figwheel (3)
- # leiningen (16)
- # luminus (42)
- # mount (7)
- # om (1)
- # om-next (2)
- # onyx (8)
- # other-languages (146)
- # quil (3)
- # re-frame (17)
- # reagent (6)
- # spacemacs (2)
- # uncomplicate (8)
- # untangled (71)
- # vim (2)
- # yada (49)
Is there any particular reason why logging with log4j works in the uberjar and not in the repl?
all the things from
com.zaxxer.hikari for instance, were printed out before, and they are if I launch the
Very weird because if I
log/info from the repl I see the trace, but the log completely ignores the one, for instance, on app bootstrap (it works with the jar!)
Is this still the canonical page for clojure success stories? http://dev.clojure.org/display/community/Clojure+Success+Stories
@kul: i agree. and then, there is no good story for when you're dealing with large xml files. if you find something that makes things easier, i'd be interested as well.
@kul: FWIF, I believe "Programming Clojure" has an entire chapter of a Sax Parser or something, maybe you can use it as inspiration
i guess no one is doing xml these days, i am forced to deal with it due to a legacy third party application
@kul There is nothing against using a bit of Java in your project if that makes life easier. You can then call the Java function from Clojure
I think the way to update xml is quite elegant already but its a shame that its spread across a dozen internal and external ns
@kul: I have used hickory to convert XML and zippers for extracting data; I plan to try using spectre for data extraction next time to see how that combo works (I imagine it being powerful)
@alexmiller: noticed MixRadio is still on there. They were shut down by their new buyer. Nothing to do with Clojure and all to do with the business model but not sure if you still want to reference them.
Well I'd still treat Prismatic as quite a success story :). Don't know the mix radio history as well
Quick question. I see myself doing this a lot to get the value of the first logical true:
(some #(when (= % 3) %) [1 2 3 4 5])
Is there a native Clojure construct that can do something like this:
(some-cond #(= % 3) [1 2 3 4 5])
given a reducing function that just aborts on any value...
(defn yield-first ([result] result) ([result input] (when input (reduced input))))
someand first/filter become:
(defn some [pred coll] (transduce (map pred) yield-first nil coll)) (defn ffilter [pred coll] (transduce (filter pred) yield-first nil coll))
i have a conceptual question regarding clojure … nearly all the operations operating on sequences return the list-form, not the vector… but vectors are used much more frequently overall in user-land. Is there a reason for this? E.g. why do I keep having to
(vec (some operation returns ‘()))?
normally you don’t want to wrap a lazy seq with
vec because that will realize the sequence and lose the benefits of laziness
so it seems the best strategy is to keep everything and at the edges and convert to a vector (if needed)?
i should have a closer look at this. i’m curious the performance implications of ‘lazy everywhere’ versus ‘make it a vec for better lookup’ and where/when that matters.
if you are not aware that vectors are not lazy, then it is very likely you are doing lots of things that are not lazy
@xfcjscn: @thiagofm Fluokitten supports reduce with multiple arguments with it's
foldmap functions http://fluokitten.uncomplicate.org/codox/uncomplicate.fluokitten.core.html#var-fold
I'm trying to use plumatic/schema's abstract-map-schema--is there a way to specify a default dispatch value?