building with Ant vs building with Maven

2008-12-16 Thread kkw
Hi folks, When I run 'mvn install' from the clojure\trunk directory (svn 1160), Maven creates: 16/12/2008 10:37 PM 519,267 clojure-lang-1.0-SNAPSHOT.jar When I run 'ant' from the clojure\trunk directory (svn 1160), Ant creates: 16/12/2008 10:37 PM 1,393,895 clojure.ja

Re: building with Ant vs building with Maven

2008-12-16 Thread kkw
Thanks Meikel and Dave! Much appreciated. Kev On Dec 17, 12:13 am, Dave Newton wrote: > --- On Tue, 12/16/08, kkw wrote: > > > Since the Ant-built file is bigger, should I build > > using Ant instead of Maven? > > It looks like the Ant build is compiling more; for

Re: FAQ

2008-12-17 Thread kkw
How about: What's the recommended way of getting Clojure up and running? - Download the latest snapshot with SVN - Create the Clojure.jar file with Ant - Test by starting up the REPL with "java -cp clojure.jar clojure.lang.Repl" Kev On Dec 18, 9:24 am, lpetit wrote: > Hello, > > > * Is there a

Re: Clojure blog post about laziness

2009-01-08 Thread kkw
I'd vote for increased priority to reaching 1.0 also because of workplace constraints. Kev On Jan 9, 4:23 am, MikeM wrote: > > Do people want it now? > > I would vote for 1.0 ahead of streams if adding streams now will delay > 1.0. --~--~-~--~~~---~--~~ You recei

Re: what does -> mean?

2009-01-11 Thread kkw
One use I've found for -> (though there are others I haven't come to appreciate yet) is when I have something like: (f1 (f2 (f3 (f4 x which can be re-written as (-> x f4 f3 f2 f1) I find the latter expression easier to read. Kev On Dec 30 2008, 2:49 pm, wubbie wrote: > Very criptic for ne

Re: what does -> mean?

2009-01-12 Thread kkw
iggs"} > >>                     :email "mark.h.tri...@gmail.com"}}] > >>    (-> me :person :name :first)) > > >>  => "Mark" > > >> On Jan 12, 1:04 pm, kkw wrote: > >>> One use I've found for -> (though there are others

purpose of clojure-slim.jar

2009-01-29 Thread kkw
Hi folks, I noticed that when I run 'ant' to build Clojure, in addition to clojure.jar, 'ant' gives birth to clojure-slim.jar. The build.xml says the clojure-slim.jar lacks compiled Clojure code. I don't know what purpose clojure-slim.jar serves. I searched the http://groups.google.com/group

Clojure running atop Java ME (Micro Edition) for mobile phones

2009-01-29 Thread kkw
Hi folks, My question is similar to dokondr's question in http://groups.google.com/group/clojure/browse_thread/thread/42c87abf2b2a0689/b92ca96a14bf52cd?lnk=gst&q=mobile#b92ca96a14bf52cd titled "Running Clojure on Pocket PC": Does anyone have experience and accumulated wisdom using Clojur

Re: purpose of clojure-slim.jar

2009-01-29 Thread kkw
oads them. > > On Thu, Jan 29, 2009 at 4:56 PM, kkw wrote: > > > Hi folks, > > >    I noticed that when I run 'ant' to build Clojure, in addition to > > clojure.jar, 'ant' gives birth to clojure-slim.jar. The build.xml says > > the clojure-sl

Re: what does -> mean?

2009-02-01 Thread kkw
Hi sun, I thought this question looked familiar. I found some answers here also: http://groups.google.com/group/clojure/browse_thread/thread/1f21663ea1ae9f58/ Kev On Feb 2, 2:29 am, Adrian Cuthbertson wrote: > Sorry! That should have read; > (-> m :one :b) > 2 > > > > On Sun, Feb 1, 2009

Re: java.io.IOException: Not enough storage is available to process this command

2009-02-12 Thread kkw
I've copied-and-pasted (not typed in) the following code into the REPL: (str "INSERT ALL" " INTO mdroverffprd.mc_system_user_region (system_user_id, region_code) VALUES ('" 'a "', 'RS01')" " INTO mdroverffprd.mc_system_user_region (system_user_id, region_code) VALUES ('" 'a "', 'RS02')"

Re: Creating executable Jars?

2009-02-14 Thread kkw
Hi Emeka, Did you have success in this? Kev On Jan 29, 10:43 pm, Emeka wrote: > luciofulci I'm interested in your instruction, however, are > c:\user\apps\classes > and c:\user\classes the same thing? > > Emeka --~--~-~--~~~---~--~~ You received this message

Re: count-leaves from onLisp question

2009-02-15 Thread kkw
Hi sun, This sounds related to tree-flattening. If you search the google group with keyword "flatten", I think you'll discover some indirectly useful information. Kev On Feb 16, 3:55 am, wubbie wrote: > So destructuring is essentially  doing (first coll) for each parameter > and the rest i

Re: Creating executable Jars?

2009-02-18 Thread kkw
Hi Emeka, Where Lucio says: "after that I execute this command in the same folder (c:\user \classes): " I had success if I instead followed: "after that I execute this command in the same folder (c:\user\apps \classes): " Adding the c:\user\apps\classes directory to your classpath

Re: Monad tutorial, part 1

2009-03-07 Thread kkw
Hi folks, Whilst we are talking about monads, allow me to direct all and sundry to: http://www.mefeedia.com/tags/brian_beckman Brian Beckman gives a very beautiful description about monads. I find these tutorials very well done. I commend them. Kev On Mar 7, 12:19 am, Konrad Hinsen w

-> vs. comp

2009-03-31 Thread kkw
Hi folks, I have some code where I wanted to: - take a list of stuff (which includes another list inside) - use 'seq-utils/flatten' to flatten the list - use 'interpose' to add comma-delimiting strings between the elements - print out the results, thereby creating comma-delimited output

Re: -> vs. comp

2009-04-01 Thread kkw
Thanks for the feedback everyone! Kev On Apr 1, 11:38 pm, Rayne wrote: > comp seems more appropriate here. > > On Mar 31, 11:52 pm, kkw wrote: > > > Hi folks, > > >     I have some code where I wanted to: > > - take a list of stuff (which includes another

Re: Monads tutorial

2009-04-15 Thread kkw
Hi Jim, Thanks for writing the tutorial! Kev On Apr 16, 2:01 am, jim wrote: > I've just posted a tutorial on using monads in Clojure at > > http://intensivesystems.net/tutorials/monads_101.html > > It's one big chunk of text since I haven't had time to break it up > yet. It's also kind of

Re: clojure.contrib.repl-utils/source: getting "source not found"

2009-04-25 Thread kkw
Hi Sigrid, Was clojure-contrib compiled with a relevant "-Dclojure.jar=" option? For example, ant -Dclojure.jar=/path/to/clojure.jar For what it's worth, I startup a Clojure REPL with: java -cp c:\dl\clojure\clojure.jar;c:\dl\clojure-contrib\clojure- contrib.jar;. clojure.lang.Repl

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

2009-05-04 Thread kkw
Tom, This is a really helpful service. Thank you very much! It's already helped me find stuff in the clojure.contrib.sql package that I didn't have the smarts to originally search. Kev On May 4, 4:30 pm, Tom Faulhaber wrote: > By the way, source of the robot is available on GitHub, for tho

Re: Clojure 1.0

2009-05-04 Thread kkw
Bravo to Rich and all contributors! Kev On May 5, 2:04 am, tmountain wrote: > Congrats! I'm loving Clojure more all the time. Thank you for making > the Lisp I've been waiting for all these years. > > Travis > > On May 4, 8:58 am, Rich Hickey wrote: > > > After a sustained period of API stabil

Re: replacing java + xml (possible java1 demo)

2009-05-27 Thread kkw
Hello, Here's what I've done in times past: (ns process-xml-in-a-file (:require [clojure.zip :as zip]) (:require [clojure.contrib.zip-filter.xml :as zfx]) (:require [clojure.xml :as xml])) ; creating list of all checkable instances (def dev2-cfg-xml (-> "c:/dl/tibsup/Prod_Stg_auto_shutd

Re: accum

2009-06-17 Thread kkw
I only knew about map, apply, and reduce from studying haskell in uni. I've not heard of 'reduce' referred to as 'accum', but then again when I wanted to determine the number of elements in a seq, I kept searching for 'length' and 'size' but didn't think of 'count', so it can be a bit tricky eh? I

Re: What are people using Clojure for?

2009-06-18 Thread kkw
I've used Clojure to partially re-implement Java-based tools we have at our shop written to interface with TIBCO. Clojure has also been used to write a tool to extract electricity+gas metering data from an Oracle DB. In summary, I've used Clojure to write and partially re- implement tools that I n

Re: Which map access is more idiomatic

2009-06-18 Thread kkw
(my-map :my-key) has felt more natural to me, and I suspect it's because it feels more OO to me (for better or worse). I hadn't considered nil-map tolerance/robustness before, so I'd be quite happy to change my mind on new work I write with maps. Kev On Jun 19, 10:13 am, "J. McConnell" wrote: >

sorted-map-by sample call

2009-06-21 Thread kkw
Hi folks, I had some fortune with the sorted-by function: 1:11 user=> (sort-by (fn [e] (second e)) [[1 99] [3 4] [5 6] [7 8]]) ([3 4] [5 6] [7 8] [1 99]) so I thought I'd have a go with sorted-map-by also: 1:13 user=> (doc sorted-map-by) - clojure.core/sorted-ma

Re: sorted-map-by sample call

2009-06-21 Thread kkw
Hi Steve, I didn't know the difference between a keyfn and a comparator. Thanks for pointing that out! Kev On Jun 22, 3:50 pm, "Stephen C. Gilardi" wrote: > On Jun 22, 2009, at 1:23 AM, kkw wrote: > > >    I had some fortune with the sorted-by function: > &

quick question about "ANN:"

2009-06-25 Thread kkw
Hi folks, Occasionally, I see "ANN:" in subject headers to posts here. I've tried to figure out what it means, but have failed. Searches on google haven't been too good either. What does "ANN:" mean? Kev --~--~-~--~~~---~--~~ You received this message because

Re: quick question about "ANN:"

2009-06-25 Thread kkw
Great - thankyou! On Jun 26, 1:59 pm, Richard Newman wrote: > > What does "ANN:" mean? > > "Announcement", I believe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

comment macro not ignoring contents

2009-07-16 Thread kkw
Hi folks, Anyone get the following interesting messages? 1:19 com.kkw.ss=> (comment 1) nil 1:20 com.kkw.ss=> (comment s1) nil 1:21 com.kkw.ss=> (comment 1) nil 1:22 com.kkw.ss=> (comment s) nil 1:23 com.kkw.ss=> (comment s1) nil 1:24 com.kkw.ss=> (comment 1s) java.lang.NumberFormatException:

Re: comment macro not ignoring contents

2009-07-16 Thread kkw
That makes really good sense. Thanks for the clear explanation! Kev On Jul 17, 1:56 pm, Richard Newman wrote: > > 1:24 com.kkw.ss=> (comment 1s) > > java.lang.NumberFormatException: Invalid number: 1s > > java.lang.Exception: Unmatched delimiter: ) > > 1:25 com.kkw.ss=> > > >    Kindly let me k

Re: clojure-contrib on Windows

2010-02-17 Thread kkw
Hi Ram, If you all you want is the latest .jar file, and don't feel the need to compile, consider bypassing the compilation and grab the latest successfully compiled .jar from build.clojure.org. This is what I now do. Kev On Feb 17, 9:51 am, Ram wrote: > I'm having an issue compiling clojur

Re: Tailing a file in Clojure

2010-12-02 Thread kkw
Hi Viksit, For production support, I also wanted to "tail -f" a file on a Windows server with no "tail" facility (no one had installed the Windows Resource Kit yet, and executing the install file myself would've been prohibitive (it's a long story)). However, this Windows server did have Java.

Re: Clojure Editor

2011-03-13 Thread kkw
Hi Shantanu, I found it by going to the "Document" menu, selecting the "Language Mode" sub-list menu option, and selecting the "Clojure" option. Regards, Kevin On Mar 14, 12:49 am, Shantanu Kumar wrote: > Do I need a plugin? I downloaded the stock 2.0.3-1 version of the > editor and it doe

Re: Monad Lessons

2011-03-13 Thread kkw
Hi Brian, Thanks for craeting the videos. They've been the most helpful monad tutorial I've ever followed. I'm looking forward to the next video! Keep up the good work. Kevin On Mar 13, 11:20 am, Brian Marick wrote: > I don't know if this is useful, but I've been doing a series of videos on