Re: clojure-mode install on Windows XP does not work, for me

2009-05-19 Thread Dimiter "malkia" Stanev
Following Paul Stadig's advice, I've got it working too: In my ~/.emacs (custom-set-variables '(swank-clojure-extra-classpaths '("/Users/malkia/p/clojure-contrib/ clojure-contrib.jar:/Users/malkia/classes/:/Users/malkia/p/swank- clojure")) '(swank-clojure-extra-vm-args '("-Xmx102400" "-ser

Re: Question about building modular code in Clojure

2009-05-19 Thread Mark Engelberg
On Tue, May 19, 2009 at 9:08 PM, George Jahad wrote: ]> It seems like what you are really trying to do is simulate > inheritance/overriding in clojure.  What's wrong with using > gen-class and proxy for that? I guess it's still an open question as to whether gen-class and proxy are mainly for Ja

Re: clojure-mode install on Windows XP does not work, for me

2009-05-19 Thread Dimiter "malkia" Stanev
I have now the same problem, but under Mac OS X 10.5 Things used to work few days ago (if not yesterday) On May 18, 7:32 am, klang wrote: > First things first: > > swank doesn't load and slime can't connect to the *inferior-lisp* > running clojure > > I am missing something obvious, please advi

3d viewer

2009-05-19 Thread kyle smith
I have uploaded 3d-viewer.clj to the files section. If anyone finds it useful, I would appreciate some feedback. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: Question about building modular code in Clojure

2009-05-19 Thread George Jahad
On May 18, 9:56 am, Mark Engelberg wrote: > > So how to do this? As far as I can tell, these various modules are > all "hard-linked" to point at one another, and I don't see how to make > this linkage more dynamic. To change one file, I'd have to create new > versions of ALL the files. It wou

Re: Question about building modular code in Clojure

2009-05-19 Thread Konrad Hinsen
On 19.05.2009, at 23:44, maxsu wrote: > There, it's well defined and mathematical, and pretty neat; for > example, we can have a equality module where all we have to do is give > it a '<' function that knows how to compare a certain kind of data, > and and we get back shiny and correct >, <=, >=

Re: Clojure at JavaOne

2009-05-19 Thread e
is there a risk that people have seen Rich's videos and thus the ant demo, already? If so, that could turn into, "So it's a one trick pony?" Not likely, but is there that risk? On Tue, May 19, 2009 at 11:18 AM, Michael Harrison (goodmike) < goodmike...@gmail.com> wrote: > > Just my 2 cents, but

Re: Clojure at JavaOne

2009-05-19 Thread tmountain
I agree with some of the previous suggestions that something including Java interop would be a good idea. That should give Java programmers warm fuzzy feelings and at least pique their curiosity enough to give Clojure a more detailed look later. Four minutes is such an extremely short amount of ti

Re: Saving the Clojure.org webiste

2009-05-19 Thread Vagif Verdi
i saved it with wget and then fixed the files with sed to point to right resources and urls. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.

Re: Clojure at JavaOne

2009-05-19 Thread Shantanu Kumar
On May 18, 7:37 pm, verec wrote: > Whatever you chose, you probably ought to show its source with an IDE > (whichever you chose: NetBeans. Eclipse, IntelliJ) but should probably > forget about emacs: many (most?) Java developers won't even consider > anything that isn't at least partially integ

Re: Question about building modular code in Clojure

2009-05-19 Thread maxsu
Don't call it monkey patching! We'll start to feel like we're in ruby, writing code that relies on modifications to Object :). In certain languages you can create modular units which are incomplete, and require that the user supply custom functions and constants in order to create an 'instance' o

Re: Saving the Clojure.org webiste

2009-05-19 Thread Rohan Nicholls
I tried that and various other combinations of wget, but no luck. On Tue, May 19, 2009 at 10:49 PM, Trevor Caira wrote: > > I haven't personally tried it on clojure.org, but wget -m tends to > work well for this kind of task. > > Trevor > > Kei Suzuki wrote: >> I wanted to save the Clojure.org w

Re: Saving the Clojure.org webiste

2009-05-19 Thread Trevor Caira
I haven't personally tried it on clojure.org, but wget -m tends to work well for this kind of task. Trevor Kei Suzuki wrote: > I wanted to save the Clojure.org website so that I can read it when > I'm off-line. The problem is that none of the website downloader tools > I found is satisfactory; t

Re: Saving the Clojure.org webiste

2009-05-19 Thread Andrew Wagner
Can I get it in a bedtime-story format too? :) On Tue, May 19, 2009 at 3:49 PM, Kei Suzuki wrote: > > I wanted to save the Clojure.org website so that I can read it when > I'm off-line. The problem is that none of the website downloader tools > I found is satisfactory; the pages don't look right

Saving the Clojure.org webiste

2009-05-19 Thread Kei Suzuki
I wanted to save the Clojure.org website so that I can read it when I'm off-line. The problem is that none of the website downloader tools I found is satisfactory; the pages don't look right and links are broken (I think I know now why they don't work by looking into the html and css files of the

Re: Chicago Clojure May meeting at Sully's House on May 20th (tomorrow)

2009-05-19 Thread Cosmin Stejerean
On Tue, May 19, 2009 at 12:58 PM, Michel S. wrote: > > On May 19, 12:45 pm, Cosmin Stejerean wrote: > > The second Chicago Clojure meetup will focus on a in-depth introduction > to > > Clojure concepts and syntax, presented by Frederick Polgardy. You > definitely > > don’t want to miss this meet

Re: Question about building modular code in Clojure

2009-05-19 Thread MikeM
> > So how to do this?  As far as I can tell, these various modules are > all "hard-linked" to point at one another, and I don't see how to make > this linkage more dynamic.  To change one file, I'd have to create new > versions of ALL the files.  It would be great if each file could store > a va

Re: Chicago Clojure May meeting at Sully's House on May 20th (tomorrow)

2009-05-19 Thread Michel S.
On May 19, 12:45 pm, Cosmin Stejerean wrote: > The second Chicago Clojure meetup will focus on a in-depth introduction to > Clojure concepts and syntax, presented by Frederick Polgardy. You definitely > don’t want to miss this meeting if you’re just getting started with Clojure. > If you’re a Clo

Re: Question about building modular code in Clojure

2009-05-19 Thread Mark Engelberg
On Tue, May 19, 2009 at 6:18 AM, Meikel Brandmeyer wrote: > I think the idea of decoupling is called "inversion of control" > or "dependency injection". I'm sure it works for you, but it > sure did in this (admittedly) simple example. There are > various ways at passing around parameter: > - glob

Re: OutOfMemoryError with clojure.contrib.sql and large result sets

2009-05-19 Thread Ian Eure
On May 15, 2009, at 3:34 PM, Stephen C. Gilardi wrote: > > On May 15, 2009, at 6:14 PM, Ian Eure wrote: > >> I'm not having any luck at all. I tried visualvm, but it seems that >> it doesn't support memory profiling unless you're running JDK 6. I >> switched my default version (I'm on OS X he

Chicago Clojure May meeting at Sully's House on May 20th (tomorrow)

2009-05-19 Thread Cosmin Stejerean
The second Chicago Clojure meetup will focus on a in-depth introduction to Clojure concepts and syntax, presented by Frederick Polgardy. You definitely don’t want to miss this meeting if you’re just getting started with Clojure. If you’re a Clojure expert please come and help us get everyone else u

Re: Clojure at JavaOne

2009-05-19 Thread Michael Harrison (goodmike)
Just my 2 cents, but the really killer part of the ant hill demonstration for me happened when Rich brought up his computer's process monitor and showed the simulation using > 100% of the CPU. In other words, it was a proof moment -- look, multiple cores! I think the audience would respect the de

Re: Feedback on new persistentmatrix datatype

2009-05-19 Thread Dan Larkin
DataCube reminds me of http://timecube.com/ Completely OT, though... or is it? On May 19, 2009, at 10:18 AM, Konrad Hinsen wrote: > On May 19, 2009, at 14:28, aperotte wrote: > >> I'm glad you got it working. I'll have to look into compiling it >> with >> an earlier version of java. >> >> I

Re: Feedback on new persistentmatrix datatype

2009-05-19 Thread Konrad Hinsen
On May 19, 2009, at 14:28, aperotte wrote: > I'm glad you got it working. I'll have to look into compiling it with > an earlier version of java. > > I'm actually not using ant for this project just yet. I'm compiling > with javac. A working build.xml is attached - feel free to add it! > I agre

Re: Question about building modular code in Clojure

2009-05-19 Thread Meikel Brandmeyer
Hi, Am 18.05.2009 um 18:56 schrieb Mark Engelberg: OK, so let's talk more about what this glue code should look like. I've been lumping this problem together with the other, because in my mind they are related, but perhaps there is a clean way to glue together modules without the incremental ex

Re: Feedback on new persistentmatrix datatype

2009-05-19 Thread aperotte
Great! I'm glad you got it working. I'll have to look into compiling it with an earlier version of java. I'm actually not using ant for this project just yet. I'm compiling with javac. I agree, it's unfortunate that matrix carries the connotation of 2D. PersistentNDArray, PersistentDataCube,

Slime and OpenGL

2009-05-19 Thread Glen Stampoultzis
I'm trying to write a little game with clojure and OpenGL using the LWJGL library. It's running fine outside of slime but when I run it within slime I'm getting an error on this call: (Display/setVSyncEnabled true) user=> java.lang.NullPointerException (splat.clj:0) at clojure.lang.Compiler.e

Re: clojure-mode install on Windows XP does not work, for me

2009-05-19 Thread Paul Stadig
I don't think I did anything special. All I did was install clojure, clojure-contrib, slime, and swank-clojure using the M-x clojure-install command from clojure-mode. I'm pretty sure it doesn't make a difference, but I'm also running on a snapshot of Emacs. Aside from that I just added the below

Patch to update pom-template.xml to reflect changed artifactId

2009-05-19 Thread Stefan Hübner
Hi, I'd like to contribute a patch to pom-template.xml that reflects - the changed artifactId ("clojure-lang" -> "clojure") and - added scm-section. This patch is meant to be applied both to branches/1.0 and trunk. Thanks, Stefan Hübner --~--~-~--~~~---~--~~ You

Re: Feedback on new persistentmatrix datatype

2009-05-19 Thread Konrad Hinsen
On May 18, 2009, at 16:34, Konrad Hinsen wrote: > understand ant in any way), and I managed to obtain a jar file > without any compiler error messages, but when I try to import > persistentmatrix.core into clojure, it fails: > > java.lang.NoClassDefFoundError: clojure/lang/Sequential > (NO_SOURCE

Weird Clojure Box - library issue

2009-05-19 Thread martin_clausen
I am trying to use the JACOB library with Clojure using Clojure Box. I have added this to my .emacs: (setq swank-clojure-library-paths (list "c:/dev/dlls")) c:/dev/dlls/ contains the jacob-1.14.3-x86.dll I have added a .clojure dir to my ~/ dir and that contains the jacob.jar At the Clojure B

Re: monad tutorial question

2009-05-19 Thread Konrad Hinsen
On 18.05.2009, at 21:54, Stuart Halloway wrote: > When working through Part 3 of the monad tutorial [1], I am seeing the > following behavior for fib-trace: > > (fib-trace 3) > => [2 [[[1 1] [[[0 0] []] [[2 1] [[[1 1] [ > > According to the tutorial, it should be: > > (fib-trace 3

Re: Clojure at JavaOne

2009-05-19 Thread Konrad Hinsen
On 18.05.2009, at 14:36, Rich Hickey wrote: > I'd appreciate some suggestions *and help* preparing demos for the > Script Bowl. What (that could be demonstrated in 4 minutes) would make > you think - 'Clojure looks cool, I need to look into it'? What > community contribution(s) should we showcase