Re: Need help for the macro with defn and defmacro inside

2010-03-04 Thread Meikel Brandmeyer
Hi, I think you have some misunderstandings here how things work. * the # notation works only *inside* a syntax-quote. * you have to create locals with # notation. * var is a special form which looks up the Var named by the given Symbol. (defmacro create-database-methods [table] (let

Windows: SLIME/Swank freezes on GUI-related input. (Was: Stumped - Java hangs when using Swing in Slime)

2010-03-04 Thread Rickard Bennekom
As of Clojure 1.1.0, the problem still persists. Apparently, it seems to be linked to Slime input that involves GUI- related system calls. On my system (Windows XP SP3, 32 Bit, JRE 1.6.0_18, JDK 1.6.0_12) it can be reproduced as follows: 1. Install Clojure Box 1.1.0 (January 5, 2010) 2. Start the

Re: clojure slides

2010-03-04 Thread Stuart Halloway
http://github.com/stuarthalloway/clojure-presentations Creative Commons License. Enjoy. Stu Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) -- Omnem crede diem tibi diluxisse supremum. -- You received

Re: group tag for clojure newsgroup

2010-03-04 Thread Rich Hickey
On Mar 4, 2:56 am, TimDaly d...@axiom-developer.org wrote: For the other groups that I subscribe to, the email subjects are always prefixed with the group name, e.g. Re: [sage-devel] This is the mail subject This makes it possible to reliably group the emails into folders. Is it possible

Re: group tag for clojure newsgroup

2010-03-04 Thread Johnny Kwan
On Mar 4, 2010, at 8:00 AM, Rich Hickey wrote: On Mar 4, 2:56 am, TimDaly d...@axiom-developer.org wrote: For the other groups that I subscribe to, the email subjects are always prefixed with the group name, e.g. Re: [sage-devel] This is the mail subject This makes it possible to

Re: group tag for clojure newsgroup

2010-03-04 Thread Michael Wood
On 4 March 2010 09:56, TimDaly d...@axiom-developer.org wrote: For the other groups that I subscribe to, the email subjects are always prefixed with the group name, e.g. Re: [sage-devel] This is the mail subject This makes it possible to reliably group the emails into folders. Is it

Re: group tag for clojure newsgroup

2010-03-04 Thread Meikel Brandmeyer
Hi, On Mar 4, 2:00 pm, Rich Hickey richhic...@gmail.com wrote: It is possible for me to put a [Clojure] prefix on the emails. Does anyone have any objections to that? Mailing lists usually generate a List-Id header, which identifies the mail to come from a list and in particular from which

Re: group tag for clojure newsgroup

2010-03-04 Thread Angel Java Lopez
+1 many quick interfaces show only the title. Adding [clojure] would be fine. On Thu, Mar 4, 2010 at 10:05 AM, Johnny Kwan johnny.c.k...@gmail.comwrote: On Mar 4, 2010, at 8:00 AM, Rich Hickey wrote: On Mar 4, 2:56 am, TimDaly d...@axiom-developer.org wrote: For the other groups that I

Re: group tag for clojure newsgroup

2010-03-04 Thread Jan Rychter
Rich Hickey richhic...@gmail.com writes: On Mar 4, 2:56 am, TimDaly d...@axiom-developer.org wrote: For the other groups that I subscribe to, the email subjects are always prefixed with the group name, e.g. Re: [sage-devel] This is the mail subject This makes it possible to reliably group

Re: group tag for clojure newsgroup

2010-03-04 Thread Joop Kiefte
True what said, but sometimes I filter things on subject instead of list as it is all the same for me (e.g. clojure and compojure-list on the same label) and there it can be useful as well. Now I have compojure (low-volume) and clojure (high-volume) split up and it's just not worth it for the

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Stuart Halloway
Hi Jan, My 2c: Leiningen is an important step, but there is still plenty to do. My workflow: I am developing multiple Clojure libraries and applications, with some of the dependencies changing daily. Whenever I want to make a change, I: In the project being changed: git tag a new version

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Stuart Halloway
artifacts (huh?!), things get installed in weird places. My clj script that gets run by SLIME form Emacs can't find libraries that leiningen downloaded. lein deps copies dependencies into the project's lib directory. Various other lein commands assume lib/*.jar is on the classpath, and if

Re: group tag for clojure newsgroup

2010-03-04 Thread Stuart Halloway
It is possible for me to put a [Clojure] prefix on the emails. Does anyone have any objections to that? -1. The metadata is already available where metadata is supposed to be (the headers). Clojure does metadata right, the mailing list should too. :-) -- You received this message because

Re: group tag for clojure newsgroup

2010-03-04 Thread Garth Sheldon-Coulson
I agree that this would obstruct the subject line needlessly, a particularly inconvenient thing for anyone who (like me) often reads list emails on devices with very small screens. The list is high-volume enough that I suspect the vast majority of readers filter list emails away from their main

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread mac
The .m2 folder is a Maven 2 convention. Leiningen uses Maven internally. .m2 contains your local repository - the single standard place where stuff gets downloaded to. When doing lein deps in a project folder any dependencies are downloaded to your local repo first (unless you already had the

Re: name clash/problem with refer

2010-03-04 Thread cageface
On Mar 3, 11:03 pm, Meikel Brandmeyer m...@kotka.de wrote: Almost correct: (use '[clojure.contrib.string :exclude (repeat)]) That did it. Thanks! I finally had to do this to get the whole package to load: user= (use '[clojure.contrib.string :exclude (repeat butlast reverse get partition drop

Re: name clash/problem with refer

2010-03-04 Thread Meikel Brandmeyer
Hi, On Mar 4, 4:11 pm, cageface milese...@gmail.com wrote: I wonder if it would make sense to rename some of those functions to reduce the number of clashes with core. It's considered a feature that the names of core are duplicated for similar functionality. This might or might not be a good

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Stuart Sierra
On Mar 4, 8:52 am, Stuart Halloway stuart.hallo...@gmail.com wrote: My 2c: Leiningen is an important step, but there is still plenty to do. Oh yeah. Some needs I see: (0) More point releases of key libs (or some other solution to the   snapshots problem) Yes! (1) Unify around the project

Re: Using deftype to define mutually recursive data inside agent

2010-03-04 Thread Stuart Sierra
deftype just defines a map-like structure with fixed fields; it isn't going to change the way you deal with that structure in an Agent. -SS On Mar 3, 5:02 am, zahardzhan zahardz...@gmail.com wrote: Sorry my english I use in my small clojure program one complicated mutually-recursive data

Re: name clash/problem with refer

2010-03-04 Thread Stuart Halloway
I wonder if it would make sense to rename some of those functions to reduce the number of clashes with core. Preferred is (require '[clojure.contrib.string :as str]) Stu -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: recursive call boxing primitives?

2010-03-04 Thread Stuart Sierra
On Mar 1, 5:33 pm, John Lawrence Aspden aspd...@googlemail.com wrote: Is the reason the Clojure version is slow that recursive calls to draw- tree are boxing and unboxing primitive types? Recursive calls, like all Clojure function calls, force boxing. This may or may not have anything to do

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Konrad Hinsen
On 04.03.2010, at 14:33, Jan Rychter wrote: It seems that leiningen assumes that you are building an application. It downloads all dependencies and can build an uberjar for you. That's great, but what if what I have is a bunch of libraries, all being developed and modified? That's my

Re: group tag for clojure newsgroup

2010-03-04 Thread Tim Daly
Garth, J, It is precisely the point that I would like to differentiate emails away from my main inbox. I use thunderbird as my mail reader and I cannot find a way to differentiate clojure emails. I use the mailing list tag as a way to filter all other groups and they all seem to use the

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Praki Prakash
Lein could be a step in the right direction, but I wonder how it will manage to evolve given the complex tools it uses internally. I have also seen a weird issue in my code base which has two classes derived from java.lang.Exception. If I do a clean and try compile, I get an error saying that

Re: name clash/problem with refer

2010-03-04 Thread cageface
On Mar 4, 7:21 am, Stuart Halloway stuart.hallo...@gmail.com wrote: Preferred is (require '[clojure.contrib.string :as str]) That's an easy solution. Thanks. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: group tag for clojure newsgroup

2010-03-04 Thread Garth Sheldon-Coulson
Hi Tim, I just downloaded Thunderbird to take a look, and I haven't tested this, but you might try the following (have you already tried this? you mentioned List-ID, so maybe this doesn't work...): - Open the filters dialog, click New - Create a new filter (click the + in the top list) - In the

Re: group tag for clojure newsgroup

2010-03-04 Thread Garth Sheldon-Coulson
Sorry, made a mistake. List-ID header contains clojure.googlegroups.com Mailing-list header contains clojure@googlegroups.com Note the @. On Thu, Mar 4, 2010 at 12:06 PM, Garth Sheldon-Coulson g...@mit.edu wrote: Hi Tim, I just downloaded Thunderbird to take a look, and I haven't tested

Re: group tag for clojure newsgroup

2010-03-04 Thread Tim Daly
Garth, Worked. Thank you. Rich, consider the question closed. Tim Garth Sheldon-Coulson wrote: Hi Tim, I just downloaded Thunderbird to take a look, and I haven't tested this, but you might try the following (have you already tried this? you mentioned List-ID, so maybe this doesn't

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Meikel Brandmeyer
Hi, On Thu, Mar 04, 2010 at 07:11:59AM -0800, Praki Prakash wrote: I have also seen a weird issue in my code base which has two classes derived from java.lang.Exception. If I do a clean and try compile, I get an error saying that my.package.MyException class not found. My workaround is, set

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread James Reeves
On 4 March 2010 10:19, Stuart Sierra the.stuart.sie...@gmail.com wrote: As many of you know, I've always been tepid on lein.  I'd rather go with Maven whole-hog, because that offers the most robust model for incorporating Java libraries. Out of interest, what scenarios does Maven account for

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread David Nolen
On Thu, Mar 4, 2010 at 10:59 AM, Konrad Hinsen konrad.hin...@fastmail.netwrote: Right, but its imperfections have bothered me often enough. For once, if you have different applications that require different versions of the same library, you are in for a major headache. Python setuptools and

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread David Nolen
On Thu, Mar 4, 2010 at 8:33 AM, Jan Rychter j...@rychter.com wrote: Also, I now have at least six clojure jars in ~/.m2 (huh?!), along with a collection of other assorted stuff. I don't want to use any of these clojure jars, I have a checked out git repo with clojure and this is the only code

Re: Using deftype to define mutually recursive data inside agent

2010-03-04 Thread ataggart
You can use *agent* from inside an agent thread to obtain the current agent. On Mar 3, 2:02 am, zahardzhan zahardz...@gmail.com wrote: Sorry my english I use in my small clojure program one complicated mutually-recursive data structure that represents an agent-in-environment. This structure

Re: clojure slides

2010-03-04 Thread Baishampayan Ghose
Wilson MacGyver wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) Feel free to use mine - http://www.slideshare.net/zaph0d/introduction-to-clojure Regards, BG -- Baishampayan Ghose b.gh...@ocricket.com

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Konrad Hinsen
On 4 Mar 2010, at 19:38, David Nolen wrote: Imperfections meaning it's perfectly broken :) That's why tools like virtualenv exist for Python. I'd say it's New Jersey style: good enough for 90% of the users, but indeed fundamentally broken. Konrad. -- You received this message because

ANN: Conjure 0.4

2010-03-04 Thread Matt
After months of work, Conjure 0.4 is finally released. Conjure is a Rails like web framework for Clojure. With in only a few seconds, you can start a web server with a database backend and an MVC clojure framework running it all. You can download 0.4 here:

Re: ANN: Conjure 0.4

2010-03-04 Thread Laurent PETIT
Wow :-) Can't wait for seeing a presentation on Vimeo by Sean ;-) 2010/3/4 Matt macourt...@gmail.com: After months of work, Conjure 0.4 is finally released. Conjure is a Rails like web framework for Clojure. With in only a few seconds, you can start a web server with a database backend and

ANN: Pittsburgh Clojure Users Group

2010-03-04 Thread joegg
We're having a meetup for Pittsburgh-area Clojure programmers. The first meeting is Wednesday March 10th at 7pm at The Library (on Carson Street). The plan for now is to have shorter talks and presentations, followed by general discussion and possibly some (hopefully fun!) coding. We welcome

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Chris Perkins
On Mar 4, 8:33 am, Jan Rychter j...@rychter.com wrote: I haven't hacked on new Clojure stuff for the past two months or so. Now, having updated my repositories, I find that everybody just dropped ant and moved to leiningen. How do people deal with this? I don't have any good answers for you;

Re: clojure slides

2010-03-04 Thread Wilson MacGyver
thank you, going though it now. :) On Thu, Mar 4, 2010 at 2:56 PM, Baishampayan Ghose b.gh...@ocricket.com wrote: Wilson MacGyver wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) Feel free to use mine -

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Glen Stampoultzis
On 5 March 2010 04:39, Chris Perkins chrisperkin...@gmail.com wrote: The situation is worse on Windows, where I can't even get leiningen to work at all. Luckily I'm only working on one clojure project, so I just copy clojure.jar and clojure-contrib.jar into my project's lib directory, as

Re: Using deftype to define mutually recursive data inside agent

2010-03-04 Thread Steven E. Harris
ataggart alex.tagg...@gmail.com writes: You can use *agent* from inside an agent thread to obtain the current agent. Is this documented? -- Steven E. Harris -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Antony Blakey
On 05/03/2010, at 5:29 AM, David Nolen wrote: On Thu, Mar 4, 2010 at 10:19 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: As many of you know, I've always been tepid on lein. I'd rather go with Maven whole-hog, because that offers the most robust model for incorporating Java

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Brian Schlining
If Lein evolves to to handle dependencies of dependencies and intelligently generates the classpath based on these dependencies (instead of copying files around) what advantage does Maven really have? The tools (e.g. Archiva, Nexus et al), documentation, IDE support, integration with

Re: Some basic guidance to designing functional vs. state parts of app

2010-03-04 Thread Sophie
Thank you all, the replies so far and the questions have already deepened my understanding considerably! Looking forward to more. I think a bit more discussion like this (not necessarily my quite skimpy example) would be quite valuable to many like me. -- You received this message because you

mutable half-edge data structures to immutable languages

2010-03-04 Thread strattonbrazil
I have implemented the half-edge data structure several times now for mesh representation. Basically there are three main data structures (vertex, edge, face). I'll explain them a bit, but I think this is a more functional programming/Clojure question than actual geometry. A vertex is a corner

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Felix Breuer
I am also on Windows and have struggled a good deal with Leiningen (I would like to avoid wrangling classpaths myself as far as possible). I finally got Leiningen to run, but some features like lein swank still elude me (though this is a problem of swank-clojure and not of Leiningen). I agree that

Re: Need help for the macro with defn and defmacro inside

2010-03-04 Thread sailormoo...@gmail.com
Oh, thanks Meikel, I don't have a strong knowledge of how those symbol, gensym and symbolic quote and unquote work? It's like a puzzle, but I think I know a bit more with your help . -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Meikel Brandmeyer
Hi, On Mar 5, 1:03 am, Felix Breuer fe...@fbreuer.de wrote: I agree that Windows is a second class citizen as far as clojure tools go. Oh please stop that. I have a stable setup of Gradle + Clojuresque + VimClojure on Windows. Granted setting up VimClojure on Windows is tricky due to Vim and

Re: Using deftype to define mutually recursive data inside agent

2010-03-04 Thread Meikel Brandmeyer
Hi, On Mar 5, 2:57 am, Steven E. Harris s...@panix.com wrote: ataggart alex.tagg...@gmail.com writes: You can use *agent* from inside an agent thread to obtain the current agent. Is this documented? Yes. http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/*agent*

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Martin DeMello
On Thu, Mar 4, 2010 at 7:03 PM, Jan Rychter j...@rychter.com wrote: As a more general observation, I think that a large part of Perl's and Python's success was a unified way of dealing with libraries. There are certain directories where you can drop libraries and expect them to work (be

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Meikel Brandmeyer
Hi, On Mar 5, 7:47 am, Martin DeMello martindeme...@gmail.com wrote: One huge drawback I've found with clojure (which it doubtless inherited from Java) is that you need an actual jarfile in your classpath, not just the directory containing the jarfile. With newer Java versions you can

Re: Leiningen, Clojure and libraries: what am I missing?

2010-03-04 Thread Rob Wolfe
On 5 Mar, 01:03, Felix Breuer fe...@fbreuer.de wrote: I am also on Windows and have struggled a good deal with Leiningen (I [...] On 5 Mrz., 00:32, Glen Stampoultzis gst...@gmail.com wrote: On 5 March 2010 04:39, Chris Perkins chrisperkin...@gmail.com wrote: The situation is worse