java static method call anomaly

2009-01-10 Thread gammelgedden
Hi, thanks for a great language and discussion group ! I got an error calling a static method on a java class using the new calling form. I am using the december release of Clojure from the download page (on windows XP, java 6) Is this a bug, or is it a difference between (.method Class) and (.

Re: java static method call anomaly

2009-01-10 Thread gammelgedden
Thanks, for your responses I have to read a bit more on that, I am not sure i fully understand, but I see that your suggestions work :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Parameter ordering on map/reduce

2009-03-31 Thread gammelgedden
I think clojure is a little torn between functional thinking and oo thinking - java vs haskell (i must admit that I am not originally a lisper, more of a java and functional guy) Functional / haskell style is what you see in map. that collection is at the end. The preceding arguments are like pa

Re: Clojure Users Group - Denmark

2009-04-01 Thread gammelgedden
Another Danish user here, I am in Copenhagen. I can only support the initiative but i dont think it will be possible to put so much effort into it. I am mostly a casual user, using clojure for ad hoc processing / conversion of various text file formats (like edifact, swift, xml ..) in connectio

Re: Dividing list by predicate

2010-05-23 Thread gammelgedden
I implemented something like that. my goal was to avoid the predicate being called twice, but apart from that it has some overhead. (defn- apl-compr- "the apl compress operator: 0 1 1 0 1 / 1 2 3 4 5 -> 2 3 5 implemented in clojure (apl-compr- [false true true false true] '(1 2 3 4 5)) -> (2

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread gammelgedden
First of all, good idea to have a dedicated string library in core. we use String manipulations often enough to make that worthwhile. The goal should be on making operations easy and efficient. Mostly a string is just a value like 42, 1.25 or 27-MAY-2010, calling for simple "arithemetic" function

Clojure servlet in tomcat - issues with -security option

2010-07-29 Thread gammelgedden
Hi, I am creating a little servlet to use in with tomcat, but have issues with tomcat -security. I am a beginner in this field and have started with a "bare metals" servlet written in java that loads a tiny little *hello world" script in clj. I use clojure.lang.RT.loadResourceScript to load the s

Re: Eclipse Clojure REPL dies (newbie)

2010-08-10 Thread gammelgedden
Now we are at eclipse / clojure, I ahave had some issues. I love eclipse, have used it a lot with java, but i could not get it working satisfactorily with cloure and ccw. Hopefully unjustified. I am using windows (XP). My issues were that as soon as I had had some compilation error (in ccw) i go

Re: Eclipse Clojure REPL dies (newbie)

2010-08-10 Thread gammelgedden
Thanks! I will definitely give it another try :-) -- 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.

CongoMongo - which version/fork is most uptodate

2010-10-14 Thread gammelgedden
I have recently looked at mongodb and liked the idea of a schema less database. I found somnium.congomongo and played with that for a while, but ran into some issues - it doesnt work with the current release 2.2 of mongo java driver - lots of reflection warnings - perhaps lacking some finish... A