Re: clojure.core.logic.core/match usage

2011-10-04 Thread Sunil S Nandihalli
Thanks David, for the wonderful core.logic and core.match library. Sunil. On Mon, Oct 3, 2011 at 5:39 PM, David Nolen dnolen.li...@gmail.com wrote: It's a bug, thanks for the report, http://dev.clojure.org/jira/browse/MATCH-23 David On Mon, Oct 3, 2011 at 6:27 AM, Sunil S Nandihalli

Re: docs for 1.3

2011-10-04 Thread Fogus
(it doesn't help that this is now a child page of Release.Next Planning which now refers to Clojure 1.4!) Good catch. That was my fault. It's now nested under the Core page in the same space. Improving documentation looks to be a focus of Clojure

Re: Shameless self promotion - JavaOne

2011-10-04 Thread C. Arel
Hi Dennis and Chas, I'd also like the slides if possible. Maybe if you could post them here in the group more people can get them. Thanks, Can On 27 Sep, 17:50, Dennis shr3ks...@gmail.com wrote: Hey guys, I will be giving a talk at JavaOne (it is Clojure related).  Here is the information.

Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
Hello all, What would be the currently recommended CSV client, please ? Not necessarily already upgraded to 1.3 support. Thanks in advance, -- Laurent -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

defprotocol problem in 1.3?

2011-10-04 Thread hgreen
I finally got around to trying out the 1.3 release yesterday with a batch of code that was constructed using 1.2, and promptly ran into a problem. In 1.2, it's possible to define a protocol with zero methods, so, for example, (defprotocol xxx) works just fine. In 1.3, this generates the rather

Re: defprotocol problem in 1.3?

2011-10-04 Thread Stuart Halloway
I finally got around to trying out the 1.3 release yesterday with a batch of code that was constructed using 1.2, and promptly ran into a problem. In 1.2, it's possible to define a protocol with zero methods, so, for example, (defprotocol xxx) works just fine. In 1.3, this generates the

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
Self answer : either clojure-csv for full NIH clojure solution ( http://github.com/davidsantiago/clojure-csv, the one I took :-) ), or java based OpenCSV There is also a csv lib in Incanter, but I did not try to see if it is sufficiently decoupled from the rest to be used in isolation (still

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Allen Johnson
In addition, there is org.clojure/data.csv which says it works with Clojure 1.2 and 1.3. https://github.com/clojure/data.csv Allen On Tue, Oct 4, 2011 at 2:42 PM, Laurent PETIT laurent.pe...@gmail.com wrote: Self answer : either clojure-csv for full NIH clojure solution (

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Ben Mabey
I needed a CSV recently and I wanted one that converted the rows to maps (using the headers) and supported converters. I found one[1] that did most of what I wanted and extended it a bit. The tests provide a good overview of the API:

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
2011/10/4 Allen Johnson akjohnso...@gmail.com: In addition, there is org.clojure/data.csv which says it works with Clojure 1.2 and 1.3. https://github.com/clojure/data.csv I didn't go first see in clojure contrib, shame on me Allen On Tue, Oct 4, 2011 at 2:42 PM, Laurent PETIT

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
2011/10/4 Laurent PETIT laurent.pe...@gmail.com: 2011/10/4 Allen Johnson akjohnso...@gmail.com: In addition, there is org.clojure/data.csv which says it works with Clojure 1.2 and 1.3. https://github.com/clojure/data.csv I didn't go first see in clojure contrib, shame on me Seems like a

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
2011/10/4 Laurent PETIT laurent.pe...@gmail.com: 2011/10/4 Laurent PETIT laurent.pe...@gmail.com: 2011/10/4 Allen Johnson akjohnso...@gmail.com: In addition, there is org.clojure/data.csv which says it works with Clojure 1.2 and 1.3. https://github.com/clojure/data.csv I didn't go first

Re: Currently recommended CSV client, again ?

2011-10-04 Thread David Santiago
They are not related, although clojure-csv was first. I first found out about data.csv existing, and being added to contrib when someone asked a question about it a few weeks ago. Given the number of users, I have no choice but to continue maintaining and improving clojure-csv. David On Tue,

Re: clojure.core.logic.core/match usage

2011-10-04 Thread j1n3l0
I thought that since x matches both the first and third patterns, the third pattern would match better as the value for :a is 1 whereas the value in the first pattern is _? -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: clojure.core.logic.core/match usage

2011-10-04 Thread David Nolen
Pattern matching is always top down and wildcards always match. David On Tue, Oct 4, 2011 at 3:21 PM, j1n3l0 nelo.ony...@gmail.com wrote: I thought that since x matches both the first and third patterns, the third pattern would match better as the value for :a is 1 whereas the value in the

Re: docs for 1.3

2011-10-04 Thread Sean Corfield
On Tue, Oct 4, 2011 at 5:22 AM, Fogus mefo...@gmail.com wrote: Good catch.  That was my fault.  It's now nested under the Core page in the same space. Thanx for the swift update - appreciated! -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC.

Re: Currently recommended CSV client, again ?

2011-10-04 Thread Laurent PETIT
2011/10/4 David Santiago david.santi...@gmail.com: They are not related, although clojure-csv was first. I first found out about data.csv existing, and being added to contrib when someone asked a question about it a few weeks ago. Given the number of users, I have no choice but to continue

Re: Currently recommended CSV client, again ?

2011-10-04 Thread David Santiago
Thanks! Let me know if you need anything along those lines and we'll see what we can do. David On Tue, Oct 4, 2011 at 2:24 PM, Laurent PETIT laurent.pe...@gmail.comwrote: 2011/10/4 David Santiago david.santi...@gmail.com: They are not related, although clojure-csv was first. I first found

How to flatten a nested sequence?

2011-10-04 Thread Shoeb Bhinderwala
(def s1 (seq [s1 (seq [s2 s3]) s4 s5 (seq [s6 (seq [s7 s8]) s9])])) user = s1 (s1 (s2 s3) s4 s5 (s6 (s7 s8) s9)) How to convert s1 to a flat sequence like this: (s1 s2 s3 s4 s5 s6 s7 s8 s9) -- You received this message because you are subscribed to the Google Groups Clojure

Re: How to flatten a nested sequence?

2011-10-04 Thread Jack Moffitt
user = s1 (s1 (s2 s3) s4 s5 (s6 (s7 s8) s9)) How to convert s1 to a flat sequence like this: (s1 s2 s3 s4 s5 s6 s7 s8 s9) (flatten s1) jack. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: How to flatten a nested sequence?

2011-10-04 Thread Michał Marczyk
user= (flatten s1) (s1 s2 s3 s4 s5 s6 s7 s8 s9) Sincerely, Michał -- 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 with

Re: How to flatten a nested sequence?

2011-10-04 Thread Ulises
your subject contains the answer :) sandbox (def s1 (seq [s1 (seq [s2 s3]) s4 s5 (seq [s6 (seq [s7 s8]) s9])])) #'sandbox/s1 sandbox s1 (s1 (s2 s3) s4 s5 (s6 (s7 s8) s9)) sandbox (flatten s1) (s1 s2 s3 s4 s5 s6 s7 s8 s9) sandbox (doc flatten) - clojure.core/flatten ([x])

Re: docs for 1.3

2011-10-04 Thread Sergey Didenko
Thanks, I see now. Just want to stress that it is important to have a single point of diving into the documentation. And it's best of all to be on the http://clojure.org , not just http://dev.clojure.org. IMHO with the call to community to move to 1.3 the current outdated clojure.org can fight

Re: How to flatten a nested sequence?

2011-10-04 Thread Shoeb Bhinderwala
Thanks. Didn't think it would exist in clojure.core. On Oct 4, 4:58 pm, Ulises ulises.cerv...@gmail.com wrote: your subject contains the answer :) sandbox (def s1 (seq [s1 (seq [s2 s3]) s4 s5 (seq [s6 (seq [s7 s8]) s9])])) #'sandbox/s1 sandbox s1 (s1 (s2 s3) s4 s5 (s6 (s7 s8) s9)) sandbox

Re: Using Clojure to Generate Java Source?

2011-10-04 Thread mnicky
reminds me of http://is.gd/shinyscript -- 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 with your first post. To

Re: How to flatten a nested sequence?

2011-10-04 Thread Sean Corfield
On Tue, Oct 4, 2011 at 2:25 PM, Shoeb Bhinderwala shoeb.bhinderw...@gmail.com wrote: Thanks. Didn't think it would exist in clojure.core. I highly recommend trying out Chas Emerick's Clojure Atlas: http://clojureatlas.com - it makes searching for functions AND concepts really easy and provides a

Re: defprotocol problem in 1.3?

2011-10-04 Thread hgreen
Somehow, I just knew someone was going ask why...? :-) A while back, I constructed a little mechanism for defining data types, built on top of the protocol/record/type mechanism. Under certain circumstances, it generates protocols with no methods, basically in situations where it wants to

Re: defprotocol problem in 1.3?

2011-10-04 Thread Gary Poster
On Oct 4, 2011, at 7:40 PM, hgreen wrote: Somehow, I just knew someone was going ask why...? :-) :-) A while back, I constructed a little mechanism for defining data types, built on top of the protocol/record/type mechanism. Under certain circumstances, it generates protocols with no

[Borneo (neo4j)] Doc Testing update needed

2011-10-04 Thread Daniel
Borneo get's bit by this bug: http://lists.neo4j.org/pipermail/user/2011-February/006460.html Here's a simple example: (neo/with-db! playground (let [humans (neo/walk (neo/root) :humans) human-nodes (neo/traverse humans :human)] (map neo/props human-nodes)))

Re: Doc Testing update needed

2011-10-04 Thread Daniel
To add to this, (all-nodes) silently populates an empty list (probably not what the user wants). user= (neo/with-db! playground (neo/all-nodes)) () user= (neo/with-db! playground (doall (neo/all-nodes))) (#NodeProxy Node[0] #NodeProxy Node[1] #NodeProxy Node[2] #NodeProxy Node[3] #NodeProxy

Re: Doc Testing update needed

2011-10-04 Thread Daniel
:sigh: Google removed by [Borneo] tag from the subject heading On Oct 4, 8:39 pm, Daniel doubleagen...@gmail.com wrote: To add to this, (all-nodes) silently populates an empty list (probably not what the user wants). user= (neo/with-db! playground (neo/all-nodes)) () user=

Re: defprotocol problem in 1.3?

2011-10-04 Thread hgreen
Marker interface is the right idea (and I did in fact look it up in Wikipedia last night :-)), but I was trying to avoid saying that. What my stuff is doing is arguably a little different: a Java analogy would be something like defining a new interface that's a composite of several other

Re: defprotocol problem in 1.3?

2011-10-04 Thread Alan Malloy
Doesn't java have kinda-sorta union types now? Like, you could declare a method as: public T extends Closeable Serializable void serializeAndClose(T thing) {...} It seems like marker interfaces are no longer necessary for this sort of thing. Likewise in Clojure, instead of having a

Re: Shameless self promotion - JavaOne

2011-10-04 Thread Dennis
Here is a link to my presentation. http://dl.dropbox.com/u/5831287/JavaOne%202011%20-%20Monitoring%20a%20Large-Scale%20Infrastructure%20with%20Clojure%20FINAL.pptx Sorry about the file format :) Let me know if the link doesn't work. -- Dennis On Tue, Oct 4, 2011 at 10:17 AM, C. Arel

Re: Shameless self promotion - JavaOne

2011-10-04 Thread Leonardo Borges
How about putting it up on slideshare? Pretty sure they can import pptx ;) Cheers, Leonardo Borges www.leonardoborges.com On Wed, Oct 5, 2011 at 3:55 PM, Dennis shr3ks...@gmail.com wrote: Here is a link to my presentation.

Re: Shameless self promotion - JavaOne

2011-10-04 Thread Dennis
Good idea. I am having problems with slideshare displaying the presentation. I probably need to get on another machine to try to convert it to something more useful, and that will take a couple of days. I will post when I do. -- Dennis On Wed, Oct 5, 2011 at 12:05 AM, Leonardo Borges