Re: a function to list the namespaces that a namespace refers to ...

2010-10-31 Thread ka
Hi, not sure if this is useful for you - http://github.com/na-ka-na/cdeps. -- 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 Note that posts from new members are moderated - please be patient

Clojure namespace dependencies - cdeps

2010-10-31 Thread ka
Few months back I started working on a project which already had 10k lines of Clojure code. There were already ~75 namespaces (not including tests). I was searching for a tool which would quickly give me a high level overview of the code - how do the packages depend on each other, which namespace

Re: Clojure application in the wild, to learn beautiful Clojure technique(s) from

2010-10-31 Thread zkim
Enlive (also Christophe Grand's) is definitely a project you'll want to check out: http://github.com/cgrand/enlive Pairing enlive with David Nolan's tutorial (http://github.com/ swannodette/enlive-tutorial/) allows you to consume the codebase in bite-sized pieces (read about a feature in the tutor

Re: figuring out sets

2010-10-31 Thread Shantanu Kumar
Or just this: user=> (set [1 2 3 4 5 8 8 9 6 6 4]) #{1 2 3 4 5 6 8 9} On Nov 1, 8:11 am, Shantanu Kumar wrote: > You can write something like this: > > user=> (into #{} [1 2 3 4 5 8 8 9 6 6 4]) > #{1 2 3 4 5 6 8 9} > > Cheers, > Shantanu > > On Nov 1, 7:55 am, tonyl wrote: > > > > > > > > > I g

Re: figuring out sets

2010-10-31 Thread David Sletten
>From a mathematical perspective the essential aspect of a set is its >extension, namely what elements are contained in the set. This leads >immediately to the property of uniqueness you mentioned. But the fundamental >operation is 'contains?'. In other words, does the set contain some object or

Re: figuring out sets

2010-10-31 Thread Shantanu Kumar
You can write something like this: user=> (into #{} [1 2 3 4 5 8 8 9 6 6 4]) #{1 2 3 4 5 6 8 9} Cheers, Shantanu On Nov 1, 7:55 am, tonyl wrote: > I guess I should've look harder (and ask more in the irc ;) it is a > data structure and has a set fn too. #{} is just a reader macro for > syntacti

Re: figuring out sets

2010-10-31 Thread tonyl
I guess I should've look harder (and ask more in the irc ;) it is a data structure and has a set fn too. #{} is just a reader macro for syntactic sugar. And the difference of usage between sets and vectors are they sets can't have duplicates. This is great, clojure group with irc chat, good learnin

figuring out sets

2010-10-31 Thread tonyl
I've been wondering if sets are actually a defined data structure like vectors and maps or are they a result of an expansion of the dispatch macro? I was wondering since it uses the dispatch macro and AFAIK there is no api fn to create them like hash-maps to create maps, vector/vec for vectors, or

Re: REQUEST for feedback on http://clojure.org

2010-10-31 Thread Alex Miller
Sam - I've added the Cambridge Clojurians Phil - I've added Seajure - I've added a link from the contributing page to the patches page - great suggestion! - On libraries -> noted, I am building a list of stuff to discuss further with the core team Sean - no, there is no rationale for the ordering

defmethod hangs

2010-10-31 Thread Jarl Haggerty
I'm not sure what to do here, my program hangs at the following defmethod. all my brackets seem to be balanced and I'm not receiving any errors about undefined symbols. This sample prints 2 but never gets to 3, (my poor man's debugging). This code is for the collision detection is a physics engi

Re: Clojure application in the wild, to learn beautiful Clojure technique(s) from

2010-10-31 Thread Daniel Werner
I'd consider the following projects: Compojure is written in an almost purely functional style and demonstrates well how Clojure values can act almost as their own DSLs while keeping the semantics clear and concise. http://github.com/weavejester/compojure Christophe's Regex lib shows how to use D

Re: REQUEST for feedback on http://clojure.org

2010-10-31 Thread Shantanu Kumar
Thanks, this is neat! My input is inline. On Oct 31, 7:38 am, Alex Miller wrote: > Hi all, > > I'm doing a bit of doc cleanup onhttp://clojure.organd I'd welcome > your feedback on things that are broken or could be improved.  I'm not > looking (or likely authorized :) to make any drastic changes

Re: REQUEST for feedback on http://clojure.org

2010-10-31 Thread Sean Corfield
On Sat, Oct 30, 2010 at 7:38 PM, Alex Miller wrote: > Some recent changes I've already made: > - switched all of the old richhickey github references to clojure Yay! > I'm particularly interested in: > - new user groups or suggestions for the community page I'm curious - is there any rationale

Re: REQUEST for feedback on http://clojure.org

2010-10-31 Thread Phil Hagelberg
On Sat, Oct 30, 2010 at 7:38 PM, Alex Miller wrote: > I'm doing a bit of doc cleanup on http://clojure.org and I'd welcome > your feedback on things that are broken or could be improved.  I'm not > looking (or likely authorized :) to make any drastic changes but if > there are things that you have

Re: REQUEST for feedback on http://clojure.org

2010-10-31 Thread Sam Aaron
Hi Alex, thanks for doing this - it's much appreciated. w.r.t. user groups for the community page, you might want to mention the Cambridge Clojurians http://www.meetup.com/Cambridge-Clojurians/ Sam --- http://sam.aaron.name On 31 Oct 2010, at 2.38 am, Alex Miller wrote: > Hi all, > > I'm do

Re: Clojure application in the wild, to learn beautiful Clojure technique(s) from

2010-10-31 Thread Quzanti
The Compojure project interacts with templating languages and web servers (presumably). Don't know about databases. The design is elegant and idiomatic. http://github.com/weavejester/compojure/wiki On Oct 31, 3:49 am, Alex Baranosky wrote: > Hi all, > > I've read Programming Clojure, and written

[ANN] rinzelight 0.0.3

2010-10-31 Thread Sergio Arbeo Rodríguez
Hi there, rinzelight 0.0.3 is out! In this release you'll find: * Lookup Tables * Affine Transformations * Composing images * Color rescale * Cropping images * Color histograms * Contrast stretching * Edge effect. * Negate effect. * Normalize effect * Support for rendering hints * Gravities. And

Re: error with doseq in defrecord function

2010-10-31 Thread Sam Roberton
> (defrecord Foo [properties] >   Fooable >   (foo [f] >     (let [s (java.util.HashSet.)] >      (doto s >    (doseq [p properties] (.add s p)) > > When I load/reload the above code in the repl I get this error > > vector for its binding (config.clj:22)> The problem is the way you're cal

Re: Clojure application in the wild, to learn beautiful Clojure technique(s) from

2010-10-31 Thread Eric Lavigne
This application was created as a teaching example for the Pragmatic Studio Clojure workshops, taught by Stuart Halloway and Rich Hickey. It includes examples of all the issues you are talking about. http://github.com/relevance/labrepl As far as real applications go, this is a small applicat

error with doseq in defrecord function

2010-10-31 Thread John Sanda
I am getting an error when trying to call doseq from within a defrecord function, but I do not get the error with the same code outside of the defrecord. Here is an example: (defprotocol Fooable (foo [this])) (defn add-props [s properties] (doseq [p properties] (.add p))) (defrecord Foo [prope

Re: Can't locate str_utils in classpath

2010-10-31 Thread Mike Meyer
On Sun, 31 Oct 2010 00:09:31 -0700 (PDT) Steven Arnold wrote: > That was it. I had to add the entire path up to and including to > contrib jar in order for "clj" to work. Merely adding the directory > to the classpath was not sufficient, and the clj script ignored the > value of my env variable

Re: Can't locate str_utils in classpath

2010-10-31 Thread Steven Arnold
That was it. I had to add the entire path up to and including to contrib jar in order for "clj" to work. Merely adding the directory to the classpath was not sufficient, and the clj script ignored the value of my env variable $CLASSPATH, so I had to edit the clj script itself to get this working.