On Mon, May 16, 2011 at 2:15 AM, Meikel Brandmeyer 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 better
>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
As mentioned in my previous question I didn't use (ns test.test1) but
only (ns test) and it worked.
(ns test.test1) throws
java.lang.Exception: Unable to resolve symbol
when I call a method in the other .clj file
Thanks,
Mohan
--
You received this message because you are subscribed to the G
On Sun, May 15, 2011 at 11:27 PM, Alan wrote:
> On May 15, 7:26 pm, Ken Wesson wrote:
>> Instance one is right near the end of section 2.9.1:
>>
>> "This is because report-ns exists in the joy.ch1 namespace and ..."
>>
>> The correct namespace name is joy.ch2.
>>
>> Instance two is in 2.9.4:
>>
>
user=> (defn truthy? [x] (if x true false))
#'user/foo
user=> (truthy? nil)
false
user=> (truthy? Boolean/FALSE)
false
user=> (Boolean. false)
false
user=> (truthy? (Boolean. false))
true
Wait, what?
Looks like Clojure's truthy check is looking for something to be
either nil (= Java null) or the
On May 15, 7:26 pm, Ken Wesson wrote:
> Instance one is right near the end of section 2.9.1:
>
> "This is because report-ns exists in the joy.ch1 namespace and ..."
>
> The correct namespace name is joy.ch2.
>
> Instance two is in 2.9.4:
>
> "It should be noted that :rename also works with the :us
Instance one is right near the end of section 2.9.1:
"This is because report-ns exists in the joy.ch1 namespace and ..."
The correct namespace name is joy.ch2.
Instance two is in 2.9.4:
"It should be noted that :rename also works with the :use directive."
This doesn't seem to be true, at least
On Sunday, May 15, 2011 8:34:06 PM UTC-4, Alan wrote:
>
> I'm not on alpha7 yet, but what about (case 49 "1" 'string 49 'int)?
> "1" hashes to 49, so there's a hash collision.
>
user=> (case 49 "1" 'string 49 'int)
int
--
You received this message because you are subscribed to the Google
Gr
On Saturday, May 14, 2011 7:21:06 PM UTC-4, Praki wrote:
>
> bit-clear documentation doesn't explicitly state that index is zero-
> based but I would think so. Alpha7 seems to have broken this function.
>
Thanks, I've created CLJ-795 and put it into Release.next.
http://dev.clojure.org/jira/br
I'm not on alpha7 yet, but what about (case 49 "1" 'string 49 'int)?
"1" hashes to 49, so there's a hash collision.
On May 15, 5:26 pm, Christopher Redinger wrote:
> On Sunday, May 15, 2011 1:14:20 PM UTC-4, Tassilo Horn wrote:
>
> > java.lang.IllegalArgumentException: No distinct mapping found
On Sunday, May 15, 2011 1:14:20 PM UTC-4, Tassilo Horn wrote:
>
> java.lang.IllegalArgumentException: No distinct mapping found
> at clojure.core$min_hash.invoke (core.clj:5805)
>
Can you supply a small example where this is happening?
For reference, this code that failed in alpha6:
user=>
On May 14, 2011, at 2:17 PM, Islon Scherer wrote:
> Is there anyplace people post ideas of libraries/frameworks/functions
> that would be nice to be implemented in clojure?
> Sometimes I want to help the community but I don't know what to do (an
> idea), what's already done (yeah, I know one can
Good ideas, I'm thinking about implementing it as my first clojure web
project.
Thanks!
--
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
Christopher Redinger writes:
> = 0 Changes from 1.3 Alpha 6 to 1.3 Alpha 7 (05/13/2011)
>
> [...]
> * case now handles hash collisions (CLJ-426)
I've just updated my git master checkout, built it, and tried to use it
in my project. But still I get a hash collision error:
java.lang.Illega
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?
Thank you,
David
--
You received this message because you are subscri
On May 15, 2011, at 1:34 AM, Thorsten Wilms wrote:
> * Wrapper around git or darcs for using them as storage backends
See:
rnewman/clj-git - GitHub
for a start on this.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send
Thanks Meikel, I am using leiningen and that works beautifully!
So, I'm pretty sure it's a memory issue since the wkhtmltopdf process
works for short pages but not for long pages (though, even the long
pages complete in bash). What would be a good way to verify that, and
how would I increase the m
Hi,
Am 15.05.2011 um 09:31 schrieb Wei Hsu:
> Meikel, what are the commands to start an external repl and tie it
> with nailgun?
Start the external repl via eg. java -cp
clojure.main -r. Or via lein
repl, if you use leiningen. Then enter the following commands:
(require 'vimclojure.nails)
(v
My understanding is that the contrib version graduated into core at
some point (in the clojure.java.shell namespace) and its old name is
only still around for backwards compatibility.
On May 15, 12:31 am, Wei Hsu wrote:
> Thanks for the tips. Alan, I'm now using clojure.java.shell (still
> hangin
On 05/15/2011 06:10 AM, Vivek Khurana wrote:
On Sun, May 15, 2011 at 2:47 AM, Islon Scherer wrote:
Is there anyplace people post ideas of libraries/frameworks/functions
that would be nice to be implemented in clojure?
Why not post them to mailing list ?
That means risking a stream of noi
Thanks for the tips. Alan, I'm now using clojure.java.shell (still
hanging, though). Could you explain the difference between the two?
Meikel, what are the commands to start an external repl and tie it
with nailgun? Can I interact with nailgun with both the external repl
and the vim repl?
On May
Hi,
Am 15.05.2011 um 07:12 schrieb Wei Hsu:
> I'm using vimclojure and nailgun.
A general note:
The vimclojure shell blocks until the whole command is completed accumulating
all output on the way. This is for technical reasons, I can't anything about.
Please use it only for short interactions
22 matches
Mail list logo