Dear list members,
There is a small problem with unicode escapes in Clojure strings. When
StringReader encounters a unicode escape it checks Character.isDigit
which is only true for decimal digits, but not hexadecimal.
The other problem is that CharacterReader accepts a character constant
denotin
On Nov 9, 11:59 am, CuppoJava <[EMAIL PROTECTED]> wrote:
> You seem to know a lot about this, so I can be more specific. I'm
> using a conjugate gradient method for solving (and caching) systems of
> equations, so there's no need to explicitly form a matrix (therefore
> object allocation isn't a p
On Nov 9, 2008, at 9:57 PM, [EMAIL PROTECTED] wrote:
> I've downloaded clojure as described in the getting started pages.
> When I run clojure as described it works and I can execute the
> JOptionPane example and it appears and works.
I downloaded clojure_20080916.zip, expanded it, ran "ant" wi
I've downloaded clojure as described in the getting started pages.
When I run clojure as described it works and I can execute the
JOptionPane example and it appears and works.
But just about everything else fails miserably. Below is an example.
If any one has any suggestions I would greatly appr
Thanks very much. I'll read these change logs for the SVN versions
from now on!
The README for the swank-clojure project recommends using the SVN
version of Clojure, otherwise I'd stick with the regular releases. The
README should probably be modified to point to release 1088.
On Nov 9, 7:31 pm,
On Sun, Nov 9, 2008 at 7:21 PM, Craig McDaniel <[EMAIL PROTECTED]> wrote:
>
> Without including gen in the classpath, the following exception is
> reported:
This may have something to do with the last few checkins.
I'd recommend you use SVN version 1088 instead.
Here are the last few change log
Without including gen in the classpath, the following exception is
reported:
$ java -cp clojure.jar clojure.lang.Repl
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.lang.Repl.(Repl.java:23)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
jav
Thank you for your replies,
I wrote the numeric code myself. It's heavily optimized for speed, and
as such, it doesn't contain many explicit matrix multiplications and/
or inversions. All calculations have been expanded to minimize the
instruction count.
You seem to know a lot about this, so I ca
Hi Rich,
Wow, that's a comprehensive answer. Thanks.
I am using runonce to create lancet, a build system that ties into
Java's Ant. Build steps definitely do have side effects, so I will
probably end up using the agent approach. Targets don't have (or
ignore) return values, so I could igno
Previously, I could run clojure with:
java -cp clojure.jar clojure.lang.Repl
After building clojure.jar from a more recent SVN version (1092) that
includes AOT and generated classes, it looks like I have to now
include the generated classes in the classpath (running from trunk
directory):
java
Dear vimming Clojurians,
Gorilla v1.0.0 is released. It is the successor of Chimp. Contrary
to Chimp it uses a network connection for communication with Clojure.
This makes things possible like a Repl in a Vim buffer, docstrings
in a balloon popups or arglists in the command completion.
The feat
Hi folks,
I've put together a unit testing library that borrows ideas from
Ruby's RSpec and Haskell's Quickcheck. In Fact, you define a series of
facts that are verified by predicates. These predicates are tested
many times with sequences of data.
A "fact" takes the form:
(fact description
[s
Yes, it is a StringBuilder so technically yes. I guess you since the only
thing you ever do with a StringBuilder is produce a string it just seemed
like
it would be a string. Same goes for StringBuffer.
On Sat, Nov 8, 2008 at 11:52 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> (Sorry if this is a r
On Nov 9, 7:13 am, "Michael Beauregard" <[EMAIL PROTECTED]>
wrote:
> That's not true. Matrix inversion is common enough in graphics
> programming. I wrote a physics engine that neglected quantum effects
> and still needed to invert matrices ;-)
>
> http://java.sun.com/javase/technologies/desktop/j
On Nov 9, 8:21 am, Stuart Halloway <[EMAIL PROTECTED]> wrote:
> You should be able to do this without the ref. Have the agent's state
> contain a pair of [has-run, fn-result].
The semantics of your runonce aren't clear to me, but here are some
strategies:
As Chouser proposed, if you only want a
Oops, I mean to link to:
http://java.sun.com/javase/technologies/desktop/java3d/forDevelopers/J3D_1_3_API/j3dapi/javax/vecmath/Matrix3f.html#invert()
On Sun, Nov 9, 2008 at 8:13 AM, Michael Beauregard
<[EMAIL PROTECTED]> wrote:
>> btw "matrix inversion" does not mean "solving linear systems" (l
> btw "matrix inversion" does not mean "solving linear systems" (like
> Ax=b) -- it means "finding the explicit inverse of the matrix" (like
> A^{-1}), which you probably don't need to do unless your physics
> engine handles quantum mechanics ;-)
>
That's not true. Matrix inversion is common enou
(Sorry if this is a repeat; hotel networking is sketchy.)
On Nov 9, 12:07 am, "Brian Doyle" <[EMAIL PROTECTED]> wrote:
> This seems like a bug returning false for StringBuilder.
>
> user=> (string? (new java.lang.String "hello"))
> true
>
> user=> (string? (new java.lang.StringBuilder "hello"))
>
Type predicates do an exact match on the type, StringBuilder is a
different class altogether. Why should it return true on a
StringBuilder?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to
--- On Sun, 11/9/08, Brian Doyle wrote:
> This seems like a bug returning false for StringBuilder.
>
> user=> (string? (new java.lang.String
> "hello"))
> true
>
> user=> (string? (new java.lang.StringBuilder
> "hello"))
> false
Wouldn't it be a StringBuilder, and not a String?
user=> (. (new
Hi,
as briefly mentioned on IRC, I've uploaded a patch to the files-
section of
the group (http://clojure.googlegroups.com/web/genclass-exposes-
fix.patch)
that fixes the behaviour of gen-class when a field to be exposed via
:exposes is not declared in the immediate superclass, but somewhere in
t
You should be able to do this without the ref. Have the agent's state
contain a pair of [has-run, fn-result].
Stuart
> Hi,
>
> Am 09.11.2008 um 12:23 schrieb Stuart Halloway:
>> Just to make things even more fun: *None* of the proposed fixes to
>> the
>> concurrency bug in the original actua
Hi,
Am 09.11.2008 um 12:23 schrieb Stuart Halloway:
Just to make things even more fun: *None* of the proposed fixes to the
concurrency bug in the original actually preserve the` semantics of
the original. All have moved from "run (usually) once, mark as done"
to "mark as done, try once". This al
One way to think about the difference between alter and commute: With
a commutative function, they both get to the same end result, but
commute allows more concurrency, while guaranteeing less about the
return value. In particular, with commute you might not be able to see
every step by lo
On Nov 8, 9:36 pm, CuppoJava <[EMAIL PROTECTED]> wrote:
> I'm rewriting my physics engine over from Java, which is number
> heavy.
> There's a lot of matrix multiplication and inversions.
May I ask if you wrote the Java numerics code yourself or whether you
used an existing library instead?
Also
25 matches
Mail list logo