Re: RFC: dynamic-object, a library for working with Clojure data in Java

2014-06-19 Thread Ryan Schmitt
This has proven to be somewhat complicated, but I've finally pushed a release of 0.1 to the staging repository. (I also added support for validating nested collections.) If all goes well, it should be available via Maven Central within a day or two. On Monday, June 16, 2014 7:09:07 PM UTC-7, At

Understanding when compilation occurs - for function producing functions

2014-06-19 Thread Mark P
Suppose at my REPL I do... (defn direct-report-oneplustwo [] (println (str "Direct one plus two is " ((fn [n] (+ 1 n)) 2) "."))) ...then I presume that the compiler has compiled my direct-report-oneplustwo function, and that this has included compilation of my anonymous function (fn [n] (+ 1 n

Re: When to use (ensue) ?

2014-06-19 Thread juan.facorro
Hi Hussein, Maybe this StackOverflow Q&A can help in understanding when to use *ensure* : Clojure STM ambiguity factor . HTH, Juan On Thursday, June 19, 2014 10:35:24 AM UTC-3, Hussein B. wrote: > > Hi, > > When dealing with Clojure ref types, when to

Leiningeng 2.4.x problem? Or is it my config?

2014-06-19 Thread Mars0i
After I upgrading to Leiningen 2.4.0, Ctrl-C causes an exception that throws me out to the shell, rather than bringing me back to the Leiningen prompt. I just upgraded to 2.4.2 and still have the problem. On another machine with an older Leiningen, I have no problem. I suspect it's something

Re: restarts

2014-06-19 Thread Thomas Heller
Excuse my ignorance of not knowing anything about CL and restarts but I needed something like retry a while back. I started with something like this (defn do-something-that-might-fail [] (let [v (rand)] (prn [:v v]) (when (> v 0.1) (throw (ex-info "boom" {}))) v)) (loop [at

Re: restarts

2014-06-19 Thread Michael Griffiths
You may be interested in ribol: https://github.com/zcaudate/ribol http://docs.caudate.me/ribol/ I've not had a chance to play with it myself. On Thursday, 19 June 2014 17:25:04 UTC+1, Christopher Howard wrote: > > Does Clojure have restarts or continuable-errors like in CL? Or > something simil

restarts

2014-06-19 Thread Christopher Howard
Does Clojure have restarts or continuable-errors like in CL? Or something similiar? If not, is that something that could be implemented some how? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

When to use (ensue) ?

2014-06-19 Thread Patrick Kristiansen
I believe it is to avoid write skew. Check this Wikipedia page: http://en.m.wikipedia.org/wiki/Snapshot_isolation -- 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: ClojureScript ^:export defprotocol

2014-06-19 Thread Mike Fikes
I found the solution to the original question I had posed: Is there a way to indicate the protocol names should be preserved? > (Analogous to the way ^:export can be used on function definitions.) You simply need to place the meta directly in the method signature forms, as illustrated here: (

Re: Leiningen 2.4.2 upgrade causing problems

2014-06-19 Thread Stefan Kamphausen
Hi Andy, On Thursday, June 19, 2014 3:39:41 PM UTC+2, Andy Fingerhut wrote: > > Stefan, with the ~/.lein/profiles.clj you pasted: > > {:user {:plugins [[jonase/eastwood "0.1.4"] > [cider/cider-nrepl "0.7.0-SNAPSHOT"]] }} > > I do not see the problem. If I change "0.1.4" to "0.1

Re: Leiningen 2.4.2 upgrade causing problems

2014-06-19 Thread Andy Fingerhut
Stefan, with the ~/.lein/profiles.clj you pasted: {:user {:plugins [[jonase/eastwood "0.1.4"] [cider/cider-nrepl "0.7.0-SNAPSHOT"]] }} I do not see the problem. If I change "0.1.4" to "0.1.2" I do. From earlier messages in this thread, that sounds consistent with your experie

When to use (ensue) ?

2014-06-19 Thread Hussein B.
Hi, When dealing with Clojure ref types, when to use (ensure) ? Thanks. -- 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: macro - unquote

2014-06-19 Thread François Rey
http://clojure.org/reader#The Reader--Macro characters -- 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

macro - unquote

2014-06-19 Thread sorin cristea
hi all, related to macro definition, what are the differences between*[** ' ]* char and *[ ` ]* char ? thanks. -- 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

Re: Leiningen 2.4.2 upgrade causing problems

2014-06-19 Thread Stefan Kamphausen
Hi, On Wednesday, June 18, 2014 6:13:02 PM UTC+2, Sean Corfield wrote: > > I am using Eastwood 0.1.2 without problems with Leiningen 2.4.2 but > perhaps Stefan and others are seeing conflicts because of other stuff in > ~/.lein/profiles.clj with Eastwood? > > That file is rather small on my mach