Re: Clojure meetup group listing

2010-09-22 Thread Robert McIntyre
Are there any clojure groups around Boston, MA? --Robert McIntyre On Tue, Sep 21, 2010 at 12:43 PM, Sean Corfield wrote: > The Bay Area Clojure User Group had its 25th meeting last night: > > http://www.meetup.com/The-Bay-Area-Clojure-User-Group/ > > It was a great meeting - with Rich talking ab

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Andy Fingerhut
So I'm trying to start from a Mac OS X 10.5.8 system with java and mvn installed, but not Clojure, and with no Maven repo (i.e. ~/.m2 does not exist yet), and trying to build the latest Clojure and contrib from the git repos using something as close to the recommended instructions that come

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
On Wed, Sep 22, 2010 at 2:01 PM, Stuart Sierra wrote: > The Clojure build doesn't fully support Maven.  You need to run this: > >    ant -lib /path/to/maven-ant-tasks.jar ci-build OK, good to know. Manually pushing the JAR into the local repo worked and I was then able to build Clojure contrib ma

Re: CLR questions

2010-09-22 Thread Timothy Baldridge
First of all, MonoDevelop should be able to load the .sln As far as XNA...last I heard XNA did not have any support for emit, and as such is incapable of running any sort of jit code. Basically all .NET code has to be ahead-of-time compiled to run a XBOX via XNA. It's the same limitation that Iron

Re: clojure-contrib master now in submodules

2010-09-22 Thread Stuart Sierra
On Sep 22, 12:35 pm, Justin Kramer wrote: > Here's the magic incantation I've been using: > > [org.clojure.contrib/complete "1.3.1-SNAPSHOT" :classifier "bin"] > > I don't know how official or future-proof that is. It's wrong, technically, but appears to work for now. I think this may be a probl

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Stuart Sierra
On Sep 22, 3:45 pm, Sean Corfield wrote: > Having pulled Clojure master and done: ant, mvn install I saw that the > jar in the repository was very small - pretty much empty in fact. The Clojure build doesn't fully support Maven. You need to run this: ant -lib /path/to/maven-ant-tasks.jar ci

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Stuart Sierra
On Sep 22, 3:36 pm, Sean Corfield wrote: > That seems to imply there should be a src folder? Am I supposed to > copy Clojure into the same folder as contrib in order to do a build? No, that's a default configuration inherited by all the sub-modules. -S -- You received this message because you

Re: Little LISPer and Ten Commandments

2010-09-22 Thread David Sletten
That book is amazing. Enjoy working through it, it will stretch your mind. However, keep in mind that their emphasis is on getting a feel for how recursion works. Real world Clojure code (any Lisp really) de-emphasizes recursion to some extent. Particularly with regard to list (sequence) proces

CLR questions

2010-09-22 Thread tsuraan
I have two (apparently unrelated) questions about ClojureCLR. First, does Clojure 1.2 build under mono? The clojure-clr tree only appears to have a .sln file; is there some sane way to convert that to a Makefile or a shell script that can be used under *nix? Secondly, has anybody tried deploying

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
Found the problem! Having pulled Clojure master and done: ant, mvn install I saw that the jar in the repository was very small - pretty much empty in fact. I manually copied the clojure-1.3.0-master-SNAPSHOT.jar to the repo and was able to mvn compile contrib just fine. On Wed, Sep 22, 2010 at 12

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
On Tue, Sep 21, 2010 at 9:58 PM, Sean Corfield wrote: > * If I build contrib master against Clojure 1.2.0 (which works), how > do I specify the dependencies in lein? This got answered (by Justin) in another thread so now I'm down to just this question: > * How do I successfully build contrib mas

Re: clojure-contrib master now in submodules

2010-09-22 Thread Sean Corfield
Awesome! That worked - thanx Justin! On Wed, Sep 22, 2010 at 9:35 AM, Justin Kramer wrote: > Here's the magic incantation I've been using: > > [org.clojure.contrib/complete "1.3.1-SNAPSHOT" :classifier "bin"] > > I don't know how official or future-proof that is. > > Justin > > On Sep 22, 2:02 am

Re: ANN: Mycroft, a Clojure inspector

2010-09-22 Thread Stuart Halloway
Thanks, just pushed a commit that should fix this. Stu > Thanks Stuart and Relevance, > > For newer versions of Leiningen, dev dependencies go under lib/dev. > That is where jline ends up. In script/repl you only load libraries > from the lib directory so jline doesn't end up on the classpath an

Re: ANN: Mycroft, a Clojure inspector

2010-09-22 Thread Brenton
Thanks Stuart and Relevance, For newer versions of Leiningen, dev dependencies go under lib/dev. That is where jline ends up. In script/repl you only load libraries from the lib directory so jline doesn't end up on the classpath and, well, you know what happens after that. Looking forward to usin

ANN: Mycroft, a Clojure inspector

2010-09-22 Thread Stuart Halloway
Mycroft is a generic JVM browser written in Clojure. Version 0.0.2 is now available on clojars, and the project is at http://github.com/relevance/mycroft on Github. Mycroft can be embedded as a dev dependency in your own projects. Give it a try! Feedback welcome. Stu Stuart Halloway Clojure/c

Re: clojure-contrib master now in submodules

2010-09-22 Thread Justin Kramer
Here's the magic incantation I've been using: [org.clojure.contrib/complete "1.3.1-SNAPSHOT" :classifier "bin"] I don't know how official or future-proof that is. Justin On Sep 22, 2:02 am, Sean Corfield wrote: > On Fri, Aug 20, 2010 at 7:22 AM, Stuart Sierra > > wrote: > > For example, to us

Little LISPer and Ten Commandments

2010-09-22 Thread ax2groin
Newbie here, to both LISP and Clojure. A friend has lent me a copy of "The Little LISPer" and I've started working through it, using some web resources to translate it into clojure. My questions: How relevant are the ten commandments? What modification need to be made ... either to the commandment

Re: Clojure Serial Connection

2010-09-22 Thread Sam Aaron
If it's of any help, I wrapped up RXTX (2.2pre2) in a clojar with native binary support. You can get running with it by starting off with a project.clj that looks something like: (defproject foo.bar "0.0.1" :description "Project Description Here" :dependencies [[org.clojure/clojure "1.2.0"]

Re: Clojure Serial Connection

2010-09-22 Thread Eric Schulte
Related to controlling an Arduino with Clojure, a while ago I put together a wrapper enabling interacting with a group of IXM boards (cousin to the Arduino) from a Clojure REPL. http://repo.or.cz/w/ixm-repl.git Although in this case the boards are exposed through a shell script which the Clojure

Re: [ANN] Leiningen 1.3.1

2010-09-22 Thread Eric Schulte
Phil Hagelberg writes: > On Mon, Sep 20, 2010 at 12:08 PM, Eric Schulte wrote: >> Having recently upgraded to this newest lein >> >> $ lein --version >> Leiningen 1.3.1 on Java 1.6.0_18 OpenJDK Client VM >> >> I notice that the "lein swank" command is no longer supported. > > Hi Eric! > > The

Re: why the big difference in speed?

2010-09-22 Thread Ranjit
I was missing type hints on the inner calls to aget in the sum, and changing from aset-double to aset makes it even faster: (defn sum-fields4 [^"[[D" arr1 ^"[[D" arr2 ^"[[D" result] (let [L (int (alength arr1))] (dotimes [i L] (dotimes [j L] (aset ^doubles (aget result i) j

Re: Isn't STM good at building an ant colony?

2010-09-22 Thread Per Vognsen
If you have a fixed cell topology, you can also find a coloring of the graph and use it for contention-free scheduling. With a regular grid, you can use the obvious 2-coloring (a checkerboard pattern), so you would handle all the white squares in phase 1 and all the black squares in phase 2. -Per