Re: clojure-contrib master now in submodules
On Mon, Aug 23, 2010 at 07:04, ataggart wrote: > Yes, you can easily work offline. Simply recursively wget the entire > maven repo from http://repo1.maven.org/maven2/ > > It may take a while. Whatever you do, please DO NOT DO THAT! e.g. http://maven.40175.n5.nabble.com/blacklisted-by-maven-central-repo-and-mirrors-td1045810.html Jason van Zyl-2 Jul 10, 2010; 01:43pm: # No typical usage pattern of Maven, even by a large number of developers, generally # doesn't get you blocked. ***We have heuristics, at least on Maven Central, that detects # scrapers and that will get you instantly blacklisted.*** Sometimes it's a developers within # an organization trying to grab the entire repository without anyone else in the # organization knowing. # # You should definitely use a repository, like Nexus, and privately send me your IP # and I can tell you the behavior that got you blocked from central, if indeed you have # been blocked. (emphasis mine) > Before going into full-on DVCS evangelist mode, you should probably > step back and realize that maven is acting as a dependency management > system, not a source code repository. And yes, maven does cache > dependencies once they're pulled. > > P.S. Please don't change the subject line; google groups is "smart" > enough to recognize that this is the same thread and just renames the > title displayed in the discussions list, thus many (myself included) > might have missed Stuart's announcement. > > > > On Aug 22, 1:43 am, Tim Daly wrote: >> The fact that Maven uses http bit me today. >> I was working offline in a coffee shop, >> Maven tried to download something dynamically >> and failed. End of my development work. >> >> A git-based version of the system would be much >> more useful (I know, I'm living in a backwater >> country without proper internet but...). >> >> Disk space is cheap. I have a 2T external drive. >> Bandwith is not cheap and my time, at least to me, >> is very expensive. I'd like to just do a git clone >> of Clojure and be able to work anywhere. >> >> Mavens use of http takes me all the way back to a >> CVS/SVN situation where there are certain operations >> I cannot do unless I'm connected. It's the late 90s >> and this shouldn't be a blocking issue anymore. >> >> Can I git-clone Maven so it will reach for a local repo? >> Can I git-clone Clojure with a standalone build system? >> >> Tim Daly >> >> >> >> B Smith-Mannschott wrote: >> > On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott < bsmith.o...@gmail.com> wrote: >> >> >> Maven uses http, so one can download the various modules of clojure >> >> contrib via a web browser. Snapshot builds are here: >> >> >>http://build.clojure.org/snapshots/org/clojure/contrib/ >> >> >> i.e. >> >> >>http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION >> >> >> The old monolithic clojure-contrib.jar is now >> >> org.clojure.contrib/complete.jar you can find snapshot builds of it >> >> here: >> >> >>http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0. .. >> >> > Important detail: the one you want is the jar-with-dependencies variant. >> >> > Note: this jar contains not only all modules of clojure-contrib, but >> > also a complete copy of clojure 1.2.0. >> >> > I don't know if that's the intention. I could write a patch that >> > generates a 'complete' variant without clojure 1.2.0, if anyone's >> > interested. >> >> >> hth, >> >> Ben >> >> >> On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber wrote: >> >> >>> A couple of questions: >> >> >>> 1) Does use of clojure-contrib now require maven or leinigen as a >> >>> prerequisite or is there a place to go grab the jar files? >> >>> 2) From my read of this, there is no longer a clojure-contrib.jar, >> >>> just a meta dependency that causes maven to grab all the modules. Is >> >>> that correct? >> >> >>> Tom >> >> >>> On Aug 20, 7:22 am, Stuart Sierra wrote: >> >> Hello, all, >> >> As planned for some time, clojure-contrib has now been split into many >> submodules on the "master" branch. >> >> *** For users of clojure-contrib 1.2.0: nothing changes. >> >> *** For users of clojure-contrib snapshots: >> >> New builds of the master branch on github will be available as 1.3.0- >> SNAPSHOT versions. Each major contrib library has its own module with >> the groupId "org.clojure.contrib" and an artifactId which is the name >> of the library. >> >> For example, to use the clojure.contrib.macro-utils namespace in your >> projects, add a dependency on group "org.clojure.contrib", artifact >> "macro-utils", version "1.3.0-SNAPSHOT". >> >> In Leiningen syntax, this looks like: >> >> :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- >> SNAPSHOT"] ...] >> >> In Maven syntax, this looks like: >> >> >> ... >> >> org.clojure.contrib >> macro-utils >> 1.3.0-SNAPSHOT >> >> >>
clojure-contrib master now in submodules
Yes, you can easily work offline. Simply recursively wget the entire maven repo from http://repo1.maven.org/maven2/ It may take a while. Before going into full-on DVCS evangelist mode, you should probably step back and realize that maven is acting as a dependency management system, not a source code repository. And yes, maven does cache dependencies once they're pulled. P.S. Please don't change the subject line; google groups is "smart" enough to recognize that this is the same thread and just renames the title displayed in the discussions list, thus many (myself included) might have missed Stuart's announcement. On Aug 22, 1:43 am, Tim Daly wrote: > The fact that Maven uses http bit me today. > I was working offline in a coffee shop, > Maven tried to download something dynamically > and failed. End of my development work. > > A git-based version of the system would be much > more useful (I know, I'm living in a backwater > country without proper internet but...). > > Disk space is cheap. I have a 2T external drive. > Bandwith is not cheap and my time, at least to me, > is very expensive. I'd like to just do a git clone > of Clojure and be able to work anywhere. > > Mavens use of http takes me all the way back to a > CVS/SVN situation where there are certain operations > I cannot do unless I'm connected. It's the late 90s > and this shouldn't be a blocking issue anymore. > > Can I git-clone Maven so it will reach for a local repo? > Can I git-clone Clojure with a standalone build system? > > Tim Daly > > > > B Smith-Mannschott wrote: > > On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott > > wrote: > > >> Maven uses http, so one can download the various modules of clojure > >> contrib via a web browser. Snapshot builds are here: > > >>http://build.clojure.org/snapshots/org/clojure/contrib/ > > >> i.e. > > >>http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION > > >> The old monolithic clojure-contrib.jar is now > >> org.clojure.contrib/complete.jar you can find snapshot builds of it > >> here: > > >>http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0... > > > Important detail: the one you want is the jar-with-dependencies variant. > > > Note: this jar contains not only all modules of clojure-contrib, but > > also a complete copy of clojure 1.2.0. > > > I don't know if that's the intention. I could write a patch that > > generates a 'complete' variant without clojure 1.2.0, if anyone's > > interested. > > >> hth, > >> Ben > > >> On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber > >> wrote: > > >>> A couple of questions: > > >>> 1) Does use of clojure-contrib now require maven or leinigen as a > >>> prerequisite or is there a place to go grab the jar files? > >>> 2) From my read of this, there is no longer a clojure-contrib.jar, > >>> just a meta dependency that causes maven to grab all the modules. Is > >>> that correct? > > >>> Tom > > >>> On Aug 20, 7:22 am, Stuart Sierra wrote: > > Hello, all, > > As planned for some time, clojure-contrib has now been split into many > submodules on the "master" branch. > > *** For users of clojure-contrib 1.2.0: nothing changes. > > *** For users of clojure-contrib snapshots: > > New builds of the master branch on github will be available as 1.3.0- > SNAPSHOT versions. Each major contrib library has its own module with > the groupId "org.clojure.contrib" and an artifactId which is the name > of the library. > > For example, to use the clojure.contrib.macro-utils namespace in your > projects, add a dependency on group "org.clojure.contrib", artifact > "macro-utils", version "1.3.0-SNAPSHOT". > > In Leiningen syntax, this looks like: > > :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- > SNAPSHOT"] ...] > > In Maven syntax, this looks like: > > > ... > > org.clojure.contrib > macro-utils > 1.3.0-SNAPSHOT > > ... > > > If you want to use ALL contrib libraries, add a dependency on group > "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT". > This meta-library depends on all other contrib libraries. > > *** For clojure-contrib developers: > > Each library has its own directory under the "modules" directory at > the top level of clojure-contrib. Each module directory contains a > pom.xml file specifying the name, version number, and dependencies of > that library. > > Every module pom.xml declares a "parent" located in the modules/parent > directory. The parent pom.xml file defines configuration settings > common to all clojure-contrib libraries. Currently the parent pom.xml > declares a dependency on Clojure 1.2.0 and sets up clojure-maven- > plugin to compile and test Clojure sources. > > Individual libraries may override the parent configurati
Re: git clone Clojure/Maven?
We use archiva to proxy accesses to external repos (central, clojar, ...) Very simple to deploy and to use and it does the job. We looked at nexus but found it more complex to use for our limited needs. I use an instance on my laptop to pull what I need from our central location and keep it in cache. Luc P. Tim Daly wrote .. > The fact that Maven uses http bit me today. > I was working offline in a coffee shop, > Maven tried to download something dynamically > and failed. End of my development work. > > A git-based version of the system would be much > more useful (I know, I'm living in a backwater > country without proper internet but...). > > Disk space is cheap. I have a 2T external drive. > Bandwith is not cheap and my time, at least to me, > is very expensive. I'd like to just do a git clone > of Clojure and be able to work anywhere. > > Mavens use of http takes me all the way back to a > CVS/SVN situation where there are certain operations > I cannot do unless I'm connected. It's the late 90s > and this shouldn't be a blocking issue anymore. > > Can I git-clone Maven so it will reach for a local repo? > Can I git-clone Clojure with a standalone build system? > > Tim Daly > > B Smith-Mannschott wrote: > > On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott > > wrote: > > > >> Maven uses http, so one can download the various modules of clojure > >> contrib via a web browser. Snapshot builds are here: > >> > >> http://build.clojure.org/snapshots/org/clojure/contrib/ > >> > >> i.e. > >> > >> http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION > >> > >> The old monolithic clojure-contrib.jar is now > >> org.clojure.contrib/complete.jar you can find snapshot builds of it > >> here: > >> > >> http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0-SNAPSHOT/ > >> > > > > Important detail: the one you want is the jar-with-dependencies variant. > > > > Note: this jar contains not only all modules of clojure-contrib, but > > also a complete copy of clojure 1.2.0. > > > > I don't know if that's the intention. I could write a patch that > > generates a 'complete' variant without clojure 1.2.0, if anyone's > > interested. > > > > > > > >> hth, > >> Ben > >> > >> > >> On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber > >> wrote: > >> > >>> A couple of questions: > >>> > >>> 1) Does use of clojure-contrib now require maven or leinigen as a > >>> prerequisite or is there a place to go grab the jar files? > >>> 2) From my read of this, there is no longer a clojure-contrib.jar, > >>> just a meta dependency that causes maven to grab all the modules. Is > >>> that correct? > >>> > >>> Tom > >>> > >>> On Aug 20, 7:22 am, Stuart Sierra wrote: > >>> > Hello, all, > > As planned for some time, clojure-contrib has now been split into many > submodules on the "master" branch. > > *** For users of clojure-contrib 1.2.0: nothing changes. > > *** For users of clojure-contrib snapshots: > > New builds of the master branch on github will be available as 1.3.0- > SNAPSHOT versions. Each major contrib library has its own module with > the groupId "org.clojure.contrib" and an artifactId which is the name > of the library. > > For example, to use the clojure.contrib.macro-utils namespace in your > projects, add a dependency on group "org.clojure.contrib", artifact > "macro-utils", version "1.3.0-SNAPSHOT". > > In Leiningen syntax, this looks like: > > :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- > SNAPSHOT"] ...] > > In Maven syntax, this looks like: > > > ... > > org.clojure.contrib > macro-utils > 1.3.0-SNAPSHOT > > ... > > > If you want to use ALL contrib libraries, add a dependency on group > "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT". > This meta-library depends on all other contrib libraries. > > *** For clojure-contrib developers: > > Each library has its own directory under the "modules" directory at > the top level of clojure-contrib. Each module directory contains a > pom.xml file specifying the name, version number, and dependencies of > that library. > > Every module pom.xml declares a "parent" located in the modules/parent > directory. The parent pom.xml file defines configuration settings > common to all clojure-contrib libraries. Currently the parent pom.xml > declares a dependency on Clojure 1.2.0 and sets up clojure-maven- > plugin to compile and test Clojure sources. > > Individual libraries may override the parent configuration in their > own pom.xml files. > > Building all of clojure-contrib (by running "mvn install" at the top > level) can take over 10 minutes. Fo
Re: Leiningen documentation error
On Sun, Aug 22, 2010 at 12:00 PM, Arie van Wingerden wrote: > On this leiningen doc webpage > http://github.com/technomancy/leiningen/blob/master/sample.project.clj there > is an entry: > >:main [org.example.sample] > > > but this should be: > >:main org.example.sample Thanks; just fixed it. Good catch! -Phil -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: AOT compilation newbie mistakes
On Aug 22, 3:06 pm, Robert McIntyre wrote: > I feel like a lot of people have trouble with this (I certainly do!) > so I made this tutorial with working examples to follow. Thanks $ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar - Dclojure.compile.path=. clojure.main Clojure 1.2.0 user=> (compile 'clojure.examples.hello) clojure.examples.hello $ /usr/local/src/jdk1.6.0_18/bin/java -cp clojure.jar clojure.examples.hello Fred Hello Fred! Is there are reason not to simplify further? $ cat hello.clj (ns hello (:gen-class)) (defn -main [greetee] (println (str "Hello " greetee "!"))) $ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar - Dclojure.compile.path=. clojure.main Clojure 1.2.0 user=> (compile 'hello) hello $ /usr/local/src/jdk1.6.0_18/bin/java -cp clojure.jar hello John Hello John! -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Unexpected FileNotFoundException
Note also that the locations have moved: http://clojure.github.com/clojure/ http://clojure.github.com/clojure-contrib/ On Aug 22, 6:18 pm, Stuart Campbell wrote: > On 21 August 2010 08:39, Tim McIver wrote: > > > Can someone help clear up my confusion? > > > My problem started while working through Stuart Halloway's book (p. > > 52) where he builds up his 'index-filter' function. This function > > uses an 'indexed' function which he states is in clojure-contrib. The > > API docs found on clujure-contrib's github page shows that 'indexed' > > is found in 'clojure.contrib.seq.' Stuart Campbell's response (below) > > gives a link to a different API doc which does not contain a > > 'clojure.contrib.seq' package. I found the 'indexed' function in the > > seq-utils package and so it looked like it was moved at some point. > > So my question is: is the documentation on the github page wrong or am > > I confused about the various versions and/or branches of clojure- > > contrib? > > I think the documentation you're referring to > (http://richhickey.github.com/clojure-contrib/) reflects the master branch > (i.e. contrib 1.2). The documentation I linked to shows the 1.1 docs. > > It seems that c.c.seq was added post-1.1. > > You can switch between branches using the links at the top-left corner of > the documentation page. > > Hope that helps, > > Regards, > Stuart -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Unexpected FileNotFoundException
On 21 August 2010 08:39, Tim McIver wrote: > Can someone help clear up my confusion? > > My problem started while working through Stuart Halloway's book (p. > 52) where he builds up his 'index-filter' function. This function > uses an 'indexed' function which he states is in clojure-contrib. The > API docs found on clujure-contrib's github page shows that 'indexed' > is found in 'clojure.contrib.seq.' Stuart Campbell's response (below) > gives a link to a different API doc which does not contain a > 'clojure.contrib.seq' package. I found the 'indexed' function in the > seq-utils package and so it looked like it was moved at some point. > So my question is: is the documentation on the github page wrong or am > I confused about the various versions and/or branches of clojure- > contrib? > I think the documentation you're referring to ( http://richhickey.github.com/clojure-contrib/) reflects the master branch (i.e. contrib 1.2). The documentation I linked to shows the 1.1 docs. It seems that c.c.seq was added post-1.1. You can switch between branches using the links at the top-left corner of the documentation page. Hope that helps, Regards, Stuart -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: git clone Clojure/Maven?
Maven isn't really analogous to git for the most part. Having a complete history of a source code repository isn't a big deal thanks to delta compression; keeping a complete history of every artifact ever built would just be colossal. One helpful tip though, is: mvn dependency:go-offline That will download everything you need to build the current project, including all dependencies. -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: why data structure
Belun wrote: > why does everything have to be a data structure ? like (operation > parameter parameter ...) I assume you can see why parameters are data structures (or just plain data, if you want speed). Operations - or function calls - are data structures because it makes sense. Especially in Lisp, because you want as little abstraction between the language implementation and the source code as possible in a Lisp. And you want that because it makes writing the language in itself easier. -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: AOT compilation newbie mistakes
On Aug 22, 3:06 pm, Robert McIntyre wrote: > I feel like a lot of people have trouble with this (I certainly do!) > so I made this tutorial with working examples to follow. > this is by default the $PROJECT-DIR/classes folder Is there a way to set that default to something else? Maybe using -Dclojure.compile.path= -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: AOT compilation newbie mistakes
On Sun, Aug 22, 2010 at 2:39 PM, Isaac Gouy wrote: > 2) How can I AOT compile Clojure files without using the REPL? on this point, I think most people use build tools to do it. gradle with clojuresque plugin, lein and mvn with clojure plugin will all do this. -- Omnem crede diem tibi diluxisse supremum. -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why the mix of dot syntax in clojure.core?
> > >Robert McIntyre Aug 21 03:58PM -0700 > ^<#12a9b8804b609349_digest_top> > >I am curious as to why first (and other functions) are defined in >core as: > >(def >^{:arglists >'([coll]) >:doc "Returns the first item in the collection. Calls seq on >its >argument. If coll is nil, returns >nil." >:added >"1.0"} >first (fn first [coll] (. clojure.lang.RT (first coll > >instead of: > >(def >^{:arglists '([coll]) >:doc "Returns the first item in the collection. Calls seq on its >argument. If coll is nil, returns nil." >:added "1.0"} >first (fn first [coll] (clojure.lang.RT/first coll))) > >When the general consensus seems to be that the latter is more >idiomatic/readable, especially for beginners? > >--Robert McIntyre > > > > >Legilimens Aug 21 08:39PM -0400 > ^<#12a9b8804b609349_digest_top> > >Apparently this is indeed an older holdover and the . calls are slowly >being replaced with / as people make edits according to chouser. > >Would people be interested in a patch that replaces all of the older >static calls using . to the newer method using / ? > >--Robert McIntyre > > > > > +1 for the patch -- Adam -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: cool compiler-project?
What about automatic memoization? Does clojure already implement memoization? is adding auto memoization to the compiler a good idea? -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: AOT compilation newbie mistakes
I feel like a lot of people have trouble with this (I certainly do!) so I made this tutorial with working examples to follow. it's at: http://www.rlmcintyre.com/iassac-gouy.tar.bz2 or http://www.bortreb.com/iassac-gouy.tar.bz2 just unpack it into your home directory , read the README, and play around. It shows how to compile stuff from the command line and the REPL and how to make shell-scripts. happy coding, --Robert McIntyre On Sun, Aug 22, 2010 at 2:39 PM, Isaac Gouy wrote: > $ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar clojure.main > Clojure 1.2.0 > user=> (compile 'clojure.examples.hello) > java.io.IOException: No such file or directory (hello.clj:1) > > > $ ls clojure/examples > hello.clj > > > $ cat clojure/examples/hello.clj > (ns clojure.examples.hello > (:gen-class)) > > (defn -main > [greetee] > (println (str "Hello " greetee "!"))) > > > 1) What do I need to do to have the REPL find hello.clj ? > > 2) How can I AOT compile Clojure files without using the REPL? > > -- > 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 unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Simple Regex Question
Haha. No I'm not trying to solve the correspondence problem. I'm writing a simple parser for a toy language that I'm working on. Thanks for everyone's help! -Patrick On Aug 22, 4:34 am, Luka Stojanovic wrote: > On Sunday 22 August 2010 01:11:38 CuppoJava wrote: > > > > > > > Hi Everyone, > > > I'm extremely stuck on this simple regex question, which I'm sure > > someone with a little more experience will be able to write in a > > second. I would really appreciate the help. > > > Given a string consisting of a's, b's, and spaces: "aaa bbb abb ab > > bb" > > > I want to tokenize this into string's of a's and b's. > > eg. "aaa", "bbb", "a", "bb", "a", "b", "bb" > > > AND also, I have to be able to tell which of the strings of b's was > > preceded with an "a", and which was preceded by a space. > > > Thanks a lot for your help > > -Patrick > > You are not trying to solve this one: > > http://www.loopycode.com/a-surprisingly-hard-problem-post-corresponde... > > aren't you? > :) -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: why data structure
On Sun, Aug 22, 2010 at 3:30 AM, Belun wrote: > why does everything have to be a data structure ? like (operation > parameter parameter ...) because people got lazy and didn't implement m-exprs? :-) sincerely. -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Leiningen documentation error
On this leiningen doc webpage http://github.com/technomancy/leiningen/blob/master/sample.project.clj there is an entry: :main [org.example.sample] but this should be: :main org.example.sample hth -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
AOT compilation newbie mistakes
$ /usr/local/src/jdk1.6.0_18/bin/java -cp .:clojure.jar clojure.main Clojure 1.2.0 user=> (compile 'clojure.examples.hello) java.io.IOException: No such file or directory (hello.clj:1) $ ls clojure/examples hello.clj $ cat clojure/examples/hello.clj (ns clojure.examples.hello (:gen-class)) (defn -main [greetee] (println (str "Hello " greetee "!"))) 1) What do I need to do to have the REPL find hello.clj ? 2) How can I AOT compile Clojure files without using the REPL? -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: does clojure take advantage of multicore
On Aug 22, 2010, at 17:48 , Belun wrote: > does clojure take advantage of my multicore processor ? if i write a > program (not using multiple threads) that is going to take 1 day in a > java environment, then will my program run 4 times faster on my 4 core > processor if i build it in clojure ? Hi Belun, the short answer is: no, yes and perhaps. Now for the details: No: because, if you port the algorithm 1:1 from java to clojure it will take longer then 1 day, clojure still has a slight overhead to pure Java, Yes: If you rewrite your algorithm to clojure logic and leverage the concurrency features it provides it will be faster and clojure will use all your cores as good as it can. Note that the work you need to put into making it work on more cores in clojure is way less then in Java, depending on your case it can be as simple as adding a p to make map pmap. Perhaps: Since this is a very general question it can't really be answered, there are algorithms that can't be paralellized, in that case no language in the world will help you, there are others that are not efficiently paralellized in which case you might only see a slight improvement and then are those where you can perfectly put the work on 4 cores which means you will only need 1/4th of the time and if you're really lucky your clojure code is even more efficient then your Java code but in the end only you can answer your question :) Regards, Heinz -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
does clojure take advantage of multicore
does clojure take advantage of my multicore processor ? if i write a program (not using multiple threads) that is going to take 1 day in a java environment, then will my program run 4 times faster on my 4 core processor if i build it in clojure ? -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: why data structure
On Sun, Aug 22, 2010 at 11:30 AM, Belun wrote: > why does everything have to be a data structure ? like (operation > parameter parameter ...) Because it makes really easy to do meta-programming. If you want to generate some code, it is easier to do so if you just have to construct a data structure. And it is very regular and easy to learn and remember. -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: why data structure
On Sun, Aug 22, 2010 at 12:30, Belun wrote: > why does everything have to be a data structure ? like (operation > parameter parameter ...) Because Clojure is a Lisp. Lisps are homoiconic [1]. Clojure wouldn't be a Lisp if programs weren't data. [1] http://en.wikipedia.org/wiki/Homoiconicity // Ben -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: git clone Clojure/Maven?
On Sun, Aug 22, 2010 at 10:43, Tim Daly wrote: > The fact that Maven uses http bit me today. > I was working offline in a coffee shop, > Maven tried to download something dynamically > and failed. End of my development work. This smells a little like the problem we had when the amateurs at my $JOB installed a company-wide proxy, which cheerfully responded to attempts to GET inaccessible URLs, not with a 404, but with a successful status code an an HTML page explaining that the resource was not available. (Obviously this was configured by morons laboring under the delusion that the only clients of the HTTP protocol are humans sitting in front of IE6.) In any event, maven responded by storing the bytes it was so given as a *.jar file in its repository (though of course, it was no jar file.) Failed builds and much hilarity ensued. I've found two techniques useful in mitigating maven's hunger for an omnipresent Internet connection. (1) When I'm *really* not on the net, I tell maven that by calling it in offline mode. This will only help if the dependencies required by the build are already cached in the local ~/.m2/repository. mvn -o (2) I run a maven repository manager. Think of it as a caching proxy for maven dependencies. I use the open source edition of Sonatype's Nexus because it's dead-easy to get running. At $JOB we have such a Nexus instance. I also have one at home running on my server (a greying 1 GHz titanium PowerBook). I keep ~/.m2/settings.xml under version control with git, so it's easy enough to 'cd ~/.m2 ; git checkout home' when I get home. At home and at work, settings.xml is configured to route *all* maven downloads through the appropriate nexus instance. I also keep a branch around for when I'm truly out in the world without access to either of the repository managers: 'git checkout nonexus'. Having something like nexus around is nice because I do find it occasionally useful to blow away ~/.m2/repository. It's nice not to have to download everything from maven central all over again. Though I do not currently do so, there's no reason why you couldn't run a nexus on localhost. Bringing two laptops to the Cafe would seem a tad excessive, after all. ;-) I've set up a few Nexus instances and been fighting with Maven for nearly five years now. I'll gladly share what experience I to help you get things set up. // Ben -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Windows distribution for Leiningen 1.3.0
Wow! I touched it and it reminded of REBOL interpreter. I downloaded leningen-1.3.0, and lein batch. I put leningen-1.3.0.jar on by path. Hmmm, I got electrified. Now, I can make boast by saying this "is the real one". Thanks for sharing ... and for considering me among the people so favored to try it. Regards, Emeka On Sat, Aug 21, 2010 at 6:22 PM, Shantanu Kumar wrote: > The lein.bat script is now updated in the sources if some of you want > to give it a try. A summary about it is here: > > http://bit.ly/c4U2bI > > Regards, > Shantanu > > On Aug 21, 12:45 am, Shantanu Kumar wrote: > > Discovered a bug in the the bundle I uploaded, which I have fixed in > > update-1: > > > > http://github.com/downloads/kumarshantanu/leiningen/leiningen-1.3.0-u... > > > > The earlier lein.bat script uses wildcard in JAR filename in > > CLASSPATH, which is supported only in JDK 1.6. If you are using JDK > > 1.5 or certain versions of JDK 1.6, you will likely need the update-1. > > > > Regards, > > Shantanu > > > > On Aug 20, 6:46 pm, Phil Hagelberg wrote: > > > > > > > > > On Fri, Aug 20, 2010 at 2:35 AM, Shantanu Kumar > > > > > wrote: > > > > I have created a Windows distribution for Leiningen 1.3.0 (by pruning > > > > and modifying the lein.bat file a bit) that can be downloaded from > > > > here: > > > > > > > http://github.com/downloads/kumarshantanu/leiningen/leiningen-1.3.0.zip > > > > > > To install, > > > > 1. Download the bundle and unzip into a folder of your choice > > > > 2. Include the Leiningen folder in your PATH. > > > > > > In my initial tests on Windows XP 32-bit/JDK 1.6, it seems to be > > > > working okay. Please let me know how it behaves at your end. > > > > > Thanks; I'd love to integrate this once it sees some usage and gets > feedback! > > > > > -Phil > > -- > 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 unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
why data structure
why does everything have to be a data structure ? like (operation parameter parameter ...) -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Simple Regex Question
On Sunday 22 August 2010 01:11:38 CuppoJava wrote: > Hi Everyone, > > I'm extremely stuck on this simple regex question, which I'm sure > someone with a little more experience will be able to write in a > second. I would really appreciate the help. > > Given a string consisting of a's, b's, and spaces: "aaa bbb abb ab > bb" > > I want to tokenize this into string's of a's and b's. > eg. "aaa", "bbb", "a", "bb", "a", "b", "bb" > > AND also, I have to be able to tell which of the strings of b's was > preceded with an "a", and which was preceded by a space. > > Thanks a lot for your help > -Patrick You are not trying to solve this one: http://www.loopycode.com/a-surprisingly-hard-problem-post-correspondence/ aren't you? :) -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Another JavaFX and Clojure Demo
Hello group, I'd replied a long time ago to one of the posts about JavaFX and Clojure working together... I've now finally gotten back to putting it up on Github. It is very rough and ugly code, but it does show one way to get Clojure working with JavaFX. The simplest way I could imagine at the time (June 2009). It has a JavaFX UI talking to a Java facade class which loads and exposes a Clojure script. Be sure and read the README. It has a little more details. Here is the Github link: http://github.com/staypufd/JavaFXClojure Hope it helps someone or at least gets more balls rolling on linking up JavaFX and Clojure Sam Griffith Jr -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Why the mix of dot syntax in clojure.core?
Apparently this is indeed an older holdover and the . calls are slowly being replaced with / as people make edits according to chouser. Would people be interested in a patch that replaces all of the older static calls using . to the newer method using / ? --Robert McIntyre On Sat, Aug 21, 2010 at 6:58 PM, Robert McIntyre wrote: > I am curious as to why first (and other functions) are defined in > core as: > > (def > ^{:arglists > '([coll]) > :doc "Returns the first item in the collection. Calls seq on > its > argument. If coll is nil, returns > nil." > :added > "1.0"} > first (fn first [coll] (. clojure.lang.RT (first coll > > instead of: > > (def > ^{:arglists '([coll]) > :doc "Returns the first item in the collection. Calls seq on its > argument. If coll is nil, returns nil." > :added "1.0"} > first (fn first [coll] (clojure.lang.RT/first coll))) > > When the general consensus seems to be that the latter is more > idiomatic/readable, especially for beginners? > > --Robert McIntyre -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Why the mix of dot syntax in clojure.core?
I am curious as to why first (and other functions) are defined in core as: (def ^{:arglists '([coll]) :doc "Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil." :added "1.0"} first (fn first [coll] (. clojure.lang.RT (first coll instead of: (def ^{:arglists '([coll]) :doc "Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil." :added "1.0"} first (fn first [coll] (clojure.lang.RT/first coll))) When the general consensus seems to be that the latter is more idiomatic/readable, especially for beginners? --Robert McIntyre -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Slime Problems: Unable to compile via C-c C-k, C-c M-x and list callers via C-c C-w c
I'm unable to compile a file via the C-c C-k and C-c M-x key bindings on both ClojureBox (1.2) on Windows and on Emacs on Fedora 12. However, I can compile as expected from the slime-repl. Also, I'm unable to list the callers of a function via C-c C-w c on Fedora 12. This is my configuration on Fedora 12: -Emacs packages from ELPA: slime 20100404, slime-repl 20100404, clojure-mode 1.7.1 -running swank process from swank-clojure 1.2.1, launched via the 'lein swank' command. 1) messages in the *Messages* buffer, after doing C-c C-k: (occurs on ClojureBox and Fedora 12) Compiling /home/jonathan/swdev/clojure/testproject/src/samples/testdest.clj... Compilation finished. (No warnings) [0.05 secs] Highlighting notes... Compilation finished. (No warnings) [0.05 secs] Preparing compilation log... Compilation finished. (No warnings) [0.05 secs] Fontifying *SLIME Compilation*... (regexps...) Compilation finished. (No warnings) [0.05 secs] 2) messages in the *Messages* buffer, after doing C-c M-k: (occurs on ClojureBox and Fedora 12) Compiling /home/jonathan/swdev/clojure/testproject/src/samples/testdest.clj... Compilation failed. (No warnings) Highlighting notes... Compilation failed. (No warnings) Preparing compilation log... Compilation failed. (No warnings) Fontifying *SLIME Compilation*... (regexps...) Compilation failed. (No warnings) 3) messages in the *Messages* buffer, after doing C-c C-w c: (doesn't occur on ClojureBox) error in process filter: slime-insert-xrefs: Wrong type argument: char-or-string-p, nil error in process filter: Wrong type argument: char-or-string-p, nil I'm entering the Clojure world with a Java background and no emacs experience. So I'm probably making a 'newbie' mistake. Thanks in Advance for your help, Jonathan -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
git clone Clojure/Maven?
The fact that Maven uses http bit me today. I was working offline in a coffee shop, Maven tried to download something dynamically and failed. End of my development work. A git-based version of the system would be much more useful (I know, I'm living in a backwater country without proper internet but...). Disk space is cheap. I have a 2T external drive. Bandwith is not cheap and my time, at least to me, is very expensive. I'd like to just do a git clone of Clojure and be able to work anywhere. Mavens use of http takes me all the way back to a CVS/SVN situation where there are certain operations I cannot do unless I'm connected. It's the late 90s and this shouldn't be a blocking issue anymore. Can I git-clone Maven so it will reach for a local repo? Can I git-clone Clojure with a standalone build system? Tim Daly B Smith-Mannschott wrote: On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott wrote: Maven uses http, so one can download the various modules of clojure contrib via a web browser. Snapshot builds are here: http://build.clojure.org/snapshots/org/clojure/contrib/ i.e. http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION The old monolithic clojure-contrib.jar is now org.clojure.contrib/complete.jar you can find snapshot builds of it here: http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0-SNAPSHOT/ Important detail: the one you want is the jar-with-dependencies variant. Note: this jar contains not only all modules of clojure-contrib, but also a complete copy of clojure 1.2.0. I don't know if that's the intention. I could write a patch that generates a 'complete' variant without clojure 1.2.0, if anyone's interested. hth, Ben On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber wrote: A couple of questions: 1) Does use of clojure-contrib now require maven or leinigen as a prerequisite or is there a place to go grab the jar files? 2) From my read of this, there is no longer a clojure-contrib.jar, just a meta dependency that causes maven to grab all the modules. Is that correct? Tom On Aug 20, 7:22 am, Stuart Sierra wrote: Hello, all, As planned for some time, clojure-contrib has now been split into many submodules on the "master" branch. *** For users of clojure-contrib 1.2.0: nothing changes. *** For users of clojure-contrib snapshots: New builds of the master branch on github will be available as 1.3.0- SNAPSHOT versions. Each major contrib library has its own module with the groupId "org.clojure.contrib" and an artifactId which is the name of the library. For example, to use the clojure.contrib.macro-utils namespace in your projects, add a dependency on group "org.clojure.contrib", artifact "macro-utils", version "1.3.0-SNAPSHOT". In Leiningen syntax, this looks like: :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- SNAPSHOT"] ...] In Maven syntax, this looks like: ... org.clojure.contrib macro-utils 1.3.0-SNAPSHOT ... If you want to use ALL contrib libraries, add a dependency on group "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT". This meta-library depends on all other contrib libraries. *** For clojure-contrib developers: Each library has its own directory under the "modules" directory at the top level of clojure-contrib. Each module directory contains a pom.xml file specifying the name, version number, and dependencies of that library. Every module pom.xml declares a "parent" located in the modules/parent directory. The parent pom.xml file defines configuration settings common to all clojure-contrib libraries. Currently the parent pom.xml declares a dependency on Clojure 1.2.0 and sets up clojure-maven- plugin to compile and test Clojure sources. Individual libraries may override the parent configuration in their own pom.xml files. Building all of clojure-contrib (by running "mvn install" at the top level) can take over 10 minutes. Fortunately, you do not need to build all the modules most of the time. To build just one library, cd to its directory under "modules" and run "mvn install" (or "mvn test" to test). You will need to have already installed, at a minimum, the parent module and any modules your library depends on. *** For everyone: There will doubtless be some breakage and difficulties during this transition period. Please bear with us. Post your questions to the list, and we will try to answer them as soon as possible. Thanks, Stuart Sierra -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received th
Re: clojure-contrib master now in submodules
On Sun, Aug 22, 2010 at 09:52, B Smith-Mannschott wrote: > Maven uses http, so one can download the various modules of clojure > contrib via a web browser. Snapshot builds are here: > > http://build.clojure.org/snapshots/org/clojure/contrib/ > > i.e. > > http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION > > The old monolithic clojure-contrib.jar is now > org.clojure.contrib/complete.jar you can find snapshot builds of it > here: > > http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0-SNAPSHOT/ Important detail: the one you want is the jar-with-dependencies variant. Note: this jar contains not only all modules of clojure-contrib, but also a complete copy of clojure 1.2.0. I don't know if that's the intention. I could write a patch that generates a 'complete' variant without clojure 1.2.0, if anyone's interested. > hth, > Ben > > > On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber wrote: >> A couple of questions: >> >> 1) Does use of clojure-contrib now require maven or leinigen as a >> prerequisite or is there a place to go grab the jar files? >> 2) From my read of this, there is no longer a clojure-contrib.jar, >> just a meta dependency that causes maven to grab all the modules. Is >> that correct? >> >> Tom >> >> On Aug 20, 7:22 am, Stuart Sierra wrote: >>> Hello, all, >>> >>> As planned for some time, clojure-contrib has now been split into many >>> submodules on the "master" branch. >>> >>> *** For users of clojure-contrib 1.2.0: nothing changes. >>> >>> *** For users of clojure-contrib snapshots: >>> >>> New builds of the master branch on github will be available as 1.3.0- >>> SNAPSHOT versions. Each major contrib library has its own module with >>> the groupId "org.clojure.contrib" and an artifactId which is the name >>> of the library. >>> >>> For example, to use the clojure.contrib.macro-utils namespace in your >>> projects, add a dependency on group "org.clojure.contrib", artifact >>> "macro-utils", version "1.3.0-SNAPSHOT". >>> >>> In Leiningen syntax, this looks like: >>> >>> :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- >>> SNAPSHOT"] ...] >>> >>> In Maven syntax, this looks like: >>> >>> >>> ... >>> >>> org.clojure.contrib >>> macro-utils >>> 1.3.0-SNAPSHOT >>> >>> ... >>> >>> >>> If you want to use ALL contrib libraries, add a dependency on group >>> "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT". >>> This meta-library depends on all other contrib libraries. >>> >>> *** For clojure-contrib developers: >>> >>> Each library has its own directory under the "modules" directory at >>> the top level of clojure-contrib. Each module directory contains a >>> pom.xml file specifying the name, version number, and dependencies of >>> that library. >>> >>> Every module pom.xml declares a "parent" located in the modules/parent >>> directory. The parent pom.xml file defines configuration settings >>> common to all clojure-contrib libraries. Currently the parent pom.xml >>> declares a dependency on Clojure 1.2.0 and sets up clojure-maven- >>> plugin to compile and test Clojure sources. >>> >>> Individual libraries may override the parent configuration in their >>> own pom.xml files. >>> >>> Building all of clojure-contrib (by running "mvn install" at the top >>> level) can take over 10 minutes. Fortunately, you do not need to >>> build all the modules most of the time. To build just one library, cd >>> to its directory under "modules" and run "mvn install" (or "mvn test" >>> to test). You will need to have already installed, at a minimum, the >>> parent module and any modules your library depends on. >>> >>> *** For everyone: >>> >>> There will doubtless be some breakage and difficulties during this >>> transition period. Please bear with us. Post your questions to the >>> list, and we will try to answer them as soon as possible. >>> >>> Thanks, >>> Stuart Sierra >> >> -- >> 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 unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: clojure-contrib master now in submodules
Maven uses http, so one can download the various modules of clojure contrib via a web browser. Snapshot builds are here: http://build.clojure.org/snapshots/org/clojure/contrib/ i.e. http://build.clojure.org/snapshots/org/clojure/contrib/MODULE/VERSION The old monolithic clojure-contrib.jar is now org.clojure.contrib/complete.jar you can find snapshot builds of it here: http://build.clojure.org/snapshots/org/clojure/contrib/complete/1.3.0-SNAPSHOT/ hth, Ben On Sun, Aug 22, 2010 at 08:11, Tom Faulhaber wrote: > A couple of questions: > > 1) Does use of clojure-contrib now require maven or leinigen as a > prerequisite or is there a place to go grab the jar files? > 2) From my read of this, there is no longer a clojure-contrib.jar, > just a meta dependency that causes maven to grab all the modules. Is > that correct? > > Tom > > On Aug 20, 7:22 am, Stuart Sierra wrote: >> Hello, all, >> >> As planned for some time, clojure-contrib has now been split into many >> submodules on the "master" branch. >> >> *** For users of clojure-contrib 1.2.0: nothing changes. >> >> *** For users of clojure-contrib snapshots: >> >> New builds of the master branch on github will be available as 1.3.0- >> SNAPSHOT versions. Each major contrib library has its own module with >> the groupId "org.clojure.contrib" and an artifactId which is the name >> of the library. >> >> For example, to use the clojure.contrib.macro-utils namespace in your >> projects, add a dependency on group "org.clojure.contrib", artifact >> "macro-utils", version "1.3.0-SNAPSHOT". >> >> In Leiningen syntax, this looks like: >> >> :dependencies [ ... [org.clojure.contrib/macro-utils "1.3.0- >> SNAPSHOT"] ...] >> >> In Maven syntax, this looks like: >> >> >> ... >> >> org.clojure.contrib >> macro-utils >> 1.3.0-SNAPSHOT >> >> ... >> >> >> If you want to use ALL contrib libraries, add a dependency on group >> "org.clojure.contrib", artifact "complete", version "1.3.0-SNAPSHOT". >> This meta-library depends on all other contrib libraries. >> >> *** For clojure-contrib developers: >> >> Each library has its own directory under the "modules" directory at >> the top level of clojure-contrib. Each module directory contains a >> pom.xml file specifying the name, version number, and dependencies of >> that library. >> >> Every module pom.xml declares a "parent" located in the modules/parent >> directory. The parent pom.xml file defines configuration settings >> common to all clojure-contrib libraries. Currently the parent pom.xml >> declares a dependency on Clojure 1.2.0 and sets up clojure-maven- >> plugin to compile and test Clojure sources. >> >> Individual libraries may override the parent configuration in their >> own pom.xml files. >> >> Building all of clojure-contrib (by running "mvn install" at the top >> level) can take over 10 minutes. Fortunately, you do not need to >> build all the modules most of the time. To build just one library, cd >> to its directory under "modules" and run "mvn install" (or "mvn test" >> to test). You will need to have already installed, at a minimum, the >> parent module and any modules your library depends on. >> >> *** For everyone: >> >> There will doubtless be some breakage and difficulties during this >> transition period. Please bear with us. Post your questions to the >> list, and we will try to answer them as soon as possible. >> >> Thanks, >> Stuart Sierra > > -- > 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 unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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 unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en