Congratulations! If you ever need any German language proof-reading
let me know, I worked as a freelance IT journalist for German and
Austrian publications for 4 years. :-)
On Thu, Mar 11, 2010 at 10:39 PM, Stefan Kamphausen
wrote:
> Fellow Clojurians,
>
> please let me announce the writing of an
Hi,
On Mar 12, 11:11 am, Michael Kohl wrote:
> Congratulations! If you ever need any German language proof-reading
> let me know,
heh, thanks for the offer. I think I did things in the wrong order: I
first recruited a team of friendly proof readers and then made the
public announcement later.
On 12 Mrz., 01:58, Richard Newman wrote:
> > Is there a good reason for this behavior? What is the rationale behind
> > it?
>
> Read this.
>
> http://clojure.org/reader#syntax-quote
Thank you for pointing me to this reference. As far as I understand
it, the difference between a quoted expression
On Mar 10, 3:53 pm, Brian Hurt wrote:
> In a recent clojure:
>
> user=> (class 2147483647)
> java.lang.Integer
> user=> (class (inc 2147483647))
> java.math.BigInteger
> user=> (class (inc (inc 2147483647)))
> java.lang.Long
> user=>
>
> This isn't *technically* a bug, but it is an odd behavior.
On 12.03.2010, at 10:32, Felix Breuer wrote:
> I guess I have to rephrase my previous questions to make them more
> clear: Why was this particular behavior chosen? What is the benefit of
> having quote and syntax-quote behaving differently in this regard?
Quote and syntax-quote serve very differe
I've also tried setting the library path on the command line already
like this
java -cp -Djava.library.path=./jogl-2.0-linux-amd64/lib ~/clojure/
clojure-1.0.0.jar:./jogl-2.0-linux-amd64/lib/jogl.all.jar:./jogl-2.0-
linux-amd64/lib/gluegen-rt.jar:./jogl-2.0-linux-amd64/lib/
nativewindow.all.ja
Stefan,
That's great news about the book, and kudos on tying it back to
funding. Clojure is open source *and* funded by its community--a
terrific combination. We did something similar for Programming
Clojure. The royalties belong to Relevance, as I wrote the book on day-
job time, and thus
Hi,
did the following help ?
2010/3/11 Laurent PETIT :
> Hi Stuart,
>
> 2010/3/11 Stuart Halloway :
>> What is the preferred way of using counterclockwise with 1.2 snapshots. Here
>> is how I retrofitted an existing project:
>>
>> (1) Create a Clojure project on top of the exiting source dir
>
>
On 12 March 2010 17:09, strattonbrazil wrote:
> java -cp -Djava.library.path=./jogl-2.0-linux-amd64/lib ~/clojure/
> clojure-1.0.0.jar:./jogl-2.0-linux-amd64/lib/jogl.all.jar:./jogl-2.0-
> linux-amd64/lib/gluegen-rt.jar:./jogl-2.0-linux-amd64/lib/
> nativewindow.all.jar clojure.main test.clj
Note
Yes, it was a silly typo. Needed to move -cp over. Thanks for the
help everyone.
Whole command for reference:
java -Djava.library.path=./jogl-2.0-linux-amd64/lib -cp ~/clojure/
clojure-1.0.0.jar:./jogl-2.0-linux-amd64/lib/jogl.all.jar:./jogl-2.0-
linux-amd64/lib/gluegen-rt.jar:./jogl-2.0-linux-a
Laurent,
Yes, thanks! I am a little slow today. Splitting time between Clojure
and taxes. :-)
Stu
Hi,
did the following help ?
2010/3/11 Laurent PETIT :
Hi Stuart,
2010/3/11 Stuart Halloway :
What is the preferred way of using counterclockwise with 1.2
snapshots. Here
is how I retrof
When I update the classpath to point to Clojure 1.2 jars in Eclipse,
the .classpath file has full paths, which doesn't seem very friendly
to scms or teams. Is there a setting somewhere that makes Eclipse do
the right thing?
And out of curiosity: under what circumstances would saving full pa
Hi,
2010/3/12 Stuart Halloway :
> When I update the classpath to point to Clojure 1.2 jars in Eclipse, the
> .classpath file has full paths, which doesn't seem very friendly to scms or
> teams. Is there a setting somewhere that makes Eclipse do the right thing?
There are several ways of adding de
Sorry to use the forum for this, and feel free to insult me, but I've
been searching for the solution to this for a couple of hours.I also
have Stuart Halloway's "Programming Clojure" but the book is not very
useful as a reference for this kind of problems, unless you remember
by heart every exampl
(apply + '(1 2 3))
cf. (doc apply)
Sincerely,
Michał
--
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 po
All,
Why does clojure miss lisps' remove-duplicates and delete-duplicates?
I understand that delete-duplicates is destructive, so Rich cannot
approve it. But what about remove-duplicates, that is not?
The solution I found at http://bit.ly/byCyx2 is ridicously complex,
isn't it?
G.
--
You rece
Why not just use the "set" function?
On Fri, Mar 12, 2010 at 10:20 AM, Giacecco wrote:
> All,
> Why does clojure miss lisps' remove-duplicates and delete-duplicates?
>
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send em
There's also "distinct":
http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/distinct
On Fri, Mar 12, 2010 at 10:24 AM, Mark Engelberg
wrote:
> Why not just use the "set" function?
>
>
> On Fri, Mar 12, 2010 at 10:20 AM, Giacecco wrote:
>
>> All,
>> Why does clojure miss lisp
You could also use the "distinct" function, if you really need a lazy
sequence.
2010/3/12 Mark Engelberg
> Why not just use the "set" function?
>
> On Fri, Mar 12, 2010 at 10:20 AM, Giacecco wrote:
>
>> All,
>> Why does clojure miss lisps' remove-duplicates and delete-duplicates?
>>
>>
--
You
I'm confused. Why do we need symlinks or copies at all? Why can't we just tell
clojure where it's supposed to find a given projects dependencies? I'm sure the
answer involves some mumbo-jumbo about classpath and what not, but surely there
has to be a better alternative than whatever maven/leinin
Thanks, I was sure that there was an easier way. I updated the Rosetta
Code's entry using 'distinct'.
Giacecco
On Mar 12, 6:28 pm, Mark Engelberg wrote:
> You could also use the "distinct" function, if you really need a lazy
> sequence.
>
> 2010/3/12 Mark Engelberg
>
> > Why not just use the "
Oh, and on a related note, I hate being forced into the src, test,
lib heirarchy... Let me put my files where I want them to go.
Whatever happened to the lancet build system from Stuart Holloway's
book? That seemed to make sense to me.
I think there is a big benefit in consistent directory
Hi Meikel,
Since Laurent dragged me into the discussion:
On Thu, Mar 11, 2010 at 8:42 AM, Meikel Brandmeyer wrote:
> Hello Laurent,
>
> On Mar 10, 11:45 am, Laurent PETIT wrote:
>
> > * usage of refs : I had a bad feeling, and cgrand confirmed this to
> > me by pointing an even more interesti
The problem is that I don't get those choices when I am editing the
existing clojure and contrib jars added by ccw. In that scenario they
seem to be treated as external jars.
Stu
Hi,
2010/3/12 Stuart Halloway :
When I update the classpath to point to Clojure 1.2 jars in
Eclipse, the
.cla
there are a number of vars that are bound in clojure.main's repl,
*assert* is one of them. So in the repl you can use set!.
On Thu, Mar 11, 2010 at 3:25 PM, Benjamin Teuber
wrote:
>> > (def *assert* false)
>>
>> You cannot use def to change the value of a var in another namespace.
>> This is noth
On 12 March 2010 20:02, Michał Marczyk wrote:
> (apply + '(1 2 3))
>
> cf. (doc apply)
Also:
(reduce + '(1 2 3))
Or:
(reduce + [1 2 3])
which is perhaps more idiomatic.
--
Michael Wood
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post t
I'm confused. Why do we need symlinks or copies at all? Why can't we
just tell clojure where it's supposed to find a given projects
dependencies? I'm sure the answer involves some mumbo-jumbo about
classpath and what not, but surely there has to be a better
alternative than whatever maven/l
http://www.brool.com/index.php/pattern-matching-in-clojure
On Mar 11, 2:02 pm, Luka wrote:
> Is there a way to do pattern matching on values in clojure similar to
> this:
>
> http://docs.plt-scheme.org/reference/match.html
>
> What I'm trying to do is simple lexing/parsing: I would match parts
Hi Eric,
I downloaded Netbeans and the Enclojure plug-in for it. It is pretty
cool, though I still have to play with it more.
BTW, you forgot to mention if you need this plug-in for VS 2008 or
2010? VS 2010 has a completely different model for building plug-ins
than VS 2008.
Also, do you think it
2010/3/12 Stuart Halloway :
> The problem is that I don't get those choices when I am editing the existing
> clojure and contrib jars added by ccw. In that scenario they seem to be
> treated as external jars.
Oh, then just remove the entries and create new ones of the right type.
BTW, I think you
Two questions
How do I write a function 'bit' that converts an integer to binary
representation:
(bit 0) -> 2r0
(bit 1) -> 2r1
(bit 2) -> 2r10
(bit 3) -> 2r11
.
.
.
As well, as function 'bit-concat' with the following behavior:
(bit-concat 2r1 2r00) -> 2r100
(bit-concat 2r0 2r00) -> 2r000
(bit-
I noticed that when I set JAVA_TOOL_OPTIONS, clojure outputs the following to
STDERR before it runs my code:
Picked up JAVA_TOOL_OPTIONS: ...
This interferes with e.g. running clojure scripts as cron jobs, since it's
common to rely on the presence of output on STDERR to signal errors.
Obviousl
Whenever you use the "2r0" format, the reader automatically converts it to
its base-10 Integer value. This transformation happens at the reader level
right now -- check out the 'matchNumber' method in LispReader.java for
details. So (as far as I can tell) this means that there is no standalone
bina
uh, you are confusing representation of the thing with the thing.
Integers don't have bases, bases are used when displaying them. The
reader does not convert a "2r0" to a "base-10 Integer value" because
there is no such thing.
On Fri, Mar 12, 2010 at 4:23 PM, Brendan Ribera
wrote:
> Whenever you
that is output by the jvm and clojure has no control over it.
On Fri, Mar 12, 2010 at 4:04 PM, Michael Gardner wrote:
> I noticed that when I set JAVA_TOOL_OPTIONS, clojure outputs the following to
> STDERR before it runs my code:
>
> Picked up JAVA_TOOL_OPTIONS: ...
>
> This interferes with e.g
Yes, yes - that's what I mean. Things get a little muddled on Friday
afternoon. The reader converts the representation, and there's not a
fast/easy way to get the original representation back and manipulate it.
On Mar 12, 2010, at 4:53 PM, Kevin Downey wrote:
uh, you are confusing represe
Stu,
On 12 Mrz., 17:16, Stuart Halloway wrote:
> Stefan,
>
> That's great news about the book, and kudos on tying it back to
> funding.
thank you. I sincerely hope this will really matter. And I am very
happy that the publishers immediately agreed on this. Actually I only
pointed them to th
Laurent, Meikel, Christophe,
I guess I must be missing something obvious, but can't we just put
more than one thing into an atom in order to get atomic behavior?
Using, say, a vector. Using the simple bounded memoizer as an example,
this looks to me like it works:
(defn bounded-memoize
[f capac
Hi,
I've been evaluating clojure with a bias around performance (I do a lot of
numerical work). I don't need to the metal, but want to see that fundamental
operations are comparable to java in performance and that performance can be
had not at the expense of conciseness. In particular, I'v
Hi Eugen,
On Sat, Mar 13, 2010 at 3:28 AM, Eugen Dück wrote:
> I guess I must be missing something obvious, but can't we just put
> more than one thing into an atom in order to get atomic behavior?
>
My variations on memoize use a single atom: your bounded-memoize id roughly
equivalent to my me
40 matches
Mail list logo