Re: Is there a better way to do this than reduce + nested map?

2015-09-14 Thread Nicolás Berger
There is clojure.set/join to do exactly what you are asking for: ``` (-> (clojure.set/join entities locations) (clojure.set/rename {:id :location})) ;=> ({:name "bar", :location 101} {:name "foo", :location 100}) ``` (I'm also using clojure.set/rename to rename :id to :location)

Re: Clojure/Pedestal vs Go

2015-09-14 Thread Paul deGrandis
Hi Alan, Thanks for reaching out on the Pedestal mailing list! Most web benchmarks care more about throughput and concurrent connection than latency, but sadly, nearly all benchmarks show these measurements as scalars instead of distributions. The "errors" number is the number of requests

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread James Elliott
To hopefully help address another aspect of your question: This local repo is *not* inside ~/.m2 It is a directory that can be part of your project, and checked into git along with it. You just tell Leiningen where to find it using something like this: :repositories {"project"

Re: Accept patch for Compiler.java formatting and clean-up?

2015-09-14 Thread Marc O'Morain
Thanks for the reply, Alex. Would there be any interest in a patch to remove the unused variables, and other redundant code, such as the `if (true)` constructs? Or even just to remove the commented out code? Marc On 13 September 2015 at 20:02, Alex Miller wrote: > Rich

[ANN] mixfix syntax for clojure 0.2.0

2015-09-14 Thread Vitaliy Akimov
The main change in the release is cljs support and also ns is changed to more appropriate. And here is a reminder about what the library does. It simply adds mixfix operators into the language without preprocessing and changing language itself. So using the library you can write clojure

Re: [ClojureScript] Erlang-inspired error handling for core.async

2015-09-14 Thread Christian Weilbach
Hi Moe, > > I haven't felt the need for Erlang-style supervision in core.async, > but am generally interested in moving around errors > asynchronously. > > How are you dealing with failures which pass through higher-order > channel operations, e.g. into, map, pipe, etc.? into and pipe should

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread Lawrence Krubner
> I'm using lein localrepo to install a jar file with a completely made up > version and group id. you just need to use the same values in > project.clj. Fantastic! Thank you so much for this tip! This is exactly what I was looking for! On Monday, September 14, 2015 at 4:48:24 AM UTC-4,

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread Lawrence Krubner
James, thank you for this. I understood that the local repo was not in ~/.m2, I was simply hoping for a way to avoid having to install into ~/.m2. I did not know that I could use fictitious names for artifactId. I am grateful for the example you have posted. On Monday, September 14, 2015

Re: Clojure/Pedestal vs Go

2015-09-14 Thread Alan Moore
I'll second Paul's comments and raise you two: 1) Depending on your app's use cases, speed going forward will be gained primarily from parallelism. I think Clojure has a better story there than Go but that is just my opinion. 2) It is very hard to fight against cultural bias against the JVM. I

clojure support files of notepad++ v1.7.2015.9.15

2015-09-14 Thread Alex Woods
clojure support files of notepad++ v1.7.2015.9.15 https://drive.google.com/file/d/0By5ssgBX1IWadFZQRVJvSlFzeWs/view?usp=sharing

Re: Clojure/Pedestal vs Go

2015-09-14 Thread Alan Moore
One more thing: if you are truly stuck with Go you can still adopt functional patterns, style and data structures to good effect. Just because the opening paren is on the wrong side of the function name doesn't mean you can't find (or write?) an immutable data structure library for Go and promote

Re: ANN: s3-wagon-private 1.2.0

2015-09-14 Thread Andy Chambers
Hi Daniel, Thanks for taking over this project. And thanks for getting rid of the noisy logs. On Tuesday, August 25, 2015 at 6:07:41 AM UTC-7, Daniel Compton wrote: > > Hi folks > > s3-wagon-private is a > Leiningen plugin which lets you use a

lazy-seq and threads

2015-09-14 Thread Andy L
Hi, I would like ask for some advise with regards to kind of unusual interaction between lazy-seq and threads. I have a code opening some big compressed text files and processing them line by line. The code reduced to a viable example would look like that: (with-open [i (-> "mybigfile.gz"

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread Ralf Schmitt
Alex Miller writes: > Something like this can work but you need to have the proper path in the > local maven_repository. You have the repository named local. Inside the > repo, every artifact has a groupID (the first part of the dependency), the > artifactID, and the

Re: ANSI in Eclipse CounterClockwise REPL

2015-09-14 Thread Ralf Schmitt
Roy Riggs writes: > Just started teaching myself Clojure, there's one thing that seems to elude > me. I'd like to be able to pretty print output from my project in the > REPL. Clearly it already supports coloring text somehow, but I can't > figure out how to do it myself

Re: Accept patch for Compiler.java formatting and clean-up?

2015-09-14 Thread Alex Miller
No, thanks. On Monday, September 14, 2015 at 10:51:37 AM UTC-5, Marc O'Morain wrote: > > Thanks for the reply, Alex. > > Would there be any interest in a patch to remove the unused variables, and > other redundant code, such as the `if (true)` constructs? Or even just to > remove the commented

Re: Accept patch for Compiler.java formatting and clean-up?

2015-09-14 Thread Marc O'Morain
No worries, thanks. On 14 September 2015 at 20:36, Alex Miller wrote: > No, thanks. > > On Monday, September 14, 2015 at 10:51:37 AM UTC-5, Marc O'Morain wrote: >> >> Thanks for the reply, Alex. >> >> Would there be any interest in a patch to remove the unused variables, >>

Re: Clojure/Pedestal vs Go

2015-09-14 Thread Thomas Heller
Hey, this might not be too relevant to your project but since you said "web project" it might be. I cannot speak for Go but Clojure is "fast enough". I went from Ruby to Clojure in one app and the difference was huge (150ms-ish -> 10ms-ish). I'm actually somewhat of a performance junkie and

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread Lawrence Krubner
> lein-localrepo helps with installing jar files into the > local maven repository But they give examples like this: lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6 If I had that info I probably would not need to ask any questions here. But more to the point, I'm asking if I can

Re: is there a way I can use a co-worker's uberjar without unpacking it to ./.m2?

2015-09-14 Thread Ralf Schmitt
Lawrence Krubner writes: >> lein-localrepo helps with installing jar files into the >> local maven repository > > But they give examples like this: > > lein localrepo install foo-1.0.6.jar com.example/foo 1.0.6 > > If I had that info I probably would not need to ask