Re: Clojure ant target version

2008-10-26 Thread Stephen C. Gilardi
On Oct 26, 2008, at 9:36 PM, Matthew D. Swank wrote: > Not if you are using OS-X on a PPC mac. Or a 32-bit Intel Mac like the original Macbook Pros... --Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cloj

Re: Clojure ant target version

2008-10-26 Thread Matthew D. Swank
On Oct 26, 7:47 pm, verec <[EMAIL PROTECTED]> wrote: > Even us in OS X > land have had access to 1.6 for nearly as long as clojure has been > made public :-) > -- > JFB Not if you are using OS-X on a PPC mac. Matt --~--~-~--~~~---~--~~ You received this message be

Re: Clojure ant target version

2008-10-26 Thread verec
Given the total lack of generics use in the code (did someone notice a that I missed :-) and the fact that java.util.concurrent.* originated as a separate, non core java library, you might as well want to specifiy 1.4 ... Just kidding, of course ... What's wrong with 1.6? Even us in OS X land ha

Re: Recent breakage (regression?) of macros

2008-10-26 Thread Rich Hickey
On Oct 26, 3:49 pm, Phil Jordan <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having some trouble with existing code after a recent svn update. I > think it must have happened sometime in the last 2 or so weeks, but it > might be slightly longer. > > The problematic code can be reduced to this: > > u

A clearer exception than NullPointerException

2008-10-26 Thread samppi
I'm new at Clojure, but from trying it out it seems really cool. I have a minor request—when a list is evaluated and its first argument is nil, a NullPointerException occurs. This took me a while to debug when I had put (some-fn 3), and some-fn happened to be nil in some cases. Could a clearer,

Re: patch available: add option to allow RT/classForName to initialize the class

2008-10-26 Thread Bhaskar Maddala
> I was wondering if there is an argument against using initialize == > true in all cases? Here are a couple of examples, in the strictly java world (java programming language and vm) when you want initialize to be false. The idiomatic use case being byte code analysis * FindBugs * Code obfuscat

Recent breakage (regression?) of macros

2008-10-26 Thread Phil Jordan
Hi, I'm having some trouble with existing code after a recent svn update. I think it must have happened sometime in the last 2 or so weeks, but it might be slightly longer. The problematic code can be reduced to this: user=> (def mylocals ['A (fn [] "foo")]) #=(var user/mylocals) user=> (defma

Re: RFC: ClojureCheck

2008-10-26 Thread Rich Hickey
On Oct 26, 2:48 pm, ".Bill Smith" <[EMAIL PROTECTED]> wrote: > I applaud everyone who has volunteered to help write tests for > Clojure. A good test suite not only catches problems but also helps > beginners learn the language. > > Regarding the proposal in the previous post, I think we should

Re: RFC: ClojureCheck

2008-10-26 Thread .Bill Smith
I applaud everyone who has volunteered to help write tests for Clojure. A good test suite not only catches problems but also helps beginners learn the language. Regarding the proposal in the previous post, I think we should be careful about drawing inferences between the use of random values and

RFC: ClojureCheck

2008-10-26 Thread Meikel Brandmeyer
Dear Clojurians, Stuart brought up the idea of implementing a QuickCheck clone for Clojure. I think that this is a good idea, since it provides a much better coverage of possible inputs. I gave it some thought this weekend and the following is, what I came up with. There are some specifics of the

Re: patch available: add option to allow RT/classForName to initialize the class

2008-10-26 Thread Rich Hickey
On Oct 26, 11:18 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote: > RT/classForName currently hardwires the "initialize" option of > Class.forName to false. In working with jdbc drivers, the need to > initialize classes in some circumstances came up--in some JRE > configurations, the driver c

patch available: add option to allow RT/classForName to initialize the class

2008-10-26 Thread Stephen C. Gilardi
RT/classForName currently hardwires the "initialize" option of Class.forName to false. In working with jdbc drivers, the need to initialize classes in some circumstances came up--in some JRE configurations, the driver class needs to be initialized explicitly to work. I don't understand al

Clojure ant target version

2008-10-26 Thread James Reeves
When you build Clojure from SVN using the ant file, it defaults to compiling the class files for the highest version of Java available on your system. So if you have Java 1.6, the clojure.jar file you make will be inaccessible to people with only Java 1.5. Since Clojure is for Java 1.5 and 1.6, it

Re: re-def stuff

2008-10-26 Thread Krukow
On Oct 26, 1:48 pm, "Matti Jagula" <[EMAIL PROTECTED]> wrote: > On Sat, Oct 25, 2008 at 3:19 PM, Krukow <[EMAIL PROTECTED]> wrote: > > I am kind of embarrassed to ask this, but is there a "correct way" to > > do this . Do you simply re-def a function, e.g., to time execution: > > def-s are not t

Re: re-def stuff

2008-10-26 Thread Matti Jagula
On Sat, Oct 25, 2008 at 3:19 PM, Krukow <[EMAIL PROTECTED]> wrote: > I am kind of embarrassed to ask this, but is there a "correct way" to > do this . Do you simply re-def a function, e.g., to time execution: def-s are not transactional, so you have to be careful yourself. Also, from what I under

interactive 2D plotting

2008-10-26 Thread Timothy Pratley
source: http://groups.google.com/group/clojure/web/2dplot.clj screenshot: http://groups.google.com/group/clojure/web/2dplot.png ;; Ever wanted to visualise some simple shapes but don't have matlab handy? ;; Here is one way to do it! ;; Comes with some default shapes to demonstrate, ;; but I recom