On Sep 8, 1:27 am, mac <[EMAIL PROTECTED]> wrote:
> I can't make it so I have a question: Will it be recorded?
> Would be great, even if the talk itself will be similar to what is in
> the podcasts that exist already, because it can be interesting to hear
> you answer questions.
>
I hope to rec
On Sep 6, 6:05 am, Mathias Dahl <[EMAIL PROTECTED]> wrote:
> However, it seems very complicated, does anyone have some clever idea
> on how to optimize it?
The Java Calendar class is a nuisance -- there are alternatives, like
Joda:
http://joda-time.sourceforge.net/
-Stuart
--~--~-~--~
I'm a bit confused about the nature of recur. Is there a guideline
for understanding what part of the code recur will 'go to'. Obviously
you can have a LOOP expression, but apparently you can also recur to
other functions. So I'm wondering WHICH functions can you recur to,
all? some? What if you
On Mon, Sep 8, 2008 at 9:04 AM, noahr <[EMAIL PROTECTED]> wrote:
>
> I'm a bit confused about the nature of recur. Is there a guideline
> for understanding what part of the code recur will 'go to'. Obviously
> you can have a LOOP expression, but apparently you can also recur to
> other functions.
Thanks, between your explanation and the link, I understand it now.
Basically you refer to the higher level LOOP or the 'beginning of the
function definition your in'. I thought recur would proceed to the
next higher function call, so that for example if you had RECUR inside
a 'do', it would recur
I've hit another mystery (to me), that I hope someone can explain.
Why doesn't the following work?
(defn tst[] (pr 4))
(defn trd[]
(let [f #(eval '(tst))]
(. (Thread. f) start) ))
It seems that a separate thread can not EVAL any defined functions. If
I change the above to remove the thr
Hello,
Am 08.09.2008 um 20:37 schrieb noahr:
(defn tst[] (pr 4))
(defn trd[]
(let [f #(eval '(tst))]
(. (Thread. f) start) ))
The eval executes the code in the clojure namespace. You have to fully
qualify your tst function. The easiest way to do this to use ` instead
of '. So using `
You can try the following:
(defn trd[]
(let [f #(binding [*ns* *ns*] (in-ns 'user) (eval '(tst)))]
(. (Thread. f) start) ))
This sets the namespace for your new thread before it evals. You also
might want to take a look at clojure.lang.Repl for an example of how
to create a REPL, also repl
(ns test
(:require test))
results in:
clojure.lang.Compiler$CompilerException: test.clj:0: null
at clojure.lang.Compiler.analyzeSeq(Compiler.java:3824)
at clojure.lang.Compiler.analyze(Compiler.java:3657)
at clojure.lang.Compiler.eval(Compiler.java:3848)
at cloj
On Sep 8, 4:08 pm, ntupel <[EMAIL PROTECTED]> wrote:
> (ns test
> (:require test))
>
> results in:
>
> clojure.lang.Compiler$CompilerException: test.clj:0: null
...
> Caused by: java.lang.StackOverflowError
Hmm, don't do that?
Seriously, how is this a bug in Clojure, and not a bug in you
Hi all, I've written a wrapper for Processing.org. It covers most of
the functions, some have slightly changed name. You need to have
processing's core.jar in the CLASSPATH to use it.
There's an example script with an amazing graphics demo. It works as a
standalone script but it's more fun via ed
Sorry, forgot the link: http://bit.ly/3ZT3ZG
I wanted to put it on github, but windows/ssh/git don't want to
cooperate.
Roland
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group
It's on github now (worked from linux...)
http://github.com/rosado/clj-processing
Roland
--~--~-~--~~~---~--~~
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
I'd written a re-split before discovering Stuart's in
clojure.contrib.str-utils. Mine's a little different in that it's
lazy and the seq it returns includes the parts that match the pattern
as well as the parts in between:
user=> (my-re-split #"[0-9]+" "abc123def456")
("abc" "123" "def" "456")
u
On Mon, 2008-09-08 at 13:15 -0700, Rich Hickey wrote:
> Hmm, don't do that?
>
> Seriously, how is this a bug in Clojure, and not a bug in your
> program, which resulted in an exception which easily leads you to your
> problem?
Well, first of all this bug in a users program results in undefined
b
On Tue, Sep 9, 2008 at 5:36 PM, ntupel <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2008-09-08 at 13:15 -0700, Rich Hickey wrote:
> > Hmm, don't do that?
> >
> > Seriously, how is this a bug in Clojure, and not a bug in your
> > program, which resulted in an exception which easily leads you to your
> > p
16 matches
Mail list logo