Re: group-by vs. reducers?

2012-12-07 Thread Balint Erdi
Hey, Reducers is fascinating and quite complex at the same time. I feel like best practices around it has not quite solidified yet. Here is how I made your example work: (ns group-by-reducers.core (:require [clojure.core.reducers :as r :only [fold reduce map]]) (:require [criterium.core

Re: group-by vs. reducers?

2012-12-07 Thread Balint Erdi
BTW I understood the most about reducers (still not quite there yet, though :) ) from Rich Hickey's talk at EuroClojure: https://vimeo.com/45561411 On Friday, December 7, 2012 10:21:59 AM UTC+1, Balint Erdi wrote: Hey, Reducers is fascinating and quite complex at the same time. I feel like

Re: [ANN] sublime-lispindent, clojure indenting for sublime text 2

2012-12-07 Thread Jonathan Fischer Friberg
You're welcome :) On Fri, Dec 7, 2012 at 1:12 AM, Anton Holmberg antonholmber...@gmail.comwrote: This is so awesome! You are my hero. Been searching for this for a while now. Den måndagen den 12:e november 2012 kl. 17:25:38 UTC+1 skrev Jonathan Fischer Friberg: Dear clojure mailing list,

How was the skills matters conference in London (6. Dec)?

2012-12-07 Thread john
Hi, I couldn't make it to the skill matters conference in London ))-: just being curious,... how was it? Any news? was there a main theme? Many Greetings John -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: How was the skills matters conference in London (6. Dec)?

2012-12-07 Thread Thomas
It was really great, all the videos are up already: http://skillsmatter.com/event/scala/clojure-exchange-2012 Have a look. Thomas On Friday, December 7, 2012 10:59:32 AM UTC, john wrote: Hi, I couldn't make it to the skill matters conference in London ))-: just being curious,... how was

Re: group-by vs. reducers?

2012-12-07 Thread Christophe Grand
Hi, There are indeed too much allocationfoing on in your r/map. You don't need the rmap, Start from a plain old reduce like your reduce-by-naive, replace reduce by r/fold, remove the seed and add the combine-fn (which now provides the seed): (defn group-by-red [f coll] (r/fold (partial

Re: How was the skills matters conference in London (6. Dec)?

2012-12-07 Thread john
Thanks a lot Thomas ... I am looking forward to the not yet published podcast 18:00 - late Clojurex drinks Am Freitag, 7. Dezember 2012 12:33:20 UTC+1 schrieb Thomas: It was really great, all the videos are up already: http://skillsmatter.com/event/scala/clojure-exchange-2012 Have a look.

Re: group-by vs. reducers?

2012-12-07 Thread László Török
Hi, shouldn't (fn [groups a] (assoc groups (f a) (conj (get groups a []) a))) be (fn [groups a] (let [k (f a)] (assoc groups k (conj (get groups k []) a ? Las 2012/12/7 Christophe Grand christo...@cgrand.net Hi, There are indeed too much allocationfoing on in

Re: group-by vs. reducers?

2012-12-07 Thread Christophe Grand
Absolutely On Fri, Dec 7, 2012 at 1:29 PM, László Török ltoro...@gmail.com wrote: Hi, shouldn't (fn [groups a] (assoc groups (f a) (conj (get groups a []) a))) be (fn [groups a] (let [k (f a)] (assoc groups k (conj (get groups k []) a ? Las

Re: group-by vs. reducers?

2012-12-07 Thread Balint Erdi
Thank you, Christophe, that makes total sense. Interestingly, on my machine, the reducers version is still slower: Run # 0 Elapsed time: 1105.586 msecs Elapsed time: 685.8 msecs Elapsed time: 549.969 msecs Run # 1 Elapsed time: 497.831 msecs Elapsed time: 489.932 msecs Elapsed time: 520.38 msecs

Re: [lein-cljsbuild] exclude a cljs from compilation

2012-12-07 Thread Mimmo Cosenza
Hi Evan, Brenton Ashworth said that this kind of options should not be added to the compiler, but to the tools that use the compiler. Could yowl please give me some advice from where to start patching lein-cljsbuild following Brenton advice? Thank so much Mimmo Here is Brenton comment on

[ANN] New functional programming group (Western Massachusetts)

2012-12-07 Thread Chas Emerick
With help from some friends, I am starting a new FP group here in Western Massachusetts: http://www.meetup.com/Functional-Programming-Connoisseurs/ From the meetup.com description: Open to any and all that have functional and logical tastes in programming languages and data models.

Re: [lein-cljsbuild] exclude a cljs from compilation

2012-12-07 Thread David Nolen
I chimed in on the patch. Taking Brenton's approach sounds like it would be significantly simpler and require a very small patch to lein-cljsbuild. On Fri, Dec 7, 2012 at 1:24 PM, Mimmo Cosenza mimmo.cose...@gmail.comwrote: Hi Evan, Brenton Ashworth said that this kind of options should not

Re: [ANN] sublime-lispindent, clojure indenting for sublime text 2

2012-12-07 Thread Anthony Grimes
I opened a report on ST2's userecho a long time ago about the terrible indentation. If you'd like to see if fixed in Sublime Text 2 itself, please upvote: http://sublimetext.userecho.com/topic/98139-clojure-auto-indentation-is-almost-never-correct/ On Monday, November 12, 2012 10:25:38 AM

Re: How was the skills matters conference in London (6. Dec)?

2012-12-07 Thread SkillsMatterMike
'Late Clojurex drinks' was an incredible talk. It changed the very way I view and interact with the the world. On another note all the recordings are now actually up! I particularly enjoyed Sam Aaron's one http://skillsmatter.com/podcast/home-27/live-programming-with-clojure/mh-6189 On Friday,

let binding for functions

2012-12-07 Thread Jingjing
I'm a clojure newbie. Why does the compiler complain about being unable to resolve cube-root-recur on line 17? thanks 1 (def cube-root 2 (fn [n]

A Practical Optional Type System for Clojure - Final Honours Dissertation

2012-12-07 Thread Ambrose Bonnaire-Sergeant
Hi everyone, Very pleased to have handed in my final honours dissertation today. Thanks to all that submitted corrections and offered encouragement. https://github.com/downloads/frenchy64/papers/ambrose-honours.pdf Cheers, Ambrose -- You received this message because you are subscribed to the

Re: [ANN] New functional programming group (Western Massachusetts)

2012-12-07 Thread Christopher Meiklejohn
On Friday, December 7, 2012 at 2:35 PM, Chas Emerick wrote: With help from some friends, I am starting a new FP group here in Western Massachusetts: I just thought that I would mention that I've also recently started a FP group in Providence, Rhode Island; our second meeting is on Jan. 28 at

Re: A Practical Optional Type System for Clojure - Final Honours Dissertation

2012-12-07 Thread David Nolen
Congrats! :) David On Fri, Dec 7, 2012 at 7:33 AM, Ambrose Bonnaire-Sergeant abonnaireserge...@gmail.com wrote: Hi everyone, Very pleased to have handed in my final honours dissertation today. Thanks to all that submitted corrections and offered encouragement.

abysmal multicore performance, especially on AMD processors

2012-12-07 Thread Lee Spector
I've been running compute intensive (multi-day), highly parallelizable Clojure processes on high-core-count machines and blithely assuming that since I saw near maximal CPU utilization in top and the like that I was probably getting good speedups. But a colleague recently did some tests and

Re: abysmal multicore performance, especially on AMD processors

2012-12-07 Thread Andy Fingerhut
Lee: I'll just give a brief description right now, but one thing I've found in the past on a 2-core machine that was achieving much less than 2x speedup was memory bandwidth being the limiting factor. Not all Clojure code allocates memory, but a lot does. If the hardware in a system can

Re: abysmal multicore performance, especially on AMD processors

2012-12-07 Thread Lee Spector
Thanks Andy. My applications definitely allocate a lot of memory, which is reflected in all of that consing in the test I was using. It'd be hard to do what we do in any other way. I can see how a test using a Java mutable array would help to diagnose the problem, but if that IS the problem

Re: abysmal multicore performance, especially on AMD processors

2012-12-07 Thread Andy Fingerhut
On Dec 7, 2012, at 5:25 PM, Lee Spector wrote: Another strange observation is that we can run multiple instances of the test on the same machine and (up to some limit, presumably) they don't seem to slow each other down, even though just one instance of the test appears to be maxing out