Re: clojure-test-mode elpa version still out of date?

2010-09-14 Thread alux
Just if any one is gets the same problem: I updated slime and slime- repl to the 20100404 version, and everything works again. Regards, alux PS.: For completeness: swank-clojure version 1.1.0 On 11 Sep., 12:40, alux wrote: > Hello Bruce, > > would you please provide the versions of

Re: clojure-test-mode elpa version still out of date?

2010-09-11 Thread alux
in XP) (Btw.: Is there a way to uninstall stuff with ELPA?) Thank you, alux On 10 Sep., 21:56, Bruce Durling wrote: > Hi, > > On Fri, Sep 10, 2010 at 18:15, User7 wrote: > > > I'm using emacs starter kit and clojure-test-mode 1.4 installed using > > elpa.  Runnin

Re: testing local functions?

2010-09-10 Thread alux
Brian, thats way cool! (I still have to think this through, thats high magic!) Thank you for sharing this, and kind regards, alux On 10 Sep., 21:04, Brian Marick wrote: > I've worked out a way to test local functions. When I tried it out by hand, > it felt good. See here:http://bi

Re: testing local functions?

2010-09-10 Thread alux
ble. Greetings, alux On 10 Sep., 13:39, James Reeves wrote: > On 10 September 2010 12:24, alux wrote: > > > I always thought it to be good style to make helper functions only as > > visible as needed, e.g. by using letfn. > > > But when I want to test my code, I just

testing local functions?

2010-09-10 Thread alux
ivate http://blog.fogus.me/2010/09/03/monkeying-with-clojures-deftest/ , but at least as far as I can see, this can't be generalised to my problem.) Do you know any way to test them? Thank you, alux -- You received this message because you are subscribed to the Google Groups "Clojure&quo

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-09 Thread alux
t doesnt belong to this thread. Nevertheless, comments are welcome :) Thank you all, and kind regards, alux On 9 Sep., 20:40, lprefonta...@softaddicts.ca wrote: > The major thing that made me used macros as much as possible when available > in any language was writing assembly code. Not 100 lines proje

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
k you! (I read he did a talk just about macros this year, but I dont know whether there is a video or slides of it on the web.) @Michael Yep, again some stuff for the comparison list. Thank you. An interesting discusssion! Thank you all! Regards, alux On 8 Sep., 20:17, Michael Ossareh wrote: >

Re: Simple question about destructuring

2010-09-08 Thread alux
Hi Alan, this is one of the places where clojure.core is not written in what I would called idiomatic Clojure. The reason is speed. Rich Hickey is very eager to speed up the libraries, and what you see in juxt is one of the verbose speedup tricks. Regards, alux On 8 Sep., 20:06, Alan wrote

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
bunch of the Gang of Four patterns are just not needed in Lisp. Regrads, alux On 8 Sep., 19:29, Alan wrote: > This was actually the article that finally got me to overcome the > inertia and start exploring lisp, as a long-time native Java speaker. > I gave up again in a few weeks

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
them to look into Clojure too. But here I'm on a slippery slope. I'm still unable to judge the power of lisp macros compared to the power of Scalas possibilities to write your own control structures. Regards, alux On 8 Sep., 19:29, Alan wrote: > This was actually the article that fina

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
erstanding) is the only reason: We directly write the abstract syntax tree, because this is the way we can introduce new syntax ourself. Thats why I think to need this metaphor. Thank you, and kind regards, alux On 8 Sep., 17:19, Meikel Brandmeyer wrote: > Hi, > > On 8 Sep., 17:07, alu

Re: deftype makes no extender?

2010-09-08 Thread alux
Hi Stu, I like your "open dispatch club" ;-) Yes, after some thinking this is rather clear - every single something had to be scanned whether it implements a protocol; ehm, and rescanned when a new protocol is defined. Well, I drop that request ;-) Thank you for the illumination,

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
Hi Patrick, yes, I think thats the right way to teach this stuff. My problem arises earlier - I still have to motivate my collegues, to get them interested, and, maybe, teach them later ;-) Regards, alux On 8 Sep., 16:28, CuppoJava wrote: > I found the easiest way to introduce macros is j

Re: A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
Hello Joop, thanks for the link. So it seems not to be completely misled ;-) Greetings, alux On 8 Sep., 11:59, Joop Kiefte wrote: > Actually, this metaphor has been used before. > Checkhttp://www.defmacro.org/ramblings/lisp.htmlfor an other version of > your story ;). > >

A difficult Metaphor for Macros (especially for Java people)

2010-09-08 Thread alux
tand Lisp and Macros, XML/XSLT, and Ant, and Maven ;-) Now the question: Do you see any problems with this metaphor, is it misleading somewhere? Thank you, alux -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em

Re: deftype makes no extender?

2010-09-08 Thread alux
, to find functions to ponder their use. Regards, alux On 3 Sep., 16:05, Stuart Halloway wrote: > Let's back up: what are you trying to do with 'extenders'? > > Stu > > > Yes, thats what I see. > > I just dont think this is very sensible. > > > Th

Re: deftype makes no extender?

2010-09-03 Thread alux
Yes, thats what I see. I just dont think this is very sensible. Thank you Meikel! Greetings, alux On 3 Sep., 13:10, Meikel Brandmeyer wrote: > Hi, > > On 3 Sep., 12:49, alux wrote: > > > shouldnt the type x be listed a extender of xx here? Or why not? > > No. It show

deftype makes no extender?

2010-09-03 Thread alux
Hello, shouldnt the type x be listed a extender of xx here? Or why not? Thanks, alux (defprotocol xx "example" (xxx [x] "some x'es")) (deftype x [] xx (xxx [x] :xxx)) (extenders xx) => nil -- You received this message because you are subscribed to the Googl

Re: Macros, any reading suggestion?

2010-06-03 Thread alux
Hi Mike, thank you! Third book put on my reading list this week. Sigh. Regards, alux On 3 Jun., 21:24, Miki wrote: > Hello alux, > > > I still have some technical questions, but the main issue seems to be > > that I need to dive more deeply into the whole area of macro > &

Re: Macros, any reading suggestion?

2010-06-03 Thread alux
Many thanks Konrad, thats illuminating! Regards, alux On 3 Jun., 13:36, Konrad Hinsen wrote: > On 3 Jun 2010, at 12:46, alux wrote: > > > Thats impressive. I'm still, hm, puzzled. Nice example of something > > that can only be done with syntax-quote, and outside of a mac

Re: Macros, any reading suggestion?

2010-06-03 Thread alux
e.org/reader, I learned "For Lists/Vectors/Sets/Maps, syntax-quote establishes a template of the corresponding data structure.", and from that, what I expected was (user/foo (user/bar a) b) Why is this so utterly wrong, and where should I know? Many thanks, alux On 3 Jun., 11:51, Konrad

Macros, any reading suggestion?

2010-06-03 Thread alux
(probably more to come :) Thank you, and kind regards, alux -- 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 patien

Re: "special form" vs. "macro"

2010-06-01 Thread alux
Hello SinDoc, no special form at all? Cool, I'll have a look. Chapter 4.1 and 4.2 actually sit on my desk already since yesterday - I just didnt read it. I hope I get a chance in the next days. Many thanks, alux On 1 Jun., 09:38, "Sina K. Heshmati" wrote: > "al

Re: "special form" vs. "macro"

2010-06-01 Thread alux
? (I'm always tempted to try and find the very basic blocks. But here this seems to be like looking for a root in a directed graph - it exists in special cases only.) Thank you, alux On 1 Jun., 10:44, Konrad Hinsen wrote: > On 1 Jun 2010, at 09:18, alux wrote: > > >> So, i

Re: "special form" vs. "macro"

2010-06-01 Thread alux
dnt know how to implement all of them. Certainly there is, unknownst to me, a bunch of literature about (sets of) primitives that cannot e replaced - literature hints anybody? (Well, thats probably a nice set of exercises :) Thanky and regards, alux On 31 Mai, 12:45, "Sina K. Heshmati&quo

Re: special forms and let binding

2010-05-31 Thread alux
Hi Аркадий, I started another thread about the difference between special form and macros today - and got told that it is not possible to overwrite a special form. Regards, alux On 31 Mai, 21:15, "Ark. Rost" wrote: > So I don't understand if there any way do it. I'm re

Re: Rationals, and their size

2010-05-31 Thread alux
Yep, know that, been there ;-)) On 31 Mai, 21:39, ataggart wrote: > On May 31, 12:18 am, alux wrote: > > > Ah, thank you - I still shy away from looking into Richs sources, but > > here it helps: Ratio doesn't have getter for numerator and denominator > > - they

Re: "special form" vs. "macro"

2010-05-31 Thread alux
f do println) #'user/do ; this uses the special form user=> (do "huhu" "plop") "plop" ; while this uses println user=> ((var do) "huhu" "hello") huhu hello nil Thank you, alux On 31 Mai, 10:38, Konrad Hinsen wrote: > On 31 May 2010, at

"special form" vs. "macro"

2010-05-31 Thread alux
orm doesnt have anything to do with eagerness or lazyness. [ ] You are completely wrong, the right question is: ____ Thank you, alux -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Rationals, and their size

2010-05-31 Thread alux
point to place it at ;-) Regards, alux On 31 Mai, 04:10, ataggart wrote: > Ratio doesn't emit the numerator and > denominator:http://github.com/richhickey/clojure/blob/master/src/jvm/clojure/lang... > > I'm not sure that would help solve your problem, even if it were >

Re: special forms and let binding

2010-05-30 Thread alux
Hello ataggart, thank you for the correction! Only now I understand A.Rosts question. May be somebody can help, and explain why my hypothesis was wrong. Obviousely, while functions are first class, special forms are even "better", kind of zeroth class. Thank you, alux On 31

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Ah! Hello Glen, good hint. Problem and solution reproduced ;-) Thank you, greetings, alux On 31 Mai, 06:00, Glen Stampoultzis wrote: > On 31 May 2010 04:51, Paul Moore wrote: > > > On 30 May 2010 12:31, alux wrote: > > > Small addition, you missed to add the : befor

Rationals, and their size

2010-05-30 Thread alux
is easier than using the BigIntegers myself? Thank you, alux -- 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

Re: special forms and let binding

2010-05-30 Thread alux
)) Is this what you want? (I'm driven to point out that this is bad style - but you probably know already.) Regards, alux On 30 Mai, 19:07, "A.Rost" wrote: > Hi! > For example, it's possible to do things like: > (def do println) > ((var do) "example") &

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Small addition, you missed to add the : before eof replace "goto eof" by "goto :eof" Thank you, and regards, alux On 28 Mai, 16:09, Paul Moore wrote: > On 28 May 2010 09:48, alux wrote: > > > Hello! > > > Short: It works, but is not perfect. > >

Re: Clojure script with shebangoid on windows

2010-05-30 Thread alux
Thank you! Greetings, a. On 28 Mai, 17:51, Paul Moore wrote: > On 28 May 2010 16:17, alux wrote: > > > Hello Paul, > > > thats much better, many thanks! > > I've added it to the Wikibooks > page,http://en.wikibooks.org/wiki/Clojure_Programming/Tutoria

Re: Clojure script with shebangoid on windows

2010-05-28 Thread alux
Hello Paul, thats much better, many thanks! Regards, alux On 28 Mai, 16:09, Paul Moore wrote: > On 28 May 2010 09:48, alux wrote: > > > Hello! > > > Short: It works, but is not perfect. > > > (this may need an windows expert to make it better) > > Try

Clojure script with shebangoid on windows

2010-05-28 Thread alux
nd whats happening. Any hints appreciated. Kind regards, alux -- 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 you

Re: When is *err* used?

2010-05-19 Thread alux
Thank you Adrian! Regards, alux On 19 Mai, 14:33, Adrian Cuthbertson wrote: > > thanks for the hint.  I looked into clojure.core and similar files, > > and didnt find much use of *err*. > > There are a few in clojure.contrib. Have a look at logging.clj, > repl_ln.c

Re: When is *err* used?

2010-05-19 Thread alux
Hello Adrian, thanks for the hint. I looked into clojure.core and similar files, and didnt find much use of *err*. Regards, alux thank you for your response. I had a look into On 19 Mai, 09:55, Adrian Cuthbertson wrote: > On Wed, May 19, 2010 at 9:06 AM, alux wrote: > > Any com

Re: When is *err* used?

2010-05-19 Thread alux
Any comment here? tnx, a. On 17 Mai, 22:22, alux wrote: > Hi, > > I reset *out* in a test program, and it worked fine. But when I try to > do the same with *err*, I found no change, still. All Errors I > produced seem to go directly to Java's System.err, not using my

Re: Does emacs suppress output from thread ?

2010-05-18 Thread alux
recur)))] (.start (Thread. pusher)) out)) Feedback highly welcome. Regards, alxu On 18 Mai, 21:09, alux wrote: > Hi. > > (add-hook 'slime-connected-hook 'slime-redirect-inferior-output) > > works for me if I start Clojure with M-x slime > But if I start it w

Re: Does emacs suppress output from thread ?

2010-05-18 Thread alux
. (I actually didnt expect this to work, but to prevent me from working isnt nice ;-) Greetings, alux On 18 Mai, 20:37, Dave Fayram wrote: > That is a very useful bit of information. Thanks! > > On Tue, May 18, 2010 at 6:01 AM, Moritz Ulrich > > > > wrote: > > Slim

Re: Does emacs suppress output from thread ?

2010-05-18 Thread alux
I should add, that a new thread runs in the default environment again. You may set the *out* variable in your thread with "binding": (let [dummy *out*] ; to have a name for the current *out* (.start (Thread. (fn [] (binding [*out* dummy] (prn x)) Regards, alux On 18 Mai, 0

Re: Does emacs suppress output from thread ?

2010-05-18 Thread alux
Hi Preecha, output in Clojure is sent to *out* (a variable that refers to System.out by default). If you use emacs / slime this variable will be set differently. You should find your threads output in the swank- REPL, if you can find it somewhere. Regards, alux On 18 Mai, 03:26, Preecha P

When is *err* used?

2010-05-17 Thread alux
kind regards, alux -- 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 gr

Re: ?: promotion of integral types

2010-05-05 Thread alux
Thank you for the discussion - even if I dont understand it immediately ;-) Grettings, alux On 5 Mai, 17:32, David Nolen wrote: > On Wed, May 5, 2010 at 11:11 AM, Sean Devlin wrote: > > > I think there's a fundamental assumption that I disagree with. > > > Since we&#x

?: promotion of integral types

2010-05-05 Thread alux
? Thank you, alux -- 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 g

Re: Defining a namespace inside a let

2010-05-02 Thread alux
Hello Stuart, "they don't work as you'd expect". Ah, I see. Thank you ;-) Hm. Can you point me to some documentation about these special rules then? Many thanks, alux On 30 Apr., 18:10, Stuart Sierra wrote: > "ns" and "in-ns" have special evaluati

Re: Defining a namespace inside a let

2010-04-30 Thread alux
Hello Armando, did you try the second half of you experiment in a clean REPL? As you describe it, the first evaluation may have created the var. Regards, alux On 29 Apr., 21:32, Armando Blancas wrote: > > The REPL switches to the namespace ns-1 and the var my-namespace is in > > us

Re: Defining a namespace inside a let

2010-04-29 Thread alux
(println (do (ns ns-1) (def my-namespace *ns*) my-namespace)) The REPL switches to the namespace ns-1 and the var my-namespace is in user ! That seems to be the background of Davids irritation. Any explanations? Kind regards, alux On 28 Apr., 17:37, Nate Young

Re: Embedding swank-clojure

2010-04-19 Thread alux
t least thats what I think is the reason). I.e. hit enter if connected, or try to connect. Certainly there should be a better way, but may be you can start from here. Regards, alux public static void main(String[] args) throws InterruptedException{ ThreadGroup tg = ne

Re: do we have is-delivered? for promise

2010-04-17 Thread alux
ate of such beast at a certain moment - and so the printer has to stop at the current end of the list, and not block. Thanks again, and kind regards, alux On 17 Apr., 16:46, Per Vognsen wrote: > Not currently. I added the capability to some code I posted last month > for fixing print-met

do we have is-delivered? for promise

2010-04-17 Thread alux
Hi, is there any nonblocking way I kind find out whether a promise has been delivered? Thanky you, alux -- 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 n

Re: Communication: How to model it?

2010-04-15 Thread alux
Info: Service paused. ... So, seque sounds right at the first stage - the sequence of lines. The second stage - sequence of messages might need some reordering or different approach. Thanks a lot, alux On 15 Apr., 14:32, Meikel Brandmeyer wrote: > Hi, > > On Apr 15, 2:10 pm, alux

Re: Communication: How to model it?

2010-04-15 Thread alux
a few lines. (And thanks for preventing me to fall into that REPL trap.) Now I will try and use it. Thanks and greetings, alux On 15 Apr., 14:55, Per Vognsen wrote: > The first thing I ever implemented with promises was dataflow > programming in this style. A good read is the chapter on

Re: Communication: How to model it?

2010-04-15 Thread alux
d and tail of a "seq" are references, they dont fit the interface anymore, or do they. Still thinking ;-) Kind regards, alux On 14 Apr., 22:41, Anniepoo wrote: > what you want is just a stream in each direction. > > Bob:  So, how do you feel about the Smith contract? > F

Re: ?: create static inner Java class with constructor argument

2010-04-14 Thread alux
Thank you verec, I hadn't been aware of this. Kind regards, alux On 13 Apr., 00:08, verec wrote: > You may also want to browse this thread: > > http://groups.google.com/group/clojure/browse_frm/thread/a80e07675663... -- You received this message because you are subscribed to the

Communication: How to model it?

2010-04-14 Thread alux
still dont know. Any tips or constructive criticism welcome. Thank you for reading. Regards, alux -- 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 m

Re: create static inner Java class with constructor argument

2010-04-12 Thread alux
Oh, thats fine. Now I can even reduce my (Class/forName "javax.sound.sampled.SourceDataLine") to just SourceDataLine I like shortening code (especially if it stays readable). Thank you. alux On 12 Apr., 14:41, Michael Wood wrote: > On 12 April 2010 13:54, alux wrote

Re: create static inner Java class with constructor argument

2010-04-12 Thread alux
Aaaah! Hello Kevin, right, thank you! I had even seen this once before, but forgot it ;-) Regards, alux On 12 Apr., 13:34, "Kevin" wrote: > > import javax.sound.sampled.*; > > > ... > > > Line.Info li = new Line.Info(Object.class); > > > My

?: create static inner Java class with constructor argument

2010-04-12 Thread alux
ybody see what I'm doing wrong here? Beside, ist there a way to access the Java class in a direct way, like the Java literal Object.class ? Thank you, alux -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: "Introduction to Monads in Clojure" tech talk

2010-04-11 Thread alux
Thank you! Nice step by step intro. Regards, alux On 9 Apr., 06:04, "Mike T. Miller" wrote: > Adam Smyczek's "Introduction to Monads" video is now available. > > http://www.youtube.com/user/LinkedInTechTalks?feature=mhw5#p/u/0/ObR3... > > I'll work

JLine in maven clojure:repl in eshell

2010-04-05 Thread alux
Hello, if I include the follwing lines in my maven pom, shouldn't I have some line editing stuff (like cursor up or so) even in Emacs' eshell? (I ask because this is the only shell I get an keyboard echo.) jline jline 0.9.9 Thank you, alux -- You received this message b

Re: mvn clojujure:repl - no keyboard echo

2010-03-29 Thread alux
It took me a while to find time to try again. I now removed any dependency to incanter - the problem obviousely hasn't to do with it. So I "moved" the request to the plugin group. Kevin, thank you for you response, it wasnt "noise" at all ;-) Regards, alux On 23 Mr

Re: Ants in anger

2010-03-28 Thread alux
Addendum: After about a day of CPU time most of the refs are at 9 or 10 with their history length. a. On 28 Mrz., 14:18, alux wrote: > Hi, > > I played with Richs ant colony these days, and want to report about > experience with 4 cores. > > First I didn't want my com

Ants in anger

2010-03-28 Thread alux
e of reaching the default :max-history (the default is 10). This is what I want to share, maybe its of help to somebody. Kind regards, alux -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

Re: Fighting with Emacs ;-)

2010-03-28 Thread alux
e I do non commuting stuff ;-) Second wrongly assumed (in-ns xxx) needs no quoted name. So now it works (as it did before), but now I even see it working. Thank you for the help and a nice sunday. alux On 28 Mrz., 05:01, Michał Marczyk wrote: > On 27 March 2010 22:25, alux wrote: > &

Fighting with Emacs ;-)

2010-03-27 Thread alux
know where I have to look for a solution? Many thanks, alux -- 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 w

Re: mvn clojujure:repl - no keyboard echo

2010-03-22 Thread alux
Really no ideas? Hm. I dont know what to do too. Reagrds, alux -- 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

mvn clojujure:repl - no keyboard echo

2010-03-22 Thread alux
e are echoed to the shell only after I hit Enter. So thats not really a usable REPL. Anybody heard about that and has a solution? Many thanks, alux -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: General question: Petri nets and STM in clojure

2010-03-22 Thread alux
stuff under the hood. (The best way I know to learn this is still Rich Hickeys videos.) Dont know whether thats been helpful, but I cant do more. Kind regards, alxu Ryan Teo schrieb: > Hi alux, Andrej, > Thanks! > I'm still trying to understand how STM works in Clojure, so I would

Re: Maven clojure:repl

2010-03-22 Thread alux
Thank you Stuart, this closes some of my thinking loops. Greetings from Europe, alux Stuart Sierra schrieb: > Maven has a default search path, but it only works for the standard > plugins distributed by Apache. > > To use the Clojure plugin (any of the clojure:* commands) the po

Re: General question: Petri nets and STM in clojure

2010-03-22 Thread alux
Hi Andrzej, I'm not a Petri net specialist too, but I dont see how one could simulate the view of a Clojure programmer onto STM, without simulation too the stuff programmers doesnt see: Richs under-the-hood-magic. Regards, alux Andrzej schrieb: > On Mon, Mar 22, 2010 at 4:36 AM, alu

Re: General question: Petri nets and STM in clojure

2010-03-21 Thread alux
i net tool for nets colored with Clojure. But thats another topic ;-) Regards, alux -- 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 modera

Re: Maven clojure:repl

2010-03-21 Thread alux
Hello Stuart, yes, thats not in. I'm not enough into maven to know where the plugins have to be specified. I had the hope that maven searches its repository, when I call a specific goal of the form xxx:yyy - so this hope was in vain? Thank you for the comment. Regards, alux Stuart S

Re: Swank, ELPA and Emacs version do you use?

2010-03-21 Thread alux
Thank you Rob, emacs and slime already works if kept for semselves. What doesnt work is the maven integration, so I can start the swank server in a certain project. Regards, alux Rob Wolfe schrieb: > alux writes: > > > Okay. So I switched to version 23.1. that had already be

Re: Maven clojure:repl

2010-03-21 Thread alux
I actually dont understand where this file and date comes from. I dont see it in the source tree of the plugin. Thanks for the help and greetings, alux Mark Derricutt schrieb: > The plugin is in central, tho you need to declare it in your project as > outlined in the README: > > >

Re: Swank, ELPA and Emacs version do you use?

2010-03-20 Thread alux
Okay. So I switched to version 23.1. that had already been installed. AFAIK it uses all the things I installed the last days. Or do I have to update some other stuff? Thank you for the hints, alux Phil Hagelberg schrieb: > On Sat, Mar 20, 2010 at 12:46 PM, alux wrote: > > As far as I u

Re: Maven clojure:repl

2010-03-20 Thread alux
Hi Mark, sound plausible. But what should I do now? If there is any way to tell maven what it should use, I'd be happy. Preferred in settings.xml, so i can use it in every project. Thank you, alux Mark Derricutt schrieb: > If this was a fresh project with no plugins defined, maven would

Swank, ELPA and Emacs version do you use?

2010-03-20 Thread alux
EMacs versions. So which Emacs version do you use? Thank you, alux -- 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

Re: Maven clojure:repl

2010-03-20 Thread alux
But even if I delete it, and do mvn -o clojure:swank I get the same error. Black maven magic. ;-( Regards, a. alux schrieb: > deleting it doesnt help, it seems to be reloaded when I run > clojure:swank > > a. > > > > alux schrieb: > > So, I found a file: &

Re: Maven clojure:repl

2010-03-20 Thread alux
deleting it doesnt help, it seems to be reloaded when I run clojure:swank a. alux schrieb: > So, I found a file: > > %repo%\org\apache\maven\plugins\maven-clojure-plugin\maven-metadata- > central.xml > > containing > > > > org.apache.maven.plugins > maven

Re: Maven clojure:repl

2010-03-20 Thread alux
So, I found a file: %repo%\org\apache\maven\plugins\maven-clojure-plugin\maven-metadata- central.xml containing org.apache.maven.plugins maven-clojure-plugin No, I dont know where it comes from. a. alux schrieb: > Hm. > > It cant be an incanter problem. In an empty directo

Re: Maven clojure:repl

2010-03-20 Thread alux
] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clojure-plugin' does not exist or no valid version could be found ... I dont knwo what to do. Thanks & regards, alux alux schrieb: >

Re: Maven clojure:repl

2010-03-20 Thread alux
Um, thats been copy and paste, yes. (side remark, I read on about the plugin, and now I installed the needed swank file too) Thanks and greetings, alux liebke schrieb: > Ah, you're right, only the bin/swank script calls maven the clj and > clj.bat scripts are stand-alone, I th

Re: Maven clojure:repl

2010-03-20 Thread alux
swank in the directory modules/incanter-app failed. So I'm still stuck with your tutorial. Is there any way to add an entry in my maven settings file, so the clojure plugin is always found? Thank you, alux liebke schrieb: > There are two solutions to your problem, 1) use the bin/cl

Re: Maven clojure:repl

2010-03-20 Thread alux
enough. Seems I need to do more to the plugin than mvn install. Do I have to put some entries in the incanter pom, or in my myvan init file? Thank you for you answer, alux Meikel Brandmeyer schrieb: > Hi, > > On Sat, Mar 20, 2010 at 04:56:39AM -0700, alux wrote: > > >

Re: Translation from Common Lisp 1

2010-03-20 Thread alux
Hello Christophe, this one I like ;-) Thanks & regards, alux Christophe Grand schrieb: > If you really wan't to go that way you can also choose to remove the > namespaces: > (defn describe-path [[where what]] > (map (comp symbol name) `(there is a ~what going ~where from

Re: lazy-cons

2010-03-20 Thread alux
And array-get seems to be aget by now. a. Jarkko Oranen schrieb: > On Mar 20, 1:52 pm, Glen Rubin wrote: > > Hey all, > > > > I am working through the problems on project euler.  On question > > number 11 (http://projecteuler.net/index.php?section=problems&id=11), > > I was unable to come up wit

Re: lazy-cons

2010-03-20 Thread alux
Hi Glen, it's lazy-seq now. Regards, alux Glen Rubin schrieb: > Hey all, > > I am working through the problems on project euler. On question > number 11 (http://projecteuler.net/index.php?section=problems&id=11), > I was unable to come up with a solution, so I chea

Maven clojure:repl

2010-03-20 Thread alux
lugin 'org.apache.maven.plugins:maven-clojure-plugin' does not exist or no valid version could be found I dont know where to search for a solution, so I ask here. Thanks for any help, alux -- You received this message because you are subscribed to the Google Groups "Clojure&quo

Re: getRuntime exec call?

2010-03-19 Thread alux
;-) I'm still at letter b in clojure.core. Grin. Regards, a. Meikel Brandmeyer schrieb: > Hi, > > On Fri, Mar 19, 2010 at 11:00:34AM -0700, alux wrote: > > > spels=> (make-array (.getClass "") 2 ) > > # > > spels=> (def arr (make-array (.getCla

Re: getRuntime exec call?

2010-03-19 Thread alux
pels=> (aset arr 1 "c:\\config.sys") "c:\\config.sys" spels=> (.exec (Runtime/getRuntime) arr) Greezs, alux Tim Daly schrieb: > The call I coded works if you only pass a string with no spaces. > > However, if the string has spaces there is no result. > If you br

Re: REPL behaviour / time / lazyness

2010-03-19 Thread alux
Ah, brilliant, many thanks Laurent! Interesteresting stuff under the hood .. Kind regards, alux Laurent PETIT schrieb: > hi, follow links from here: > http://www.infoq.com/news/2009/12/clojure-11-rc1-transients > > chunked sequences have their first elements realized in advanced by

Re: REPL behaviour / time / lazyness

2010-03-19 Thread alux
Laurent, > Could chunked seqs explain something here ? sounds possible. If I only knew what this is ;-) Regards, alux Laurent PETIT schrieb: > 2010/3/19 alux : > > ;-) > > > > Still, I dont believe. > > > > I get the same difference with >

Re: REPL behaviour / time / lazyness

2010-03-19 Thread alux
t point for the iterate as response to your mail. Thats why now both starts with 0 as argument, and 1 as result. But the range one waits some five sec, the iterate doesnt. Sorry for the confusion. And thanks for the patience ;-) Kind regards, alux PS.: A correct Fibonacci sequence would use (&l

Re: Translation from Common Lisp 2

2010-03-19 Thread alux
JC Petkovich, thank you. I couldnt see your message before March 19, 6:00 group time, i.e. 13:00 UTC, but thats exactly the solution that was needed. Regards, alux JC Petkovich schrieb: > You just needed to edit your translation from CL a bit more, there > were some extra brackets in y

Re: REPL behaviour / time / lazyness

2010-03-19 Thread alux
3 21 34 ...) Hm. Regards, alux Meikel Brandmeyer schrieb: > Hi, > > On Mar 19, 12:34 pm, alux wrote: > > > You didnt try this, as I can judge, because you responded in finite > > time ;-) > > Ah, yes. Intersperse with (take 10 ...) at will. :) > > > My

Re: getRuntime exec call?

2010-03-19 Thread alux
The call to a static method is special, try (.exec (Runtime/getRuntime) "ls") Regards, alux TimDaly schrieb: > (defn cmdresult [cmdstr] > (let [args (into [] (seq (.split cmdstr " ")))] > (BufferedReader. > (InputStreamReader. > (. (.

  1   2   >