I've just added 64-bit versions of JOGL to the repository. As to the
colors, I'll admit that I just assigned them at random.
The OpenCL support is really skeletal at the moment. I'll be working
on it more in the future, because I've gotten pretty frustrated with
the inconsistent driver support
On Wed, Oct 7, 2009 at 5:57 PM, Mark Reid wrote:
> I'm not sure if this is the "best" approach but I found that if you
>
>(use 'clojure.contrib.math)
>
> instead of require, it should work.
>
In practice, an unqualified 'use' form can be bad style, because your code
will contain symbols whos
Excellent job. It worked ootb for me once I updated my classpath / -
Djava.library.path. I'm running 64-bit Linux with (in this case) the
32-bit JVM as it seems more stable with jogl.
Q: I thought the blue and green pieces were supposed to be opposite.
Penumbra is such a fascinating library. Nice
Hi,
I ran into a similar problem myself recently.
I'm not sure if this is the "best" approach but I found that if you
(use 'clojure.contrib.math)
instead of require, it should work.
Regards,
Mark.
On Oct 7, 2:50 pm, vishy wrote:
> Hi,
>
> I am on windows machine. I am using these comma
vishy wrote:
> user=> (require 'clojure.contrib.math)
> nil
> user=> (lcm 4 5)
> java.lang.Exception: Unable to resolve symbol: lcm in this context
> (NO_SOURCE_FILE:2)
The problem is that "require" only loads the math library, it doesn't
"refer" to it. This means that you have to qualify lcm w
This is pretty much what I'd had in mind. I don't see how the text of
the Exception is set by the macro, but it'd be really spectacular if
the message were more clear. Is that message coming from the defvar
form?
On Oct 6, 6:14 pm, "Stephen C. Gilardi" wrote:
> On Oct 2, 2009, at 10:29 AM, Mar
Hi,
I am on windows machine. I am using these commands to startup clojure,
but not able to use functions from contrib library.
java -cp clojure.jar;clojure-contrib.jar clojure.lang.Repl
Clojure 1.0.0-
user=> (require 'clojure.contrib.math)
nil
user=> (lcm 4 5)
java.lang.Exception: Unable to reso
> (You wrote "atom" several times but I guess you meant "agent".)
Heh heh... yeah.
--~--~-~--~~~---~--~~
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 th
I've thrown together a very simple Tetris clone, which can be found at
http://github.com/ztellman/penumbra/blob/master/src/examples/tetris.clj
. Excluding the parts hidden away by the framework, it's a purely
functional implementation. I figured a few people here might find it
interesting.
--~--
On Oct 2, 11:52 am, Mark Tomko wrote:
> However, outside the scope of a function, it seems that it's possible
> for bindings to be redefined later in a file without causing an
> immediate error. This could easily lead to mistakes that would
> manifest as silent and potentially inexplicable beha
On Oct 2, 2009, at 10:29 AM, Mark wrote:
Is there a way to make a declaration in Clojure that cannot be rebound
later? Ideally, I'd like something that fails if I try to do this:
(def myname "mark")
; ...more code, elided...
(def myname "Mark")
Along these lines, I was thinking of adding def
+1
In my relatively novice opinion, unless there is a reason to make
functions and vars available to code executing in a *different*
namespace, there isn't a lot of reason to def anything at all.
On Oct 2, 11:48 am, Jonathan Smith wrote:
> I use a let at the top of the file to denote things tha
I've started using clojure.test's use-fixtures feature. It's a great way
to clean up tests that have side-effects. But I noticed that it uses
alter-meta! in a way that simply adds the fixture function to the
existing list of fixtures:
(defmethod use-fixtures :each [fixture-type & args]
There is rarely need to embed a runtime/framework into the OSGi
container itself. All that is needed is to refactor the Clojure
runtime to let OSGi do the class/resource loading. The goal would be
to get a central Clojure bundle and deploy application code into
separate bundles. For statically com
Your worker fn is too quickly executed: more time is spent managing queues
(and that require some synchronization) than executing actions.
If your worker fn was more realistic (more computationally heavy) I tjink
you'll see 4 cores humming at 100%.
(You wrote "atom" several times but I guess you m
Thanks for all the suggestions!
I'm currently interested most in Parallel Colt as interfaced with
Incanter, as it provides me a minimal barrier to entry to get some
initial hacking done first. After that I might switch to Clojuratica
when I need the additional functionality.
Just a quick question
Good catch. I had forgotten that.
I did some more tests with 4 queues and found that there seemed to be
some contention going on that prevented all cores from being utilized
fully.
With the example provided 2 cores will pin at 100% (excellent). With 4
atoms and one test fn one core will stay arou
from the API docs:
(defonce myname "Walter")
; ...
(defonce myname "Schnell")
=> nil
myname
=> Walter
hope this helps ;-)
On 2 Okt., 16:29, Mark wrote:
> Is there a way to make a declaration in Clojure that cannot be rebound
> later? Ideally, I'd like something that fails if I try to do this:
Hi,
Since you are sending all actions to the same agent they are enqueued and
processed sequentially. That's why you are seeing only two active cores (one
for the main thread (repl) or GC and one for the agent).
On Tue, Oct 6, 2009 at 4:35 PM, MarkSwanson wrote:
>
> Thanks John.
> I was curious
Thanks John.
I was curious about the details so I took a dive in to the source to
see for myself.
In case anyone else stumbles upon this here's what I found:
In Agent.java, the number of worker threads for (send) are defined
like this:
final public static ExecutorService pooledExecutor =
You are right. The import syntax is wrong.
Did you put a ticket on assembla?
Thank you,
Dan
Roger Gilliar writes:
> Hi,
>
> the import syntax for the java libs in the correspondig clojure
> contrib source is wrong. Just change them to the correct syntax and it
> works.
> At least that wor
On Oct 5, 11:22 pm, CuppoJava wrote:
> Hi,
> I need to do some high performance numerical data crunching and was
> wondering what libraries are popular. I have looked into Colt and
> JAMA, but neither have had much development recently (Colt hasn't had
> a release since 2004, and JAMA since 2005)
I wonder if anyone has tried namespace level metadata hashes rather
than the current approach of putting it on the object itself. I would
do it this way:
tw$ repl
Clojure 1.1.0-alpha-SNAPSHOT
user=> (ns meta-experiment (:import java.util.WeakHashMap))
java.util.WeakHashMap
meta-experiment=> (def
I'd like to query the Clojure community for opinions on Newspeak. I
just listened to this netcast, which I recommend:
http://www.se-radio.net/podcast/2009-07/episode-140-newspeak-and-pluggable-types-gilad-bracha
And the website:
http://newspeaklanguage.org/
Since I found Newspeak before Clojur
@Mark: I doubt that this will work. Unloading a namespace would mean
to remove a class from a classloader and this does not work in Java.
OSGi handles this by removing the bundle's classloader completely.
@All: The huge added value that OSGi still has is multi-version
support. Lets say I want to
Hi,
the import syntax for the java libs in the correspondig clojure
contrib source is wrong. Just change them to the correct syntax and it
works.
At least that worked for me.
Regards
Roger
Am 06.10.2009 um 11:14 schrieb dan.pomoh...@gmail.com:
>
> Hi,
>
> I have a maven project with ja
Hi,
I have a maven project with java and clojure files. When I try to use
logging in clojure files the build fails with:
[INFO] [clojure:compile {execution: default-cli}]
Compiling ro.dpom.markers to /home/dan/project/target/classes
Exception in thread "main" java.lang.ClassNotFoundException:
o
27 matches
Mail list logo