[ANN] Eastwood, the Clojure lint tool, version 0.2.1 released

2014-12-22 Thread Andy Fingerhut
Eastwood, the Clojure lint tool, version 0.2.1 has been released. See install instructions and complete documentation at [1]. If you use Emacs+Cider or Eclipse+Counterclockwise development environments, there are now add-ons that integrate Eastwood warnings, thanks to the work of Peter Fraenkel,

Re: gemacl: Scientific computing application written in Clojure

2014-12-22 Thread Henrik Eneroth
Interesting read Jose, thanks! It might be interesting to try a transducer on (defn dot-prod Returns the dot product of two vectors [v1 v2] (reduce + (map * v1 v2))) if you can get your hands on the 1.7 alpha and the time and inclination to do it. Transducers have shown to be faster

Re: Author a Book on Clojure - Packt Publishing

2014-12-22 Thread Jan-Paul Bultmann
Just my 50 cent. I was asked to do a technical review on a Clojure podcasts by packtpub once. The storyboard they send me consisted of a word file containing a huge table with text and source code. Why would anybody send a technical reviewer source code in a word document, yet alone in a

Re: gemacl: Scientific computing application written in Clojure

2014-12-22 Thread Mikera
For most array operations (e.g. dot products on vectors), I strongly recommend trying out the recent core.matrix implementations. We've put a lot of effort into fast implementations and a nice clean Clojure API so I'd love to see them used where it makes sense! For example vectorz-clj can be

Re: CIDER 0.8.2 released!

2014-12-22 Thread Sun Ning
Good Job, Bozhidar! I've already updated from MELPA. Everything works like a charm. On 12/21/2014 08:39 PM, Bruce Durling wrote: Thanks! cheers, Bruce On Sun, Dec 21, 2014 at 10:54 AM, Bozhidar Batsov bozhi...@batsov.com wrote: Ladies and gentlemen, I’m happy to inform you that CIDER

Re: Author a Book on Clojure - Packt Publishing

2014-12-22 Thread Michael Klishin
On 22 December 2014 at 13:39:12, Jan-Paul Bultmann (janpaulbultm...@googlemail.com) wrote: It feels to me that this publisher is just a book mill that goes for quantity and not quality. I couldn't make it thought a single book I bought from them because reading them felt like a waste of

Re: CIDER 0.8.2 released!

2014-12-22 Thread Shahrdad Shadab
Great Job Bozhidar! Thanks for the quality software. On Mon, Dec 22, 2014 at 8:38 AM, Sun Ning classicn...@gmail.com wrote: Good Job, Bozhidar! I've already updated from MELPA. Everything works like a charm. On 12/21/2014 08:39 PM, Bruce Durling wrote: Thanks! cheers, Bruce On

Re: Better update function

2014-12-22 Thread Juvenn Woo
Dear Steve, I’m new in clojure as well, but if we try to break up your one function into two, we’d have the following: (defn update1 Given a two-level nested vector of maps, two keys for each map, and an update function. Apply the function in the inner map, and returns nested structure.

New Functional Programming Job Opportunities

2014-12-22 Thread Functional Jobs
Here are some functional programming job opportunities that were posted recently: Functional Software Developer at OpinionLab http://functionaljobs.com/jobs/8763-functional-software-developer-at-opinionlab Cheers, Sean Murphy FunctionalJobs.com -- You received this message because you

Re: Contrats to Cursive!!!

2014-12-22 Thread Alan Moore
+1 for Colin and Cursive! Alan -- 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 first post. To unsubscribe from

Re: CIDER 0.8.2 released!

2014-12-22 Thread J Irving
Thanks Bozhidar, for the A+ tools and frequent updates. I use the fruits of your labour daily, and your absurd pace of development more than satisfies my pathological need to constantly upgrade. (I would also observe that most appreciation is silent, unlike the other thing :)) On Mon, Dec 22,

Re: New Functional Programming Job Opportunities

2014-12-22 Thread John Jacobsen
By the way, I have worked at OpinionLab since last February, and my coding has been nearly 100% Clojure since then. If you like Chicago, it's a nice place to work, and I'm happy to answer questions off-list about it. On Monday, December 22, 2014 11:00:28 AM UTC-6, Sean Murphy wrote: Here are

Re: gemacl: Scientific computing application written in Clojure

2014-12-22 Thread Christopher Small
I'll second the use of core.matrix. It's a wonderful, idiomatic, fast library, and I hope to see folks continue to rally around it. On Monday, December 22, 2014 3:47:59 AM UTC-7, Mikera wrote: For most array operations (e.g. dot products on vectors), I strongly recommend trying out the

Re: ANN: ClojureScript 0.0-2505

2014-12-22 Thread David Nolen
Just pushed out 0.0-2511. The only change is a new compiler flag :cache-analysis. When set to true the compiler will cache the EDN analysis data for each ClojureScript file to disk. When coupled with the lein fast trampoline feature and AOTed ClojureScript you can see some significant gains for

Re: [ClojureScript] Browserless ClojureScript

2014-12-22 Thread Ivan L
Great job! -- 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 first post. To unsubscribe from this group, send

How can I remove the nils in the result?

2014-12-22 Thread Pauli
Hi, all: I'm tring to solve such a problem: Given a string consisting of 1 and 0, find all the locations of 1, and print them in the format of intervals. For example: 00101110101110 = 3, 5-7, 9, 11-13 Here is my solution: (defn bar [x] (letfn [(foo [mystr] (-

Re: How can I remove the nils in the result?

2014-12-22 Thread Ben Wolfson
This is a little more concise: (- 00101110101110 (map-indexed vector) (partition-by second) (filter #(= (second (first %)) \1)) (map (comp (fn [[f tail]] (if rest (str f - (last tail)) (str f))) (partial

Re: How can I remove the nils in the result?

2014-12-22 Thread Ben Wolfson
(it's also zero-indexed, unlike yours, but that isn't a big change) On Mon, Dec 22, 2014 at 9:17 PM, Ben Wolfson wolf...@gmail.com wrote: This is a little more concise: (- 00101110101110 (map-indexed vector) (partition-by second) (filter #(= (second (first

Re: gemacl: Scientific computing application written in Clojure

2014-12-22 Thread Jose M. Perez Sanchez
Thank you very much for your replies. I will definitely take a look at core.matrix. I really hate the fact that I had to use Java arrays to make it fast. I'll take a look at transducers as well. Kind regards, Jose. On Monday, December 22, 2014 7:09:27 PM UTC-5, Christopher Small wrote:

Re: How can I remove the nils in the result?

2014-12-22 Thread Tim
Another option (though Bens does look nicer!) (loop [xs (- 00101110101110 (map vector (iterate inc 1)) (filter #(= (last %) \1)) (map first)) it nil] (let [steps (partition 2 1 xs) [i o] (split-with in-step steps)] (cond (every? empty?

Re: How can I remove the nils in the result?

2014-12-22 Thread Tim
whoops... (defn in-step [xs] (let [[x1 x2] xs] (= (- x2 x1) 1))) On Monday, December 22, 2014 11:38:49 PM UTC-8, Tim wrote: Another option (though Bens does look nicer!) (loop [xs (- 00101110101110 (map vector (iterate inc 1)) (filter #(=