Re: clojure-contrib master now in submodules

2010-08-22 Thread B Smith-Mannschott
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 n

Re: clojure-contrib master now in submodules

2010-08-22 Thread B Smith-Mannschott
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/cloj

git clone Clojure/Maven?

2010-08-22 Thread Tim Daly
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

Slime Problems: Unable to compile via C-c C-k, C-c M-x and list callers via C-c C-w c

2010-08-22 Thread Jonathan Joseph
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 F

Why the mix of dot syntax in clojure.core?

2010-08-22 Thread Robert McIntyre
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 inste

Re: Why the mix of dot syntax in clojure.core?

2010-08-22 Thread Legilimens
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

Another JavaFX and Clojure Demo

2010-08-22 Thread Sam Griffith
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

Re: Simple Regex Question

2010-08-22 Thread Luka Stojanovic
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 s

why data structure

2010-08-22 Thread Belun
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 - p

Re: Windows distribution for Leiningen 1.3.0

2010-08-22 Thread Emeka
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 t

Re: git clone Clojure/Maven?

2010-08-22 Thread B Smith-Mannschott
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 $JO

Re: why data structure

2010-08-22 Thread B Smith-Mannschott
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 //

Re: why data structure

2010-08-22 Thread Nicolas Oury
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 structur

does clojure take advantage of multicore

2010-08-22 Thread Belun
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 subsc

Re: does clojure take advantage of multicore

2010-08-22 Thread Heinz N. Gies
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

AOT compilation newbie mistakes

2010-08-22 Thread Isaac Gouy
$ /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))

Leiningen documentation error

2010-08-22 Thread Arie van Wingerden
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" grou

Re: why data structure

2010-08-22 Thread Raoul Duke
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 "Clojur

Re: Simple Regex Question

2010-08-22 Thread CuppoJava
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, > > >

Re: AOT compilation newbie mistakes

2010-08-22 Thread Robert McIntyre
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 a

Re: cool compiler-project?

2010-08-22 Thread Sreeraj a
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 th

Re: Why the mix of dot syntax in clojure.core?

2010-08-22 Thread Adam Schmideg
> > >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 >argume

Re: AOT compilation newbie mistakes

2010-08-22 Thread Wilson MacGyver
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

Re: AOT compilation newbie mistakes

2010-08-22 Thread Isaac Gouy
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

Re: why data structure

2010-08-22 Thread Joost
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 Li

Re: git clone Clojure/Maven?

2010-08-22 Thread Aaron Cohen
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 wil

Re: Unexpected FileNotFoundException

2010-08-22 Thread Stuart Campbell
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

Re: Unexpected FileNotFoundException

2010-08-22 Thread ataggart
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 th

Re: AOT compilation newbie mistakes

2010-08-22 Thread Isaac Gouy
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

Re: Leiningen documentation error

2010-08-22 Thread Phil Hagelberg
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

Re: git clone Clojure/Maven?

2010-08-22 Thread lprefontaine
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 cac

clojure-contrib master now in submodules

2010-08-22 Thread ataggart
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

Re: clojure-contrib master now in submodules

2010-08-22 Thread B Smith-Mannschott
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-cen