From the Java documentation:
*Note: It is rarely appropriate to use this constructor. Unless a newinstance
is required, the static factory
valueOf(boolean) is generally a better choice. It is likely to yield
significantly better space and time performance.*
Emphasis not mine.
IIRC, it was
On Mon, May 16, 2011 at 2:15 AM, Meikel Brandmeyer m...@kotka.de wrote:
From the Java documentation:
Note: It is rarely appropriate to use this constructor. Unless a new
instance is required, the static factory valueOf(boolean) is generally a
better choice. It is likely to yield significantly
Christopher Redinger ch...@clojure.com writes:
Hi Christopher,
Can you supply a small example where this is happening?
No, I don't have a small, standalone example. :-(
The problem appeared when I converted my project from multimethods to
protocols. You can clone my mercurial project and run
The min-hash function throwing that exception is no longer used by
case, though it is still used by the protocols internals, so that's
what's running into the collision.
On May 15, 10:14 am, Tassilo Horn tass...@member.fsf.org wrote:
Christopher Redinger ch...@clojure.com writes:
= 0 Changes
I've just come across this:
http://typesafe.com/company
I believe Clojure will have to take a similar path in order to achieve
broader (enterprise) acceptance.
I'm sure Rich and the core dev team are working towards this goal...
--
László Török
Skype: laczoka2000
Twitter: @laczoka
--
You
The :rename option is not supported in that context. The :reload
option is unsupported in that context. I mention this to make it clear
that some options are supported, and :rename is not one of them. The
fact that :rename is supported in another context does not make it a
bug for this message to
On Mon, May 16, 2011 at 3:41 AM, Alan a...@malloys.org wrote:
The :rename option is not supported in that context.
It didn't say it was unsupported in that context; it said it was
unsupported period. That is misleading.
And am I the only one bothered by the syntaxy behavior of the ns
related
I thing the java guys are late :)
http://clojure.com/
On May 16, 9:42 am, László Török ltoro...@gmail.com wrote:
I've just come across this:
http://typesafe.com/company
I believe Clojure will have to take a similar path in order to achieve
broader (enterprise) acceptance.
I'm sure Rich
ataggart alexclojuregr...@gmail.com writes:
Hi,
The min-hash function throwing that exception is no longer used by
case, though it is still used by the protocols internals, so that's
what's running into the collision.
Ah, ok. I've thought protocols dispatch using `case', so I expected my
Just to close out this thread, my workaround was to use Clojure to
generate a shell script which I then ran manually from the command
line.
On May 15, 8:40 am, Wei Hsu yayits...@gmail.com wrote:
Thanks Meikel, I am using leiningen and that works beautifully!
So, I'm pretty sure it's a memory
Coming up with a clojure stack is not really clojury. I think clojure
does not really lack far behind scala/akka and its much simpler.
I don't really know about IDEs I can see how that could be a problem.
--
You received this message because you are subscribed to the Google
Groups Clojure
I asked this question as a leiningen issue on github a week or so a
go. Technomancy kindly referred me to the spawn plugin for leiningen.
https://github.com/levand/spawn
I haven't tried it though.
Robin
On 15 mei, 19:03, David Cabana drcab...@gmail.com wrote:
There are dev dependencies
In section 5.2.6:
A MapEntry is its own type and has two functions for retrieving its
contents: key and
val, which do exactly the same thing as (nth my-map 0) and (nth my-map
1), respectively.
Er, unclear at best. I think (nth my-map-entry x) would be better.
Calling nth on a map throws an
Or:
(defn sv [vector value]
(let [i (.indexOf ^java.util.List vector value)]
(if (neg? i) [] (subvec vector i
On Sat, May 14, 2011 at 7:50 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I think this should be pretty fast
https://gist.github.com/972423
It is at least
Hi Ken,
Thanks for this. I agree that a different name would be much more
clear.
As a side note, maybe we could use a single thread for JoC related
flubs so as not to clog the mailing list on a chapter-by-chapter
basis? Another option is to use Manning's forum at
Putting (ns test) in both files means that the content of the files are in
the same namespace, this is essentially the same as putting everything in
the same file. To be able to access something from the other file you need
to require, or use the other namespace.
If you want to access the content
As I mentioned in my previous post
http://groups.google.com/group/clojure/browse_thread/thread/4bb9cfe0d3870c1e
If I put (ns ...
(:require swank.swank))
in the beginning of the main file, the lein uberjar hangs after
copying files.
That's why I wanted to try a different approach.
Thank you,
Meeting tonight, see you there !
Our next meeting is scheduled for May 16th 630PM - 900PM @
Rubedo, inc.
14580 Beltwood Pkwy E Suite 103
Farmers Branch, TX 75244
(wifi available)
On May 4, 11:20 am, ch...@rubedoinc.com ch...@rubedoinc.com wrote:
Thanks everyone for attending the first meeting.
The (@(resolve 'swank.swank/start-repl) 4006) works well!
Thank you,
Andrei
On May 14, 1:49 pm, Meikel Brandmeyer m...@kotka.de wrote:
Hi,
Am 14.05.2011 um 00:35 schrieb Trastabuga:
I(defn -main [ args]
(do
(require 'swank.swank)
(swank.swank/start-repl 4006))
(run-jetty
On May 15, 10:03 am, David Cabana drcab...@gmail.com wrote:
There are dev dependencies (Marginalia, swank-clojure) that I want
added to every new Leiningen project. Is there a way to configure
lein so that these are automatically inserted into the project.clj
file on project creation?
Also
Hi,
I need to download files from a server to the client. I'm using jetty
and compojure as the app server.
(defroutes main-route
(GET /download []
(java.io.File. testdir/test.zip)))
when the page is called from the browser:
http://localhost:8080/download the downloaded file name is
You need to set the Content-Disposition header yourself, probably.
Content-Disposition: attachment; filename=fname.ext
On May 16, 5:27 pm, clj123123 ariela2...@gmail.com wrote:
Hi,
I need to download files from a server to the client. I'm using jetty
and compojure as the app server.
This is an interesting discussion. Rich Hickey and Steve Yegge recently
weighed in on the Seajure discussion group (and later discussed on HN).
Yegge basically takes Laszlo's position (clojure needs to start saying yes),
while Hickey takes Nick's position.
-
On Mon, May 16, 2011 at 7:33 PM, Timothy Washington twash...@gmail.com wrote:
This is an interesting discussion. Rich Hickey and Steve Yegge recently
weighed in on the Seajure discussion group (and later discussed on HN).
Yegge basically takes Laszlo's position (clojure needs to start saying
On Mon, May 16, 2011 at 10:33 PM, Timothy Washington twash...@gmail.com wrote:
This is an interesting discussion. Rich Hickey and Steve Yegge recently
weighed in on the Seajure discussion group (and later discussed on HN).
Yegge basically takes Laszlo's position (clojure needs to start saying
25 matches
Mail list logo