Re: Concerns About Pushing Clojure 1.0.0 to Maven Central Repo?

2009-05-06 Thread Laurent PETIT
I also think it makes sense to deposit the whole "battery" : clojureXX.jar clojure-slimXX.jar clojure-sourcesXX.jar 2009/5/7 Josh Daghlian : > > If you do push clojure-1.0.0.jar, please also add the sources jar; > it's especially annoying when one has to set up sources jars manually > (in intelli

Re: Problems with Kevin O'Neills Clojure GitHub Mirror

2009-05-06 Thread Kevin O'Neill
Branches and tags are now being mirrored. -k. On Thu, May 7, 2009 at 1:41 PM, Kevin O'Neill wrote: > I'll look into it. I mirror branches for other projects and i'm sure > this will be fairly straight forward. > > -k. > > On Tue, May 5, 2009 at 9:05 PM, Rick Moynihan > wrote: >> >> Yesterday I

Re: Clojure used in Finance?

2009-05-06 Thread Justin Henzie
Interesting question that I have been pondering myself. In the absence of specific evidence to the contrary I think that both languages are worthy of consideration but I think that perhaps the static typing of scala may be more compelling. Just my opinion though. On May 5, 8:11 pm, blais wrote

Re: anyone else think (take) is backwards?

2009-05-06 Thread e
I meant "as in (take 3)" On Thu, May 7, 2009 at 12:10 AM, e wrote: > thanks.  after reading that it seems to fit with my intuition that it > has to do with "laziness" and streams.  It's like I have this '3, and > in (take 3 ...)  . . .and now I'm gonna start jamming a sequence into > it coming f

Re: anyone else think (take) is backwards?

2009-05-06 Thread e
thanks. after reading that it seems to fit with my intuition that it has to do with "laziness" and streams. It's like I have this '3, and in (take 3 ...) . . .and now I'm gonna start jamming a sequence into it coming from right to left and see what I get. vs. (get) or java interop, where you h

Re: Problems with Kevin O'Neills Clojure GitHub Mirror

2009-05-06 Thread Kevin O'Neill
I'll look into it. I mirror branches for other projects and i'm sure this will be fairly straight forward. -k. On Tue, May 5, 2009 at 9:05 PM, Rick Moynihan wrote: > > Yesterday I noticed that the github mirror I'd been using at: > > http://github.com/kevinoneill/clojure/tree/master > > Does no

Re: Concerns About Pushing Clojure 1.0.0 to Maven Central Repo?

2009-05-06 Thread Josh Daghlian
If you do push clojure-1.0.0.jar, please also add the sources jar; it's especially annoying when one has to set up sources jars manually (in intellij or whatever) by manually downloading the source and depositing it somewhere safe on the filesystem when maven could be doing it for me. Thanks! --j

Re: Feedback on new persistentmatrix datatype

2009-05-06 Thread Adrian Cuthbertson
If you haven't seen it yet, the set module (clojure.set) provides a basic implementation of set relational algebra. May be useful for this work? See clojure.org data structures and the source for clojure/set.clj in the clojure source. Rgds, Adrian. On Wed, May 6, 2009 at 7:05 PM, Anand Patil w

Re: anyone else think (take) is backwards?

2009-05-06 Thread Stephen C. Gilardi
On May 6, 2009, at 10:11 PM, e wrote: is the difference that (take) is indicating laziness by putting the index first? On Wed, May 6, 2009 at 10:09 PM, e wrote: (take) makes perfect sense the way it is, but it doesn't seem consistent with other similar things in that many things take the co

Re: HTTP clients in clojure

2009-05-06 Thread Phil Hagelberg
Eric Tschetter writes: > Last I checked the various clojure libraries, it seemed like noone has > publicized a set of wrappers/clojure-native implementation of an http > client. I'm wonder if such a thing exists, or has everyone basically > just rolled their own wrapper on top of their favorite

Re: HTTP clients in clojure

2009-05-06 Thread Shawn Hoover
I was recently tipped off to this nascent project: http://github.com/technomancy/clojure-http-client/tree/master On Wed, May 6, 2009 at 8:34 PM, Eric Tschetter wrote: > > Last I checked the various clojure libraries, it seemed like noone has > publicized a set of wrappers/clojure-native implemen

Re: HTTP clients in clojure

2009-05-06 Thread Brian Doyle
I wrote clj-web-crawler which wraps the Apache commons client library and made it suck a little bit less. I haven't tested it out with the Clojure 1.0 release just yet, but I'll do that tonight. http://github.com/heyZeus/clj-web-crawler/tree/master On Wed, May 6, 2009 at 7:16 PM, Chris Dean wr

Re: anyone else think (take) is backwards?

2009-05-06 Thread e
is the difference that (take) is indicating laziness by putting the index first? On Wed, May 6, 2009 at 10:09 PM, e wrote: > (take) makes perfect sense the way it is, but it doesn't seem > consistent with other similar things in that many things take the > collection, first. > > consider (get),

anyone else think (take) is backwards?

2009-05-06 Thread e
(take) makes perfect sense the way it is, but it doesn't seem consistent with other similar things in that many things take the collection, first. consider (get), (nth), and how java interop looks. The pattern seems to be: "(function thing argument)" ... except for (take) -- and maybe other cas

Re: HTTP clients in clojure

2009-05-06 Thread Chris Dean
Eric Tschetter writes: > Last I checked the various clojure libraries, it seemed like noone has > publicized a set of wrappers/clojure-native implementation of an http > client. There is (slurp* url) and (reader url) in clojure.contrib.duck-streams (count (slurp* "http://google.com";)) =

Re: HTTP clients in clojure

2009-05-06 Thread Raoul Duke
> client.  I'm wonder if such a thing exists, or has everyone basically > just rolled their own wrapper on top of their favorite Java HTTP > client library? i dunno. but, for possible cribbing, there's a Scala wrapper around HttpClient, which supposedly makes it all Suck Less. e.g. http://techn

HTTP clients in clojure

2009-05-06 Thread Eric Tschetter
Last I checked the various clojure libraries, it seemed like noone has publicized a set of wrappers/clojure-native implementation of an http client. I'm wonder if such a thing exists, or has everyone basically just rolled their own wrapper on top of their favorite Java HTTP client library? --Eri

Re: clojure.contrib.test-is/run-tests throws NullPointerException w/ invalid args

2009-05-06 Thread Stuart Sierra
On May 5, 2:05 pm, Timo Mihaljov wrote: > When clojure.contrib.test-is/run-tests is given an invalid argument, it > throws a NullPointerException: Fixed! -SS --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure"

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread Luke VanderHart
On May 6, 4:39 am, dhs827 wrote: >  I realize now that there is no quick fix, and I'll have to learn a > lot to do this properly. But are there already enough resources so > that I can learn how to do it in Clojure? For example, would there be > enough about string processing in "Programming Cl

Concerns About Pushing Clojure 1.0.0 to Maven Central Repo?

2009-05-06 Thread Stefan Hübner
Hi all, Since Clojure now has a stable 1.0.0 I would like to take a step forward and push it to Maven's Central Repo at http://repo1.maven.org/maven2/. This would allow people using Maven to integrate Clojure more easily, since no 3rd party repo wouldn't be involved anymore. I'm going to follow

Re: Feedback on new persistentmatrix datatype

2009-05-06 Thread Anand Patil
On Sat, May 2, 2009 at 11:19 PM, aperotte wrote: > > Hello everyone, > > I just uploaded some of my work on a new datatype for clojure to a git > repository. > > http://github.com/aperotte/persistentmatrix > > A bit of the rationale and motivation for the datatype is described on > the github pag

Re: Help: Newbie question get contributed libraries to work

2009-05-06 Thread Leotis buchanan
David, I am using emacs with no slime, I have tried enclojure+netbeans, but prefer emacs because of its low resource requirement. On Tue, May 5, 2009 at 6:16 PM, David Nolen wrote: > What environment are you using? VimClojure? Emacs+SLIME? > I will say that Enclojure+NetBeans does make things r

Re: Printing to REPL from other threads in Slime

2009-05-06 Thread Shawn Hoover
On Tue, May 5, 2009 at 11:18 PM, Mark Engelberg wrote: > > I'm using Clojure Box's Emacs/Slime setup. When I invoke println > from a newly-spun thread, I don't see the output in the REPL. > > Suggestions? > It's going to the *inferior-lisp* buffer. If you run M-x slime-redirect-inferior-output

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread dhs827
Daniel Lyons wrote: > I hope I misunderstood the phrase "explicit non-matches", because I   > believe that problem is intractable, or at least leads to   > unpleasantries like negation of the expression "foo" being "[^f]|[^f] > [^o]|[^f][^o][^o]|f[^o]|fo[^o]|f$|fo$|^$", which I'm not even sure  

Re: Help: Newbie question get contributed libraries to work

2009-05-06 Thread liebke
For Incanter, there is a shell script that starts the REPL (bin/clj), setting the classpath to include all the necessary jars. Take a look at that to see how to set the classpath. In addition to incanter.jar, you'll need to include the Parallel Colt jars, and the JFreeChart jar. Good luck, David

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread Daniel Lyons
On May 6, 2009, at 1:57 AM, dhs827 wrote: > 2. Would it be better (or even possible) to learn about matching and > string processing in general, independent of the programming language? > > I know about regex, but that's not enough: I need to learn about > "matching in context", where "context" m

Re: Got a Clojure user group?

2009-05-06 Thread Daniel Lyons
I am a member of Albuquerque Lisp/Scheme, which is a haven for all kinds of FP language users. We hosted a presentation last month about Clojure and now that I'm a convert I think it's safe to assume it will be coming up quite a bit at future meetings. (I'll see about adding Clojure to the

Clojure used in Finance?

2009-05-06 Thread blais
Hi, I've been fiddling LISP for a long time, and was never that enthousiastic about "Java the language" despite the large number and breadth of its libraries (in my view the libraries are the best part about it, the language itself is rather limited). So I'm finding Clojure (and the idea of a JV

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread dhs827
Adrian Cuthbertson wrote: > There are two excellent clojure > tutorials on monads which would be good starting points; Thanks, I bet that'll be useful, too. I already have a rough understanding of what monads do, so having them presented in the context of Clojure may help me. Dirk --~--~---

Re: The Santa Claus Problem

2009-05-06 Thread bOR_
Ah. I guess the elves should be a bit more then just a number, and perhaps be agents themselves, that come to santa with a {:toy :broken} and leave with a {:toy :fixed}, if we want the santa problem to be bit more applicable in reality. What is everyone assuming that the program should do at minim

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread dhs827
Luke VanderHart wrote: > It actually sounds very like the classic exercise of building a logic- > based language similar to Prolog in Scheme or Lisp, only with an AI/ > pattern matching functionality instead of a logic resolution engine. Exactly - I'm doing much of the logic directly in the patt

Re: The Santa Claus Problem

2009-05-06 Thread bOR_
Why isn't this enough for the problem? Elves and deer are entering Santa's frontdoor 1 at a time, when there is three elves in the room, santa instantly deals with them (resetting the number of elves to 0), when there is 9 deer in the room, santa goes sleighing. (def santa (agent {:elves 0 :deer

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread Adrian Cuthbertson
>2. Would it be better (or even possible) to learn about matching and >string processing in general, independent of the programming language? Hi Dirk, it's a pretty advanced topic and quite difficult to get one's head around (at least for me), but monads (both clojure and in general) may be of in

Re: Writer turned programmer seeks string processing advice

2009-05-06 Thread dhs827
Thanks for your suggestion, Stuart, and yes, that's one obvious chice: the AIML interpreter in question - Program D - is written in Java, so why not just learn enough Java to fix the stack, and be done? In fact, this was my first consideration. However, that would be myopic. The reason I have thi

Re: The Santa Claus Problem

2009-05-06 Thread bOR_
> When writing this code, I found the watcher system a bit clunky to > use, and a bit too heavyweight for what I needed.  Sometimes, within a > dosync block, you want to trigger some sort of side effect once the > current transaction is committed.  To make this easy, I would very > much like to s

Re: ANN: Full, continuously updated documentation for clojure.contrib

2009-05-06 Thread Tom Faulhaber
Yeah, no doubt. However the goal of this project was not to develop a new, more sophisticated mechanism for documentation, but rather to expose what was already available. The discussion you bring up is more of a language discussion (in the sense of supporting a more 'literate' style over the mo

Re: clojure.contrib.test-is/run-tests throws NullPointerException w/ invalid args

2009-05-06 Thread Timo Mihaljov
Stuart Sierra wrote: > On May 5, 2:05 pm, Timo Mihaljov wrote: >> When clojure.contrib.test-is/run-tests is given an invalid argument, it >> throws a NullPointerException: > > Yes, I'm aware of this, will try to fix. > -SS Thank you! -- Timo --~--~-~--~~~---~--~---