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,
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 t
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 tab
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 ov
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 wrote:
Ladies and gentlemen, I’m happy to inform you that CIDER 0.8.2 is out! It’s
a bu
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 o
Great Job Bozhidar! Thanks for the quality software.
On Mon, Dec 22, 2014 at 8:38 AM, Sun Ning 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 Sun,
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.
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
+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
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, 201
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 ar
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
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 col
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 ema
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]
(->>
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)))
(pa
(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 wrote:
> This is a little more concise:
>
> (->> "00101110101110"
>(map-indexed vector)
>(partition-by second)
>(filter #(= (second (first %)) \1))
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:
>
> I'
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? s
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))
> (f
21 matches
Mail list logo