This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-05
Channels
- # aleph (2)
- # beginners (93)
- # boot (9)
- # cider (1)
- # cljs-dev (50)
- # cljsrn (4)
- # clojure (32)
- # clojure-russia (58)
- # clojure-spec (23)
- # clojurescript (146)
- # clojurewerkz (2)
- # component (1)
- # cursive (2)
- # hoplon (163)
- # off-topic (4)
- # om (117)
- # onyx (8)
- # pedestal (1)
- # re-frame (13)
- # reagent (34)
- # spacemacs (17)
- # test-check (1)
- # untangled (3)
Can anyone teach me how to create a wrapped buffer with int32_type
, and a frame-type
, using clojurewerkz/buffy?
@tmarble You might have a little more luck in #slack-help. At least there are admins who can invite people.
Here's a list of admins: https://clojurians.slack.com/account/team
Argh… buddy-core and clj-crypto depend on different apparently incompatible versions of bouncy castle.
Well, pull request to upgrade it: https://github.com/macourtney/clj-crypto/pull/8
@pupeno you can (I think) explicitely set the desired bouncy castle dependency in either lein
or boot
, the problem is, which one is going to work? This is the hardest problem to solve I guess. ^ cool that you PR-ed 😉
yes it is actually resolved by the maven machinery behind lein or boot, everything at top level takes precedence over transitive deps 😉
Does anyone have a good defn
macro for debugging? I keep finding myself writing debug statements at the beginning of the function printing out the variables that are passed in and the results of the first let
block. Or is this something that clojure.spec
can fix? Oh yeah, and it needs to be clojurescript compatible (hence why I’m not just using a debugger).
@seantempesta: i think Timbre might do what you want
@lmergen: How so? I’m actually using Timbre for logging, but I’m having to manually put debug statements in every function.
hmm you are correct, i was confused by the 'spy' macro -- thats pretty much the opposite of what you want
Given a sequence [a b c d e]
, say I want to get everything up to and including d
. take-while
excludes the element which matches the predicate, which is fine, but is there a simple way to do the inclusive version?
Everything that comes to mind seems needlessly complex.
I mean, I guess I could (conj (take-while (partial not= d) coll) d)
. But that feels like I'm repairing a collection I should have been able to create in one pass.
@seantempesta https://github.com/clojure/tools.trace may not work with cljs though, never tried
Hi, I want to write a tons of items to file for later usage, each item is a map. is it possible to use EDN format. I mean, I think an edn can only contains one data struct, for example, a map. but I want something like:
{:a 1 :b 2}
{:a 2 :b 3}
{:a 3 :b 4}
...
I just find this from cookbook, i think this is what i want. https://github.com/clojure-cookbook/clojure-cookbook/blob/master/04_local-io/4-14_read-write-clojure-data-structures.asciidoc
@doglooksgood You can always just put your items in a vector! [{:a 1 :b 2} ...]
.
@amacdougall I vector may be huge and i want async write. I've copy the function from cookbook. Thanks for your help anyway.
Oh, that makes sense then. If you're working with very large files, you don't want to put the whole data structure in memory.
As for my take-while
problem, above, I settled on a local helper for my exact situation:
(defn rewind-to [pred coll]
(if (or (empty? coll) (pred (peek coll)))
coll
(rewind-to pred (pop coll))))
(rewind-to #{5} (vec (range 10)))
returns [0 1 2 3 4 5]
, which is enough for my purposes.
Hey there!
what are people converging on for time manipulation now?
since java 8 has it's own time, that is
@ericnormand I once asked sean corfield about making clj-time support the new java classes and he said "yeah maybe sure" and so neither of us did anything about it afaik
Can anyone tell me how to combine primitive types and dynamic frames, when using https://github.com/clojurewerkz/buffy