On Sun, 2008-11-16 at 01:35 +0100, [EMAIL PROTECTED] wrote:
Currently agent errors are only reported when the agent is derefenced
or further actions are dispatched to the agent. It would be great if
one can get immediate notification of agent errors maybe through a
callback.
I also have a
Clojury and conj.us are good names, I think.
On Tue, Nov 18, 2008 at 6:47 AM, cwyang [EMAIL PROTECTED] wrote:
What a great name 'conj' is, for project hosting site name!
(no shame for self-complement :-) )
user= (def repository '(proj-foo proj-bar))
#=(var user/repository)
user= (conj
Ruby has gems, python has eggs, I guess Clojure could have jewels.
And Clojure could have Clojury of jewels.
So +1 for clojury.
On 11/17/08, Drew Crampsie [EMAIL PROTECTED] wrote:
Hey All,
I've finally found some time to start getting the project hosting site
together, and i need a
At the risk of sounding like an old fart, I cringe when I hear Clojury and
Jewel - they are too cute (as Rich nicely put it a while back -
http://groups.google.com/group/clojure/msg/0351ca20c758b0b3).
I agree with Brian Carper - we should keep it readable so +1 for something
like clojureforge -
As a learning exercise and also to continue to investigate Clojure
performance I've roughly translated the Alioth binary-tree benchmark
into Clojure. I chose the binary-tree simply because it's the first of
the Alioth benchmarks in alphabetical collation; I may do others
later.
I've based my
Hi Steve,
Metadata is data that does not contribute to an equality relationship.
In most scenarios different types are considered not equal, and so
should be modelled as data.
Stuart
On Nov 14, 3:42 pm, Chouser [EMAIL PROTECTED] wrote:
On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose [EMAIL
On Nov 18, 2008, at 12:53 AM, Stephen C. Gilardi wrote:
On Nov 17, 2008, at 11:42 PM, Stephen C. Gilardi wrote:
It seems there's something not quite right, though. I did a fresh
checkout of 1108 and built with ant and ran with java -jar
clojure.jar and got an exception:
Making
On Nov 14, 3:42 pm, Chouser [EMAIL PROTECTED] wrote:
On Fri, Nov 14, 2008 at 2:11 PM, Jeff Rose [EMAIL PROTECTED] wrote:
Does my dispatch function have to inspect the passed in values to
figure out which type of struct they are, or can I query that
somehow?
My understanding is that
On Tue, Nov 18, 2008 at 5:58 AM, Simon Brooke [EMAIL PROTECTED] wrote:
However Giraud uses the Common
LISP ASH (arithmetic shift) function, and, if there's a built-in
function in Clojure, I did not find it;
find-doc is your friend in this case:
user= (find-doc shift)
I'm not in favour of slangish derivatives. They're good for code-
names, but when you get serious, a silly name is an obstacle.
First of all, pronunciation descriptors after the name are down-right
silly. People start making remarks that you sound like a Wikipedia
article.
Moreover, it's hard
On Tue, Nov 18, 2008 at 3:14 AM, Toralf Wittner [EMAIL PROTECTED]wrote:
On Sun, 2008-11-16 at 01:35 +0100, [EMAIL PROTECTED] wrote:
Currently agent errors are only reported when the agent is derefenced
or further actions are dispatched to the agent. It would be great if
one can get
+1
On Tue, 18 Nov 2008 04:54:22 -0800 (PST)
David [EMAIL PROTECTED] wrote:
I'm not in favour of slangish derivatives. They're good for code-
names, but when you get serious, a silly name is an obstacle.
First of all, pronunciation descriptors after the name are down-right
silly. People
+1
On Nov 18, 2008, at 8:27 AM, blackdog [EMAIL PROTECTED] wrote:
+1
On Tue, 18 Nov 2008 04:54:22 -0800 (PST)
David [EMAIL PROTECTED] wrote:
I'm not in favour of slangish derivatives. They're good for code-
names, but when you get serious, a silly name is an obstacle.
First of all,
2008/11/18 David [EMAIL PROTECTED]
--- % ---
That being said, why can't clojure.org be used for that purpose? If I
remember correctly, all it takes is some DNS magic, and we have a,
say, project.clojure.org. Hosted on another physical machine, if need
be.
That gets my vote!
+1
--
Geoff
Hi Ralph,
In some sense you can think of a cached stable install of some set of
developer tools as a performance optimization. In this case, the
performance being optimized is the developer's performance installing
a tool set.
Like any performance optimization, it should not be made
On Nov 18, 1:46 am, Cosmin Stejerean [EMAIL PROTECTED] wrote:
What kind of bugs are acceptable for the
purpose of a known good combination? Is slime starting up sufficient?
It's a whole lot better than slime *not* starting up. Again, context:
Getting Started.
BTW, it's this sort of
Hi,
blindly copying code is usually not a good way to learn a new
language
I don't know, whether this is more idiomatic Clojure code, but
it works...
(defn build-tree
[item depth]
(when ( 0 depth)
(let [i (* 2 item)
d (dec depth)]
[item (build-tree (dec i) d)
Hi Frantisek, Meikel,
Good suggestions, all. I'll have to spend some time looking at these
and figure out if I can make them work with the existing test-is. Two
thoughts first:
1. I want to keep optional messages per-assertion. These are very
useful in the RSpec testing framework for Ruby;
I like forj, but after reflecting on that it might be better to simply
use clojure.org.
-m
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Clojure group.
To post to this group, send email to
On Tue, Nov 18, 2008 at 9:42 AM, Raffael Cavallaro
[EMAIL PROTECTED] wrote:
On Nov 18, 1:46 am, Cosmin Stejerean [EMAIL PROTECTED] wrote:
What kind of bugs are acceptable for the
purpose of a known good combination? Is slime starting up sufficient?
It's a whole lot better than slime
Hello Stuart,
On 18 Nov., 15:58, Stuart Sierra [EMAIL PROTECTED] wrote:
1. I want to keep optional messages per-assertion. These are very
useful in the RSpec testing framework for Ruby; they're like comments
explaining what each assertion is supposed to demonstrate.
I'd also like to see the
On Tue, Nov 18, 2008 at 4:55 PM, mb [EMAIL PROTECTED] wrote:
[...]
I don't know, whether this is more idiomatic Clojure code, but
it works...
[...]
What revision is that? On r1099 I got:
java.lang.IllegalArgumentException: Don't know how to create ISeq
from: Symbol (NO_SOURCE_FILE:31)
so I
On Nov 18, 2008, at 9:42 AM, Raffael Cavallaro [EMAIL PROTECTED]
wrote:
On Nov 18, 1:46 am, Cosmin Stejerean [EMAIL PROTECTED] wrote:
What kind of bugs are acceptable for the
purpose of a known good combination? Is slime starting up sufficient?
It's a whole lot better than slime
Hello everyone,
I looked at Wadler's A Prettier Printer paper (http://
homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a
rote translation of it into Clojure. Then I wrote printing routines
for sequences and maps -- very barebones. They work OK:
user (def something '(a b c d
tWip in IRC notice with-in-str is broken. Patch attached.
--Chouser
--~--~-~--~~~---~--~~
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
To unsubscribe from
On Tue, Nov 18, 2008 at 11:29 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I looked at Wadler's A Prettier Printer paper (http://
homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a
rote translation of it into Clojure. Then I wrote printing routines
for sequences and maps
On Tue, Nov 18, 2008 at 6:42 AM, Raffael Cavallaro
[EMAIL PROTECTED] wrote:
On Nov 18, 1:46 am, Cosmin Stejerean [EMAIL PROTECTED] wrote:
What kind of bugs are acceptable for the
purpose of a known good combination? Is slime starting up sufficient?
It's a whole lot better than slime *not*
Is there a way to recover readable source code from a compiled
function in Clojure? Debugging things like [EMAIL PROTECTED] is
not much fun. It would already be a great help to be able to find out
from where in the source code the function was compiled.
Konrad.
Hi,
Am 18.11.2008 um 17:29 schrieb [EMAIL PROTECTED]:
What could be some good strategies to adapt the code I have here to
Clojure, where tail calls are not eliminated and structs are not lazy?
There is the lazy-map package[1], which also allows lazy (struct)maps.
However it is not updated to
On Tue, Nov 18, 2008 at 1:05 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Your implementation needs to get the whole value of pr-str before
deciding that it is too long to put on a single line.
That's certainly what it does, but I don't think it has to. My plan
was to use *print-length*
On Nov 18, 12:53 pm, Meikel Brandmeyer [EMAIL PROTECTED] wrote:
As always: don't copy code blindly! Take a step back and look from a
distance, how you can *translate* the code. For example, in the
show-list-children function, the recursion is just used for iteration.
It starts with x, do
On Nov 18, 1:12 pm, Chouser [EMAIL PROTECTED] wrote:
On Tue, Nov 18, 2008 at 1:05 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Your implementation needs to get the whole value of pr-str before
deciding that it is too long to put on a single line.
That's certainly what it does, but I
Hi All.
I have been experimenting with the Java interop in Clojure by trying
to talk to the matrix maths library Jama:
(http://math.nist.gov/javanumerics/jama/doc/)
I can create a new Matrix if I specify row col integers for the
constructor and I have been able to read and write to the embedded
On Tue, Nov 18, 2008 at 12:37 PM, Konrad Hinsen
[EMAIL PROTECTED]wrote:
Is there a way to recover readable source code from a compiled
function in Clojure? Debugging things like [EMAIL PROTECTED] is
not much fun. It would already be a great help to be able to find out
from where in the
On Nov 18, 1:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks for the advice. I think this works for show-list-children:
(defn insert-line [x y]
(doc-concat x (doc-concat (doc-line) y)))
(defn show-list-children [x]
(cond (empty? x)
(doc-nil)
(= (count x)
On Nov 18, 12:03 pm, Chouser [EMAIL PROTECTED] wrote:
On Tue, Nov 18, 2008 at 11:29 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I looked at Wadler's A Prettier Printer paper (http://
homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf) and did a
rote translation of it into
On Tue, Nov 18, 2008 at 11:44 AM, everyman [EMAIL PROTECTED] wrote:
The signature for the Java constructor I am trying to use is:
; Matrix(double[][] A)
(ns clojure-matrix
(:import (Jama Matrix)))
clojure-matrix= (new Matrix (to-array-2d [[1.0 2.0] [3.0 4.0]])))
On Nov 18, 10:14 am, mb [EMAIL PROTECTED] wrote:
This leads me to another question: Is it possible to look into
pluggable harnesses? That is: can we separate the tests
from the result reporting?
Yes, that's an important feature I want to add. There will probably
be a reporting function that
On Tue, Nov 18, 2008 at 2:23 PM, Shawn Hoover [EMAIL PROTECTED] wrote:
Here's a slight tweak using double-array instead of nested calls to
into-array (double-array isn't mentioned in clojure.org/java_interop page,
but it is in the full API listing):
user= (into-array (map double-array
On Nov 18, 2:48 pm, Konrad Hinsen [EMAIL PROTECTED] wrote:
On 18.11.2008, at 19:32, Shawn Hoover wrote:
For functions defined in libs that you load into Clojure, you can
find out the file and line from the metadata. For functions you
define in the REPL, this trick won't help. Say you
That has worked out very well, and its fast.
Thanks very much.
:-))
--~--~-~--~~~---~--~~
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
To unsubscribe from
As stated in the subject line, the last test in numbers.clj
throws an exception because it is trying to cast an integer
into a BigDecimal, which is not possible.
This is on Mac OS X 10.5.5 with Java 1.5, the exception it fails with
is:
java.lang.IllegalArgumentException: No matching method
I think Clojure should change to allow (bigdec 3) to succeed.
BigDecimal has a valueOf method that accepts a long. It has a
constructor that accepts an int. I haven't made a bug report on this
yet, but here it is.
Here are another thing that came up during testing of numbers:
I think the
Originally from San Francisco, and now living in Amsterdam. This has
been fun already. I think Clojure is going to make it.
-Jeff
Chanwoo Yoo wrote:
Seoul, South Korea, which LG and Samsung are belongs to (I know there
is few who knows where South Korea is. ^_^; It is placed between China
What projects have you used clojure for? Have you completed them? Are
they one-off projects. Small big? Is it web based, a GUI?
I am working on this, haven't made much progress but at least I
started.
http://code.google.com/p/botnodetoolkit/
And if you are interested, post your project
Stuart,
I'd be very interested to see something on Ties
(http://www.bitbucket.org/achimpassen/clojure-ties/wiki/Home
), which while not being in clojure-contrib, shows lots of promise.
all the best,
--Chris
On 17.11.2008, at 15:13, Stuart Halloway wrote:
Hi Brian,
The libraries
Hello,
as previously threatened here the anatomy of my TAP library.
The testing and reporting is split in separate parts. The testing
part provides is as main interface. I first followed Perl's Test::More,
but thought it would be better to be closer to test-is. So I adopted
is, but - as I think
I'm trying to unit-test a library with which a user can define methods
on the library's multi-function to change its behavior. So I need to
be able to define lexically-scoped methods in each test. Is it
possible to use let to create a lexically-scoped method?
The problems I'm encountering are
I checkouted the last clojure from svn, swank-clojure and clojure-mode
too.
When I start slime it give me the following errors:
Clojure
user= (add-classpath file:home/islon/opt/swank-clojure/)
nil
user=
(require (quote swank))
java.lang.Exception: No such var: swank.util/gen-and-load-class
On Tue, Nov 18, 2008 at 5:01 PM, islon [EMAIL PROTECTED] wrote:
I checkouted the last clojure from svn, swank-clojure and clojure-mode
too.
When I start slime it give me the following errors:
Clojure
user= (add-classpath file:home/islon/opt/swank-clojure/)
nil
user=
(require (quote
(defn string-reverse [s]
(reduce #(str %1 %2) (reverse (seq (. s (split ))
You're probably looking for something like this =)
On Nov 18, 9:00 pm, joejoe [EMAIL PROTECTED] wrote:
hello all,
so I'm not only new to this group but I am new to Clojure. I may be
going about this all
SVN version 1110 of Clojure made a breaking change to a feature that
swank-clojure is using. For now, I recommend moving back one rev by
using:
svn up -r 1109
from within your checkout of clojure/trunk.
In the past, Jeff has updated swank-clojure very quickly on those rare
occasions where
Here's another solution that came from help on the chat. Thanks Chouser!
(apply str (interpose (reverse (.split I am cold
On Tue, Nov 18, 2008 at 7:15 PM, islon [EMAIL PROTECTED] wrote:
(defn string-reverse [s]
(reduce #(str %1 %2) (reverse (seq (. s (split ))
You're
(apply str (reverse I am cold))
shorter and it does the same thing. no need to take out the spaces and
put them back in
On Tue, Nov 18, 2008 at 5:21 PM, Mark Volkmann
[EMAIL PROTECTED] wrote:
Here's another solution that came from help on the chat. Thanks Chouser!
(apply str (interpose
It doesn't work:
(apply str (reverse i am cold))
dloc ma i
The correct output is cold am i. You must reverse words not letters.
On Nov 18, 11:33 pm, Kevin Downey [EMAIL PROTECTED] wrote:
(apply str (reverse I am cold))
shorter and it does the same thing. no need to take out the spaces and
I'll not use slime right now (thanks Bill).
swank-clojure will be fixed anytime soon?
On Nov 18, 11:15 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
SVN version 1110 of Clojure made a breaking change to a feature that
swank-clojure is using. For now, I recommend moving back one rev by
thanks guys( or gals!) Yeah I got so fed up with trying to do it I
almost gave up, then I found the (reverse string). Wow, one word does
what I was trying to do. Oh well, I guess I'll try to finish doing it
the long way to learn it. Thanks for the fast replies! :)
On Nov 18, 6:00 pm, joejoe
If your new to Clojure, such a succinct solution might be a little
confusing... so I've broken islon's solution down into its parts:
(defn string-reverse [s]
(reduce #(str %1 %2) (reverse (seq (. s (split ))
The main part of your problem is that you want to pick out words. In
the
So, I'm starting to get my feet wet with a real project written in
Clojure. One of the first things needed in the project is a periodic
process to check an external server for updates, and so I wrote some
functions to help this. The code is here:
On Nov 18, 5:16 pm, BerlinBrown [EMAIL PROTECTED] wrote:
What projects have you used clojure for? Have you completed them? Are
they one-off projects. Small big? Is it web based, a GUI?
I am working on this, haven't made much progress but at least I
started.
On Nov 18, 6:48 pm, samppi [EMAIL PROTECTED] wrote:
I'm trying to unit-test a library with which a user can define methods
on the library's multi-function to change its behavior. So I need to
be able to define lexically-scoped methods in each test. Is it
possible to use let to create a
Yes, but I meant creating methods rather than regular functions, in a
lexical scope. Is it possible to create methods using fn?
On Nov 18, 10:47 pm, Allen Rohner [EMAIL PROTECTED] wrote:
On Nov 18, 6:48 pm, samppi [EMAIL PROTECTED] wrote:
I'm trying to unit-test a library with which a user
2008/11/19 Allen Rohner [EMAIL PROTECTED]
On Nov 18, 5:16 pm, BerlinBrown [EMAIL PROTECTED] wrote:
What projects have you used clojure for? Have you completed them? Are
they one-off projects. Small big? Is it web based, a GUI?
I am working on this, haven't made much progress but at
On Nov 18, 11:53 pm, samppi [EMAIL PROTECTED] wrote:
Yes, but I meant creating methods rather than regular functions, in a
lexical scope. Is it possible to create methods using fn?
What do you mean by methods as distinct from functions? In clojure
there are only functions. Are you referring
Sorry for the inconvenience. It's been fixed. - Jeff
On Nov 18, 5:41 pm, islon [EMAIL PROTECTED] wrote:
I'll not use slime right now (thanks Bill).
swank-clojure will be fixed anytime soon?
On Nov 18, 11:15 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
SVN version 1110 of Clojure made a
65 matches
Mail list logo