Re: Clojars Private/Commercial Repos

2015-07-01 Thread Jason Lewis
I like the idea of projars, both as private hosting and as a marketplace for commercial libs... again, my Datomic headaches influence my opinion, but if commercial/internal libs could just be lein deps, it'd remove an annoyance from my workflow. As for clojars, I get wanting to keep it simple.

[ANN] trapperkeeper-metrics, trapperkeeper-status, et al

2015-07-01 Thread Chris Price
Howdy. Just wanted to send out some info about a few new services we've open-sourced for use with our Trapperkeeper service framework recently. trapperkeeper-metrics: https://github.com/puppetlabs/trapperkeeper-metrics This service manages configuration and life cycle of a MetricRegistry (from

Re: [ANN] `comidi`: a committee approach to defining HTTP routes

2015-07-01 Thread Daniel Kersten
Regarding the Whats next in the README: *looking into swagger integration. I could swear I found some bidi-swagger bindings somewhere a while back, but am not finding them at the moment* Could you perhaps be thinking of the Yada swagger integration? http://yada.juxt.pro/user-guide.html#Swagger

Re: [ANN] Clojure 1.7.0 is now available

2015-07-01 Thread Andrea Russo
Congratulations to everyone involved and thank you for this great piece of work! Regards, Andrea. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are

[ANN] `comidi`: a committee approach to defining HTTP routes

2015-07-01 Thread Chris Price
Hiya. We really like the syntax of compojure for defining HTTP routes, but have had some trouble with use cases where we'd really like to be able to introspect the route tree, and aren't able to do so because the nested functions are pretty opaque. After spending some time trying to workaround

(flatten non-sequential) has a surprising result

2015-07-01 Thread J . Pablo Fernández
Hello Clojurists, Today I was surprised by the result of (flatten 1) which is '(). I was expecting '(1) or an error. Talking in some other people in #clojure @ clojurians.net, not everybody agrees that '(1) is a good result but that '() is somewhat surprising. Would it be better if it raised

Re: How to exclude compile-time dependencies from uberjar?

2015-07-01 Thread Robin Heggelund Hansen
All suggestions made the dependencies unavailable when running `lein uberjar` which means the project won't build :/ -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new

Re: [ANN] `comidi`: a committee approach to defining HTTP routes

2015-07-01 Thread Daniel Jomphe
Chris, this is definitely interesting. Quickly pluggable metrics swagger trapperkeeper componentization sure are useful integrations. Doing a quick review, it surprised me a bit how many dependencies you brought into comidi https://github.com/puppetlabs/comidi/blob/master/project.clj

Re: (flatten non-sequential) has a surprising result

2015-07-01 Thread Mikera
On Wednesday, 1 July 2015 12:55:28 UTC+1, J. Pablo Fernández wrote: Hello Clojurists, Today I was surprised by the result of (flatten 1) which is '(). I was expecting '(1) or an error. Talking in some other people in #clojure @ clojurians.net, not everybody agrees that '(1) is a good

clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-01 Thread Alan Thompson
Hi - I am trying to write some unit tests for Datomic using core.match to keep things succinct. I was hoping to use a match pattern like this: [ {:e tx-eid :a :db/txInstant:v _ :tx tx-eid :added true} {:e _ :a :community/category :v free stuff :tx tx-eid

Re: clojure.core.match: AssertionError: Pattern row reuses wildcards

2015-07-01 Thread David Nolen
Just isn't supported. Patch welcome :) David On Wed, Jul 1, 2015 at 3:46 PM, Alan Thompson clooj...@gmail.com wrote: Hi - I am trying to write some unit tests for Datomic using core.match to keep things succinct. I was hoping to use a match pattern like this: [ {:e tx-eid :a

zipmap different ordering in 1.7

2015-07-01 Thread Jo Geraerts
Hey, I when i tried to run my program with the shiny new 1.7, it broke. I have traced it down to the fact that zipmap ( https://github.com/clojure/clojure/blame/master/src/clj/clojure/core.clj#L2940) does returns the keys in a different order than i'm used to. e.g clojure 1.6: nREPL server

Re: zipmap different ordering in 1.7

2015-07-01 Thread Andy Fingerhut
Unsorted hash maps changed their seq order from Clojure 1.5.1 to Clojure 1.6.0, and some unsorted maps changed their seq order from Clojure 1.6.0 to Clojure 1.7.0. If you are relying on the seq order of unsorted maps, your program is at risk of breaking across Clojure versions. Andy On Wed, Jul

Re: (flatten non-sequential) has a surprising result

2015-07-01 Thread J . Pablo Fernández
I agree with you Mikera, it also maintains the homogeneity of always returning a sequence but some people disagreed with it, so an error might be better. -- J. Pablo Fernández pup...@pupeno.com http://pupeno.com On Jul 1, 2015 4:22 PM, Mikera mike.r.anderson...@gmail.com wrote: On Wednesday, 1

Re: Running test.check and cljs.test tests under Clojurescript

2015-07-01 Thread Sebastian Bensusan
Hi Nathan, I've been developing a small library to do exactly that: https://github.com/bensu/doo It's still alpha and doesn't support all Js targets but it will get there :) I haven't tried test.check for clojurescript yet, but if you run into trouble please post an issue since it should

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-07-01 Thread W. David Jarvis
Hey Stuart - Could you clarify what you meant your comment? I'm not sure I understand what you mean by a pure function in this context. - David On Tue, Jun 30, 2015 at 8:10 AM, Stuart Halloway stuart.hallo...@gmail.com wrote: Nice. It would be really cool if run-yagni was a pure function

No matching field found: length for class byte array

2015-07-01 Thread gingersafflower
If I do this: json-for-nlp (cheshire/generate-string map-for-nlp) byte-array-json (.getBytes json-for-nlp) I assume I now have an array of bytes. But if I do: (.length byte-array-json) I get: No matching field found: length for class Why is that? More info below.

No matching field found: length for class byte array

2015-07-01 Thread Colin Taylor
Yep you're in a cast of confused hundreds? thousands? here. It's quickly googlable but I'd still prefer to see my (rejected) humane suggestion in the error. While I don't advocate coding lessons in error messages, this really is an anomalous Java detail leaking through. user= (.length

No matching field found: length for class byte array

2015-07-01 Thread Alex Miller
Length is kind of a fake field. Use the Clojure alength function. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: zipmap different ordering in 1.7

2015-07-01 Thread Fluid Dynamics
On Wednesday, July 1, 2015 at 3:54:03 PM UTC-4, Jo Geraerts wrote: Hey, I when i tried to run my program with the shiny new 1.7, it broke. I have traced it down to the fact that zipmap ( https://github.com/clojure/clojure/blame/master/src/clj/clojure/core.clj#L2940) does returns the