Re: return value of use, requires?

2010-02-06 Thread Timothy Pratley
On 2 February 2010 05:14, Raoul Duke rao...@gmail.com wrote: given keyword isn't one that is supported, or no load target given Good point, I've updated the ticket patch to check options are valid also, so the behavior is now: user= (use 'foo :foo :bar) java.lang.Exception: Unsupported

Re: newbie question: splitting up source files

2010-02-06 Thread Michael Wood
On 6 February 2010 00:52, Mike Jarmy mja...@gmail.com wrote: OK, here's a slightly more elaborate toy example that works.  In this example, foo-main.clj needs foo-a.clj, and they both need foo-util.clj.  I was expecting the (in-ns) call in foo-a to have a :load keyword, just like (ns) in

Re: newbie question: splitting up source files

2010-02-06 Thread Michael Wood
P.S.: Instead of: (print (format blah: %s\n arg)) You could use: (printf blah: %s\n arg) or: (println blah: arg) If you want no space after the colon, you could use: (println (str blah: arg)) -- Michael Wood esiot...@gmail.com -- You received this message because you are subscribed to

Dutch Clojure users

2010-02-06 Thread Joop Kiefte
Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can meet? I am also interested to know about Clojure-programmers from any country in a reasonable distance from Strasbourg.

Re: Dutch Clojure users

2010-02-06 Thread Meikel Brandmeyer
Hi, Am 06.02.2010 um 12:26 schrieb Joop Kiefte: I am also interested to know about Clojure-programmers from any country in a reasonable distance from Strasbourg. If you mean the Strasbourg in France: I live near Frankfurt am Main. It's a little more than 2h with the car. That could count as

Re: compiled namespaces referencing each other

2010-02-06 Thread Mike Jarmy
OK, thanks guys On Sat, Feb 6, 2010 at 12:04 AM, ataggart alex.tagg...@gmail.com wrote: Circular references mean your namespace design is broken. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Clojure for system administration

2010-02-06 Thread Jeff Schwab
Phil Hagelberg wrote: On Thu, Feb 4, 2010 at 8:33 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Clojure can certainly do these things; clojure-contrib contains many file and io-related utilities. But remember that Clojure, like any Java program, takes more time to start up than

Re: Dutch Clojure users

2010-02-06 Thread Tommy
Hello. I am unfamiliar with maps. How do I add myself to this map? - Tommy On Feb 6, 12:48 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 06.02.2010 um 12:26 schrieb Joop Kiefte: I am also interested to know about Clojure-programmers from any country in a reasonable distance from

Re: Dutch Clojure users

2010-02-06 Thread Stephen C. Gilardi
On Feb 6, 2010, at 10:08 AM, Tommy wrote: I am unfamiliar with maps. How do I add myself to this map? Figuring that out has taken me a long time on at least two occasions... The key is you need to be signed in to make changes. - At the upper right of the page is sign in. Use that to sign

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Stuart Sierra
On Feb 5, 1:47 pm, Peter Schuller peter.schul...@infidyne.com wrote: One problem is that there needs to be a convention for a clojure binary that works consistently across platforms. My extremely biased opinion: Clojure is not a scripting language. The binary is java. System-wide classpaths

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Peter Schuller
My extremely biased opinion:  Clojure is not a scripting language. One can spent a lot of time debating the definition of 'scripting language', but sure. The bigger issue though: The binary is java.  System-wide classpaths are a bad idea. In theory I agree with you. The concept of site-local

Re: Dutch Clojure users

2010-02-06 Thread Tommy
It works fine, thank you :) On 6 Feb., 16:26, Stephen C. Gilardi squee...@mac.com wrote: On Feb 6, 2010, at 10:08 AM, Tommy wrote: I am unfamiliar with maps. How do I add myself to this map? Figuring that out has taken me a long time on at least two occasions... The key is you need to be

Re: Run expression, with particular functions replaced

2010-02-06 Thread Daniel Werner
On Feb 4, 8:11 pm, Bryce fiat.mo...@gmail.com wrote: I take your point; I've given up trying to actually define a function with the expression for the moment (I'd imagine it's still possible, just much trickier than I thought).  My intention was to fake operator overloading.  For my purposes

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Michał Marczyk
How about having a Clojure application 'package' set up a launcher script to launch the app with a minimal classpath, Leiningen style, based on some assumption regarding the whereabouts of versioned jars on the system? (E.g. jline-0.9.94.jar rather than jline.jar, say.) That seems to me to be

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Peter Schuller
How about having a Clojure application 'package' set up a launcher script to launch the app with a minimal classpath, Leiningen style, based on some assumption regarding the whereabouts of versioned jars on the system? (E.g. jline-0.9.94.jar rather than jline.jar, say.) Something along those

Re: Dutch Clojure users

2010-02-06 Thread rb
On Feb 6, 12:26 pm, Joop Kiefte iko...@gmail.com wrote: Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can meet? I am also interested to know about

Re: Dutch Clojure users

2010-02-06 Thread Hubert Iwaniuk
Hoi Joop, I live in NL. Cheers, Hubert. On Sat, Feb 6, 2010 at 12:26 PM, Joop Kiefte iko...@gmail.com wrote: Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can

Re: Applying arguments to Java methods.

2010-02-06 Thread Nicolas Buduroi
On Feb 5, 9:44 pm, nchubrich nicholas.chubr...@gmail.com wrote: Is there ever any reason to use memfn as opposed to ordinary functions, i.e. (def div (fn [x y] (.divide x y))) You should normally use the doted notation. I used it while experimenting with a macro that wrap Java classes, but it

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Constantine Vetoshev
On Feb 6, 1:06 pm, Peter Schuller peter.schul...@infidyne.com wrote: But the practical issue remains that if I want to write some software that I want sysadmins in various situations to want to use effortlessly (in my case, a backup tool), problems like these do get in the way of choosing

Re: Dutch Clojure users

2010-02-06 Thread Jeff Rose
There is a group of us hacking Clojure in Amsterdam and Utrecht. Where are you? Join the Amsterdam Clojurians Google group, and we'll meet for a pizza. -Jeff On Feb 6, 12:26 pm, Joop Kiefte iko...@gmail.com wrote: Hello folks! I am from the Netherlands and I am learning Clojure now, using it

Re: question about dotimes

2010-02-06 Thread Adrian Cuthbertson
In the doc for dotimes, the bindings are required as name n (see below). Hence (dotimes [i 5] ... ) is the only pattern. Check out (doseq and (for for what you're trying to do. user= (doc dotimes) - clojure.core/dotimes ([bindings body]) Macro bindings = name n

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Mike Meyer
On Sat, 6 Feb 2010 18:25:47 -0800 (PST) Constantine Vetoshev gepar...@gmail.com wrote: On Feb 6, 1:06 pm, Peter Schuller peter.schul...@infidyne.com wrote: But the practical issue remains that if I want to write some software that I want sysadmins in various situations to want to use