For a literal collection of numbers which would be more idiomatic and
why?
(reduce + '(1 2 3)) vs (reduce + [1 2 3])
--
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 ne
Looking at the repository now the poms don't seem to include the variable
reference anymore so if you're still getting that it might be cached
somewhere?
Mark
--
Pull me down under...
On Sat, Sep 25, 2010 at 5:54 PM, Sean Corfield wrote:
> FWIW, I pulled both clojure and contrib about an hour
FWIW, I pulled both clojure and contrib about an hour ago and still
had the ${clojure.contrib.version} problem in the installed pom files,
even for individual modules (so I just ran a sed script on them to fix
them - which fixes 'complete' / 'parent' too :)
I'm afraid I don't know enough Maven to
Actually, I see that if I want to use the individual jars I need to specify
the dependency type:
org.clojure.contrib
complete
pom
1.3.0-alpha1
otherwise maven dies trying to find a complete-1.3.0-alpha1 jar file.
I'll see if I ca
Using the classifer "bin" would give you the single uber-jar, however - if
you just use the default classifier ( i.e. don't mention it ) it should pull
in ALL of 'completes' transitive dependencies.
I've just tried this locally and that seems to be working fine for me. I
see maven downloading all
> I think I read somewhere that max-key applies f more times than is
> necessary, so should not be pass any f that takes significant time to
> compute.
Yes, max-key calls f more times than necessary.
http://code.google.com/p/clojure/issues/detail?id=95
We ran into this problem yesterday on a tic
Thank you David. Time for me to dig in!
On Sep 24, 3:36 pm, David Nolen wrote:
> On Fri, Sep 24, 2010 at 5:25 PM, Btsai wrote:
> > David, Nicolas, thank you for finding the culprit so quickly :)
>
> > What profiling technique/tool did you use? I have some other code
> > that is also much slowe
On Fri, Sep 24, 2010 at 5:25 PM, Btsai wrote:
> David, Nicolas, thank you for finding the culprit so quickly :)
>
> What profiling technique/tool did you use? I have some other code
> that is also much slower in 1.3, and thought I'd take a crack at
> finding the culprit myself before spamming th
David, Nicolas, thank you for finding the culprit so quickly :)
What profiling technique/tool did you use? I have some other code
that is also much slower in 1.3, and thought I'd take a crack at
finding the culprit myself before spamming the list again.
On Sep 24, 11:26 am, Nicolas Oury wrote:
On Sep 24, 1:34 pm, Stuart Sierra wrote:
> OK, individual modules appear to work now on 1.3.0-alpha1
Yep, it works now. Many thanks for fixing this so quickly. I feel
your pain.
--Brian
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to t
OK, individual modules appear to work now on 1.3.0-alpha1
You may need to do this to clear your local Maven cache:
rm -rf ~/.m2/repository/org/clojure/contrib/
The "complete" module is still broken. It's a Maven problem, not just
Leiningen, don't understand it yet.
-S
On Sep 24, 4:16 pm,
Deleted all the deployed contrib modules, which were useless anyway.
Trying again now.
-S
--
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 - p
OK, looks like the released contrib POM files are massively broken.
This may not be fixed by the end of today.
-S
--
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 me
On Sep 24, 3:37 pm, Brian Carper wrote:
> As of yesterday, the "complete" dependency still doesn't work with
> Maven unless you add bin. [1] [2]
>
> As of today, I can't even manage to pull individual libs. I thought
> this was how to fetch clojure.contrib.sql, but it fails. [3]
Dammit. I need
http://github.com/stuartsierra/lazytest
My attempt to steal all the good ideas from clojure.test, Circumspec,
ClojureCheck, RSpec, Spock, ScalaTest, etc. Kudos to all those
authors for all their great work.
-S
--
You received this message because you are subscribed to the Google
Groups "Clojur
On Sep 24, 8:09 am, Stuart Sierra wrote:
> I have deployed release 1.3.0-alpha1 of clojure-contrib.
>
> This is the first public release of the modularized clojure-contrib.
>
> If you just want one big JAR file, download it
> fromhttp://github.com/clojure/clojure-contrib/downloads
>
> If you want
I am very encouraged to hear this. I'm looking forward to the binary
release.
On Sep 24, 10:24 am, dmiller wrote:
> I tagged a 1.2 release on the site.
>
> I have not put a separate 1.2 download or a binary release out there
> yet. Someone has contributed an entirely new build process for
> Cl
2010/9/24 cej38 :
> I noticed that clojure.string is not showing up on the API webpage,
> http://clojure.github.com/clojure/, is that an oversight?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@go
Try
(defn even?
"Returns true if n is even, throws an exception if n is not an integer"
{:added "1.0"
:static true}
[n] (zero? (bit-and (long n) (long 1
before your example.
It is fast on my computer.
(I believe there is a reflective call, without the explicit cast.)
--
You recei
After profiling even seems effectively the culprit.
Some method reflector shows up too.
On Fri, Sep 24, 2010 at 6:15 PM, David Nolen wrote:
> (defn next-term [n]
> (if (= (mod n 2) 0) (/ n 2)
> (inc (* n 3
> (defn count-terms [n]
> (if (= 1 n) 1
> (inc (count-terms (next-term
(defn next-term [n]
(if (= (mod n 2) 0) (/ n 2)
(inc (* n 3
(defn count-terms [n]
(if (= 1 n) 1
(inc (count-terms (next-term n)
(time
(let [pair (juxt identity count-terms)
pairs (map pair (range 1 10))]
(println (first (apply max-key second pairs)
It l
FYI, I tried re-writing count-terms using loop/recur, but it didn't
really make a difference:
(defn count-terms-recur [n]
(loop [n n
count 1]
(cond
(= 1 n) count
(even? n) (recur (/ n 2) (inc count))
:else (recur (inc (* n 3)) (inc count)
Clojure 1.2 = 1153.43 ms
After updating from Clojure 1.2 to Clojure 1.3 Alpha 1, I noticed that
one of my Project Euler solutions became dramatically slower. The
solution was for Problem 14, finding the number less than N that
produces the longest Collatz sequence.
For N = 100,000, the time required to find the answer wa
Greetings,
The clojure-contrib on Google code still points to the "old"
richkickey github project. The download jars are for the 1.1 release.
For me, this is one of the top hits in Google - it'll probably confuse
new users.
Can someone fix that and point to the right places. Maybe write a
discla
I noticed that clojure.string is not showing up on the API webpage,
http://clojure.github.com/clojure/, is that an oversight?
--
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
I tagged a 1.2 release on the site.
I have not put a separate 1.2 download or a binary release out there
yet. Someone has contributed an entirely new build process for
ClojureCLR that includes support for either 3.5 or 4.0 builds, better
binary managment on the builds and some other goodies. Jus
Which namespace binding ?
Isn't 'count eager ?
2010/9/24 Per Vognsen
> The namespace binding is what's holding onto the head. This is a
> common enough question (which tends to occur more in toy programs than
> real ones) that it probably belongs in a FAQ.
>
> -Per
>
> On Fri, Sep 24, 2010 at 9
On Fri, Sep 24, 2010 at 10:27 AM, samnardoni wrote:
> Awesome work on this!
>
> I was wondering: Have you considered more integration with the
> terminal (via `screen`), rather than evaluating and displaying in a
> window? I had a setup like this with vim, and it worked really well.
> For example,
On Sep 24, 1:00 am, Sean Corfield wrote:
> Building Clojure seems to install 1.3.0-SNAPSHOT but by default
> Contrib seems to expect 1.3.0-master-SNAPSHOT ?
The version string in the Clojure build was set incorrectly. It has
now been restored to "1.3.0-master-SNAPSHOT"
> If so, that's fine - I
I have deployed release 1.3.0-alpha1 of clojure-contrib.
This is the first public release of the modularized clojure-contrib.
If you just want one big JAR file, download it from
http://github.com/clojure/clojure-contrib/downloads
If you want JARs for individual modules, look at
http://build.cloj
The namespace binding is what's holding onto the head. This is a
common enough question (which tends to occur more in toy programs than
real ones) that it probably belongs in a FAQ.
-Per
On Fri, Sep 24, 2010 at 9:58 PM, Jeff Palmucci wrote:
> Sorry, I posted this question and it turned up under
Sorry, I posted this question and it turned up under the 1.3 Alpha 1
thread. Apparently you cannot reply to an email from the group, edit
the header, and start a new discussion. Here it is again:
I have a very simple test case in clojure 1.2:
(def *1* (count (range 0 1)))
I have a
Awesome work on this!
I was wondering: Have you considered more integration with the
terminal (via `screen`), rather than evaluating and displaying in a
window? I had a setup like this with vim, and it worked really well.
For example, when you evaluate a function definition, it "pipes" it to
the t
My friend visited a talk the other week about Clojure. He's not a
programmer but a mathematician, which I think gave him some unique
insights. In truth, I was a bit jealous that I was on holiday.
http://www.financialagile.com/reflections/8-software/21-clojure-with-uncle-bob
Are there many peopl
Hi Stefan,
... awesome! Congratulation and thank you for your work!
I've just ordered my copy.
Kind regards,
Thomas
On Fri, Sep 24, 2010 at 10:11 AM, Stefan Kamphausen
wrote:
> Fellow Clojurians,
>
> the book that was announced in march[1] is now available. As far as I
> know it is the first
Other Stuart is working on this today. Contributions / suggestions / reactions
to the new modular build in contrib are most welcome.
Stu
> Are there plans to also make alpha builds of Clojure Contrib available
> that are built against the equivalent Clojure Alpha?
> --
> Sean A Corfield -- (904
Regular, and looking for feedback on what that means to you. Definitely if
there is something big enough in master that you want to target it, and we
haven't built it yet, ask.
> Will alpha releases be once-a-month, once-a-quarter, or now-seems-
> good?
>
> Is there a theoretical schedule for 1
Ah, right. Thanks. I'm not keeping up with my Clojure version numbers...
On Sep 24, 2010, at 1:52 AM, Rasmus Svensson wrote:
> There's also 'bytes', 'byte-array' and 'into-array':
>
> (byte-array (map byte [1 2 3]))
> (into-array Byte/TYPE (map byte [1 2 3]))
>
> // raek
>
> --
> You received
2010/9/20 Andrew Gwozdziewycz :
> I'd like to propose that we make an effort to list
> these groups on Meetup Everywhere (http://www.meetup.com/everywhere),
> which is a free platform useful for finding a nearby meetup about a
> given topic.
Hi!
Linköping Clojure User Group will have its startup
Hi Clojurians of Linköping!
This is an invitation for the upcoming startup meeting of a new
Clojure group in Linköping.
On 29th of September (next Wednesday), Linköping Clojure User Group
will have its first meeting. (Those of you who hang around in House B
at the University may have already seen
\o/ Gratulation! :D
--
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,
Fellow Clojurians,
the book that was announced in march[1] is now available. As far as I
know it is the first German book on Clojure. If you're interested,
take a look at: http://www.clojure-buch.de
We, the authors, are particularly happy that for every book sold
0.50EUR will be used to support
42 matches
Mail list logo