On Fri, May 11, 2012 at 8:53 PM, James Thornton
wrote:
> Is setting a dynamic binding at runtime the recommended way of storing the
> config map?
There are many ways of doing this. One approach that I have seen a lot
is something like this -
;; core.clj
(def ^:dynamic *settings* {:default :stu
> It looks like you have written a little mini-library for creating and
> working with association lists. Why on earth would you use association
> lists instead of mas? The seq representation of a map is basically the
> same.
>
> user=> (seq {"foo" "bar"})
> (["foo" "bar"])
> user=> (into {} (seq
Phil Hagelberg:
> I'm happy to announce the release of the fourth preview of Leiningen 2.0.0.
>
> The most important thing in this release is that it fixes a bug where
> the dev profile would be applied when generating a pom to push to
> clojars. So if you are developing libraries with preview3,
Hey there! I was taking a look at the libraries implementation and have a
few suggestions/questions.
Most importantly, what is going on
here:
https://github.com/wtetzner/exploding-fish/blob/master/src/org/bovinegenius/exploding_fish/query_string.clj
It looks like you have written a little mini
Hello folks.
I'm happy to announce the release of the fourth preview of Leiningen 2.0.0.
The most important thing in this release is that it fixes a bug where
the dev profile would be applied when generating a pom to push to
clojars. So if you are developing libraries with preview3, it's
importan
On Fri, May 11, 2012 at 3:58 PM, Moritz Ulrich
wrote:
> Are you on 32 or 64 bit Java? Startup is much faster on my machine
> (2008 Macbook, Core2Duo) when I use a 32bit vm.
If you have a newish JVM (hotspot 20+ IIRC) then TieredCompilation
will allow the 64-bit JVM to boot as fast as the 32-bit o
I use ubuntu with an SSD and I hardly notice the lein repl startup time.
Even in Eclipse the repl starts within a couple of seconds.
I am in the same situation, multiple processes, oracle, About 80
dependencies total.
I7 HT, 8 gig of ram
Before using an SSD, I used to copy the most used to
Are you on 32 or 64 bit Java? Startup is much faster on my machine
(2008 Macbook, Core2Duo) when I use a 32bit vm.
On Fri, May 11, 2012 at 11:33 PM, Stuart Sierra
wrote:
> I have a large-ish Clojure project that involves a lot of network servers
> and background threads. It's difficult to work on
You are using an SSD drive I assume ? When you say large, how many
servers/threads ?
Luc
> I have a large-ish Clojure project that involves a lot of network servers
> and background threads. It's difficult to work on a program like this by
> reloading code at the REPL, because old background t
On Fri, May 11, 2012 at 2:33 PM, Stuart Sierra
wrote:
> I have a large-ish Clojure project that involves a lot of network servers
> and background threads. It's difficult to work on a program like this by
> reloading code at the REPL, because old background threads may still be
> running with old
I have a large-ish Clojure project that involves a lot of network servers
and background threads. It's difficult to work on a program like this by
reloading code at the REPL, because old background threads may still be
running with old code. So I end up restarting the process many times per
day
In addition to following up on all the great suggestions above, I'd hack about
with Quil; it's a lot of fun and you'll get instant feedback. You'll also very
quickly run into the fun that is juggling pure fns, lazy sequences and
orchestrating side effects (to sketch stuff).
http://github.com/q
Just hasn't been implemented yet, I think.
-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 - please be patient with your
first post.
To un
>
> Is setting a dynamic binding at runtime the recommended way of storing the
> config map?
>
I prefer passing it in explicitly. Slightly more verbose, but easier to
understand.
-S
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to thi
Announcing C2, a data visualization library inspired by D3.js
C2 is not a charting library; there are no plotting functions like
"scatterplot" or "piechart" .
Instead, C2 is a collection of scales, map projections, and component
templates (e.g., axes) that you can compose to build custom data
graph
On Mon, May 7, 2012 at 8:48 PM, toan wrote:
> Hi folks,
>
> I've been trying to learn clojure for a while. I've read the clojure
> section of "seven languages..." and currently trying to get through
> "joy of clojure." I've been practicing with the prompt a bit and
> trying to learn emacs that ca
Looks awesome.
I think we're going the same direction. Myself, I wanted clays to be
first-class items that can live in Clojure namespaces, and give you all of
that. The downside is this: if I particular clay is wrong for some
particular evaluation, you're stuck. The clay is the clay is the clay
On Fri, May 11, 2012 at 9:17 AM, Sean Corfield wrote:
> Reducers are part of the 1.5.0 master branch. The only reason they're
> not already available in a master-SNAPSHOT build is because Clojure
> isn't building at the moment due to the jsr166y change and Java 6
> dependency.
Just to clarify: Cl
On Fri, May 11, 2012 at 6:28 AM, Softaddicts
wrote:
> I may be a bit aggressive here :) but will this be ready for 1.5 ? Or
> available
> as an independent feature ? (I am not sure about this given the name)
Reducers are part of the 1.5.0 master branch. The only reason they're
not already availa
A work in progress:
http://github.com/swannodette/mori
Pull requests welcome :)
David
--
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 - ple
On Friday, May 11, 2012 4:03:52 AM UTC-5, Baishampayan Ghose wrote:
>
>
> * Create a protocol called IGraphDBClient or something similar and
> create a spec.
> * Provide different client implementations in their own namespaces
> using deftype, eg. bulbs.db.neo4j/client, bulbs.db.orientdb/clien
You may want to check-out Dave Ray's seesaw .
"Seesaw turns the Horror of Swing into a friendly, well-documented, Clojure
library"
https://github.com/daveray/seesaw
-FS.
On May 10, 2012, at 3:03 PM, JvJ wrote:
> Hi,
>
> I'm new to Clojure, but a longtime Java programmer. I'm trying to get
>
Hi,
I'm new to Clojure, but a longtime Java programmer. I'm trying to get
the hang of gen-class, and I'd like to write a custom JFrame that
extends the paint method so I can get some ***aw3xX0m3 gr4f-X***.
Anyways, I'm having some trouble understanding gen-class, inheritance,
etc.
Here's what I
I think you'd just have to do it manually with a reduce
Something like this should work.
(defn foldfn [i n]
(let [result (first i)
current (second i)]
(if (re-matches #"^(\w)\1.*" n)
(if (= [] current)
[result [n]]
[(conj result current) [n]])
[result (co
Hi,
I am trying to deploy ejb written in clojure to OpenEjb standalone
server. Clojure library clojure-1.3.0.jar is in /lib directory of
openejb. When ejb is initialising, I get the error pasted below. I'll
be very thankful for any hint or suggestion.
Ales
INFO: Configuring enterprise applicati
java -jar clojure-1.4.0.jar
On May 10, 2012 9:36 AM, "Zeno" wrote:
> Hi,
> I have downloaded and unzipped Clojure 1.4.0 but when trying "java -cp
> clojure-1.4.0.jar clojure.main" as stated on the getting started page
> I get the following.
>
> D:\Profiles\rcarthur\My Documents\Clojure1_4\clojure
Hi Rich,
I may be a bit aggressive here :) but will this be ready for 1.5 ? Or available
as an independent feature ? (I am not sure about this given the name)
I intend to skip 1.4 depending on our delivery cycles and the availability of
1.5, we are
about to move 1.3 in prod here and my eyes are
Hi,
What about something like this -
* Create a protocol called IGraphDBClient or something similar and
create a spec.
* Provide different client implementations in their own namespaces
using deftype, eg. bulbs.db.neo4j/client, bulbs.db.orientdb/client,
etc.
* Put your core functions in a core ns
On Fri, May 11, 2012 at 12:47 AM, Rich Hickey wrote:
> IMO, Nicolas' material is a distraction in understanding reducers, except as
> historical background.
I perfectly agree.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, s
29 matches
Mail list logo