Re: Data vs API

2012-05-05 Thread Mark
Thanks all, folks. Rich's video helped tremendously. The a-ha moment was the realization that the biggest reason to abstract data access in Java is the non-uniform built-in access to data: accessing fields in objects is different from hashmaps which is different from instance access which is

Difficulty understanding (new?) behavior of identical?

2012-05-05 Thread David Sletten
Can anyone explain this change? (clojure-version) = 1.2.0 (let [x 8.9] (identical? x x)) = true Compared to: (clojure-version) = 1.4.0 (let [x 8.9] (identical? x x)) = false Thanks. David Sletten -- You received this message because you are subscribed to the Google Groups

Re: Difficulty understanding (new?) behavior of identical?

2012-05-05 Thread Daniel Solano Gómez
On Sat May 5 14:53 2012, David Sletten wrote: Can anyone explain this change? (clojure-version) = 1.2.0 (let [x 8.9] (identical? x x)) = true Compared to: (clojure-version) = 1.4.0 (let [x 8.9] (identical? x x)) = false Well, this is certainly an interesting phenomenon. What is

Re: Difficulty understanding (new?) behavior of identical?

2012-05-05 Thread David Sletten
On May 5, 2012, at 3:06 PM, Daniel Solano Gómez wrote: On Sat May 5 14:53 2012, David Sletten wrote: Can anyone explain this change? (clojure-version) = 1.2.0 (let [x 8.9] (identical? x x)) = true Compared to: (clojure-version) = 1.4.0 (let [x 8.9] (identical? x x)) = false Well,

Re: Difficulty understanding (new?) behavior of identical?

2012-05-05 Thread Daniel Solano Gómez
On Sat May 5 16:43 2012, David Sletten wrote: Thanks for your response Daniel. You explain WHAT is apparently happening here. However, I am still struggling to understand WHY this is the new behavior. Yes, this is indeed a valid question. I think the answer is that this particular behaviour

Re: Difficulty understanding (new?) behavior of identical?

2012-05-05 Thread David Sletten
Fantastic Daniel. Your thorough analysis has cleared up my confusion. I see now that Java is partly to blame for this idiosyncratic behavior. Furthermore, I agree that this is a relatively unlikely use of 'identical?'. Considering all of the usual concerns when comparing floating-point numbers,

Clojure 1.3+ and JRebel

2012-05-05 Thread Kurt Harriger
I'm attempting to start a swank-clojure session within a grails application. This part is easy and works fine. However, whenever I change a groovy class clojure does not see this change until I restart the jvm. I mucked around a bit with classlojure and pomegranate trying to figure out if I

clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Hi, my project.clj contains :dependencies [[org.clojure/clojure 1.4.0] [noir-cljs 0.3.0] [jayq 0.1.0-alpha1] [fetch 0.1.0-alpha2] [crate 0.1.0-alpha3] [noir 1.3.0-beta2]] but 'lein deps' does not download any

clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Kurt Harriger
When i first upgraded to clojure 1.4 i had a similar issue with lein not downloading updated dependencies. It tirned out to be an invalid version range dependency spec in midje that caused it to fail silently. Perhaps try removing all other dependencies first and try again. -- You received

Re: new with clojure, need help!

2012-05-05 Thread Rostislav Svoboda
i need a more basic guidence on how to install the nessecery plugins to eclipse, and what to do with them... eclipse IDE may look like a good idea but in the beginning it just increases the amount of work you need to do and troubles you need to overcome. Just start with the REPL and any

Re: [ANN] The It starts to look like a real App, 1.2.0 release of the Clojure Namespace Browser (clj-ns-browser)

2012-05-05 Thread Rostislav Svoboda
I put :dev-dependencies [[clj-ns-browser 1.2.0]] to my project.clj and did: $ lein deps Copying 46 files to /home/bost/dev/webcli/lib [WARNING] Overriding profile: 'null' (source: pom) with new instance from source: pom [WARNING] Overriding profile: 'null' (source: pom) with new instance from

Re: new with clojure, need help!

2012-05-05 Thread Jim - FooBar();
On 06/05/12 00:51, Rostislav Svoboda wrote: i need a more basic guidence on how to install the nessecery plugins to eclipse, and what to do with them... eclipse IDE may look like a good idea but in the beginning it just increases the amount of work you need to do and troubles you need to

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Brian Marick
On May 5, 2012, at 6:37 PM, Kurt Harriger wrote: When i first upgraded to clojure 1.4 i had a similar issue with lein not downloading updated dependencies. It tirned out to be an invalid version range dependency spec in midje that caused it to fail silently. Perhaps try removing all other

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
On 6 May 2012 01:37, Kurt Harriger kurtharri...@gmail.com wrote: When i first upgraded to clojure 1.4 i had a similar issue with lein not downloading updated dependencies. It tirned out to be an invalid version range dependency spec in midje that caused it to fail silently. Perhaps try

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Michael Klishin
Rostislav Svoboda: My guess is that any of the dependencies I defined in my project.clj contains :dependencies [[org.clojure/clojure 1.3.0] ... ] so it overrides my [org.clojure/clojure 1.4.0] You can exclude org.clojure/clojure for your dependencies:

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Brian Marick
On May 5, 2012, at 7:38 PM, Rostislav Svoboda wrote: My guess is that any of the dependencies I defined in my project.clj contains :dependencies [[org.clojure/clojure 1.3.0] ... ] so it overrides my [org.clojure/clojure 1.4.0] If you have Leiningen 2, you can find the culprit like this:

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Guys, I need to thank you both. Now it works: :dependencies [ [org.clojure/clojure 1.4.0] [colorize 0.1.1 :exclusions [org.clojure/clojure]] [noir-cljs 0.3.0] [jayq 0.1.0-alpha1] [fetch 0.1.0-alpha2]