Re: Clojure and the Anti-If Campaign

2012-05-29 Thread Tassilo Horn
Benny Tsai writes: > There's "while" in clojure.core; would that work? That would be cheating: --8<---cut here---start->8--- user> (macroexpand '(while (foo) (bar))) (loop* [] (clojure.core/when (foo) (bar) (recur))) --8<---cut here---

Re: Clojure and the Anti-If Campaign

2012-05-29 Thread Benny Tsai
There's "while" in clojure.core; would that work? On Tuesday, May 29, 2012 8:13:24 AM UTC-7, Andrew wrote: > > Thanks for sharing your blog post. Is there an Anti-If alternative to > loop/recur in a situation where you have to poll for a condition to be > true? (Seems to me that this necessitate

Re: Recursive lets

2012-05-29 Thread Alan Malloy
On May 29, 9:54 am, "nicolas.o...@gmail.com" wrote: > Is there a way to write something like: > > (let [x (foo1 (fn []  (bar y))) >       y  (foo2 x)]   ) > > where the y on line 1 refers to y in line 2? > > I currently use an atom and an affectation to "tie the loop"... I agree with the othe

Re: Lambda: A lniux distro for clojurists

2012-05-29 Thread Tassilo Horn
banseljaj writes: > I don't like to reboot eithere, but you can run this into a VM. Maybe it's just me, but I don't want to start a VM to do clojure (or whatever) programming. I mean, a Live CD with a properly set up clojure environment could be valuable for trying out clojure, but for real wor

Re: Recursive lets

2012-05-29 Thread Tassilo Horn
"nicolas.o...@gmail.com" writes: Hi Nicolas, > Is there a way to write something like: > > (let [x (foo1 (fn [] (bar y))) > y (foo2 x)] ) > > where the y on line 1 refers to y in line 2? You can define mutual recursive local functions using `letfn`, if that's what you are trying t

ANN Quartzite, a Clojure DSL on top of the Quartz scheduler

2012-05-29 Thread Michael Klishin
Quartzite [1] is a Clojure DSL on top of the Quartz scheduler. It has a few convenience features in addition, but primarily tries to make core Quartz features as easy to use as possible without heavy use of Java interop in your apps. Here's a list of what you get out of the box: * Ability to d

Re: Lambda: A lniux distro for clojurists

2012-05-29 Thread Roberto Mannai
+1, although maybe we are going OT. With the derivate Lucid Puppy you can also reuse and install existing .deb packages. On Sunday, May 27, 2012, James Jeffries wrote: > It might be worth looking into Puppy Linux. It is quite easy to make a > derivative of of it and the community around it (forum

Re: Recursive lets

2012-05-29 Thread Philip Potter
letfn allows mutually recursive definitions. You could combine that with trampoline. Phil Sent using thumbs, apologies for brevity On May 29, 2012 6:54 PM, "nicolas.o...@gmail.com" wrote: > Dear all, > > Is there a way to write something like: > > (let [x (foo1 (fn [] (bar y))) > y (foo2

Re: Clojurians in Austria

2012-05-29 Thread Ben Smith-Mannschott
I too am in Vienna. I use Clojure at work for a few small internal tools, but not in production. I'd be glad to meet some other Clojurists. // Ben On Tue, May 29, 2012 at 5:05 PM, Nuno Marques wrote: > I'm in Vienna and I know a couple of more Clojure people here. > I would be happy to help star

Recursive lets

2012-05-29 Thread nicolas.o...@gmail.com
Dear all, Is there a way to write something like: (let [x (foo1 (fn [] (bar y))) y (foo2 x)] ) where the y on line 1 refers to y in line 2? I currently use an atom and an affectation to "tie the loop"... Best, Nicolas. -- You received this message because you are subscribed to

Re: Getting started with lein-cljsbuild

2012-05-29 Thread Phil Hagelberg
On Mon, May 28, 2012 at 7:10 PM, Evan Mezeske wrote: > I'm not really sure what environment variables have to do with the problem. Leiningen used to check the $CLASSPATH variable, but I don't think anyone had ever used that on purpose; it just caused problems in practice. Going forward (2.0.0-pre

Re: Clojure and the Anti-If Campaign

2012-05-29 Thread Andrew
Thanks for sharing your blog post. Is there an Anti-If alternative to loop/recur in a situation where you have to poll for a condition to be true? (Seems to me that this necessitates some kind of conditional statement) On Thursday, May 24, 2012 5:57:47 AM UTC-4, Dominikus wrote: > > Three weeks

Re: Clojurians in Austria

2012-05-29 Thread Nuno Marques
I'm in Vienna and I know a couple of more Clojure people here. I would be happy to help start a clojure group here. On May 29, 2012, at 4:40 PM, Florian Over wrote: > Hi > i met a nice guy (David from intermaps.com) from Vienna on EuroClojure. > He mentioned that there are other Clojure-User in V

Re: Clojurians in Austria

2012-05-29 Thread Florian Over
Hi i met a nice guy (David from intermaps.com) from Vienna on EuroClojure. He mentioned that there are other Clojure-User in Vienna as well. But no UserGroup right now. Maybe you can start irc clojure-at ? Florian 2012/5/29 Jozef Wagner : > Hi, > > Are there some Clojurians from Austria or is th

Clojurians in Austria

2012-05-29 Thread Jozef Wagner
Hi, Are there some Clojurians from Austria or is there an Austria Clojure group? I'm looking for a Clojure related job in Austria, and so far I haven't found any Austrian group on meetup.com nor on the google groups :( Best, Jozef -- You received this message because you are subscribed to t

Re: Selecting subsets of maps

2012-05-29 Thread Baishampayan Ghose
Great feedback, Christophe. I will get back to you with a better implementation. Regards, BG On Tue, May 29, 2012 at 5:44 PM, Christophe Grand wrote: > The expansion idea is interesting: expand your selectors to a seq of paths, > redcue with get-in/assoc-in over thme to get the "extract" sense,

Re: Selecting subsets of maps

2012-05-29 Thread Christophe Grand
The expansion idea is interesting: expand your selectors to a seq of paths, redcue with get-in/assoc-in over thme to get the "extract" sense, reduce with update-in+dissoc to get the exclude. Could yield a nice implementation. And now for some nitpicking: * nowadays I'm reluctant to extend a protoc

Re: Selecting subsets of maps

2012-05-29 Thread Baishampayan Ghose
Christophe, > Laurent dragged me in the conversation so here is my take > https://gist.github.com/2823916 which strictly follows your proposed > "syntax". I am glad that Laurent dragged you in, I got to see your beautiful solution :-) Here is my (less beautiful) solution, `extract` along with it

Re: Selecting subsets of maps

2012-05-29 Thread Christophe Grand
Hi BG, Laurent dragged me in the conversation so here is my take https://gist.github.com/2823916 which strictly follows your proposed "syntax". hth, Christophe On Sat, May 26, 2012 at 6:58 AM, Baishampayan Ghose wrote: > Hi, > > I have a problem wherein I need to select subsets of a given map;

Re: Issues with installing clojure-mode on Mac in Emacs

2012-05-29 Thread James
Hi Sam,- I've got everything working now (Swank, Slime, the lein2 command). Many thanks for your comments. I'll get back to you if I have more feedback on Emacs Live. Cheers, James On May 28, 10:58 pm, Sam Aaron wrote: > On Monday, 28 May 2012 at 17:59, James wrote: > > Regarding Slime and Swan

Re: maths, functions and solvers

2012-05-29 Thread Edmund
No, core.logic is not the answer here; numerical stuff is currently out of reach. On Saturday, 26 May 2012 03:25:22 UTC+1, jlk wrote: > > Hi Zack > > I don't really know enough about core.logic to comment on this. Brent > mentions symbolic math and it sounds neat but I'm more interested in > n

Is still idiomatic the ant simulation code?

2012-05-29 Thread JuanManuel Gimeno Illa
I'm preparing an informal presentation about clojure concurrency and my plan is use the ant colony demo. Given the amount of changes in clojure since the time that code was written I wonder if the code is still idiomatic or parts of it should be adapted to modern clojure. Any ideas would be muc