Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Lee Spector
PS the rousing applause during Hugo's talk when he shows how you can view locals reminded me that I had seen this before, and indeed when I checked I remembered that I was even involved in a previous conversation about ritz-nrepl on this list. And I remember that the main obstacle to my happine

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Lee Spector
Thanks so much Chris. I've started watching Hugo Duncan's ritz talk and it is definitely what I need to see. It's funny because I never thought of this as platform or IDE functionality -- although it clearly is -- because in the Common Lisp world that I come from, some version of this is avai

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread zcaudate
Hi Dima, > > I've push v0.2.3 to clojars... an example can be seen here: http://z.caudate.me/ribol/#raise-on (raise-on [[NumberFormatException ArithmeticException] :divide-by-zero Throwable :throwing] (throw (Throwable. "oeuoeu")) (finally (println 1))) => (raises-i

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-27 Thread Chris Zheng
Hey Lee. I'm learning conditional restarts myself…. thus the reason why I implemented the library so I'm probably not the best person to ask As far as I know… restarts have to be supported by the language itself in order for it to truly blossom the way you are describing it. ribol is just a lib

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Lee Spector
I apologize for the naivety of this question, but whenever I see libraries/discussions of enhanced mechanisms for exceptions/conditions/errors/restarts/etc in Clojure I wonder if they could provide a couple of features that I dearly miss from Common Lisp, and this contribution makes me wonder

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Chris Zheng
Hi Dima, I think you can already add multiple types of exceptions with raise-on... I am sure it was there in my tests... :) will confirm today. It shouldn't be too hard to add a finally clause into the raise-on macro... Thanks for you suggestion i would caution again using too much of raise-on

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-26 Thread Dima Sabanin
Thanks for implementing this! I found myself in a situation when I needed to provide different exceptions types triggering different errors in the raise-on macro. I implemented this as a macro that's just nesting the raise-on blocks: https://gist.github.com/dsabanin/6717877 Is that something that

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread zcaudate
Hi Dima, You can now put 'finally' clause in v0.2.2, just loaded onto clojars. I haven't done an example on the readme yet but the following should print a hello and return [1 2 :A]: (manage ;; L2 [1 2 (manage;; L1 (raise :A)

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread Dima Sabanin
Something as simple as (finally) block in (manage) would work for me, but I'm not sure how it fits the philosophy. As I said, I've read about conditional restarts in Common Lisp, but never actually used it in the real project. I wonder how finally block is implemented there? On Wed, Sep 25, 2013

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread zcaudate
Hi Dima, That's actually a really good question. I don't think it possible currently :) I think I do need to support a finally clause But can you give a code example of how you might want to write such a thing? -- -- You received this message because you are subscribed to the Google Group

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread Dima Sabanin
Hi Chris! Great library! I'm trying to apply this to a project I'm working on, but I'm somewhat new to the conditional restarts theory. What would I use instead of Clojure's finally block to properly free up the resources on error escalation? -- Thanks, Dima Sabanin http://twitter.com/dimasabani

Re: [ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread Baishampayan Ghose
This is brilliant, thanks! ~BG On Wed, Sep 25, 2013 at 12:44 PM, zcaudate wrote: > I've done a pretty comprehensive guide on conditional restart systems in > clojure with diagrams to show why it is much more flexible over try/catch > mechanism > > Project: > https://github.com/zcaudate/ribol

[ANN] ribol "v0.2.1" - comprehensive document on conditional restart systems

2013-09-25 Thread zcaudate
I've done a pretty comprehensive guide on conditional restart systems in clojure with diagrams to show why it is much more flexible over try/catch mechanism Project: https://github.com/zcaudate/ribol Generated Documentation: http://z.caudate.me/ribol/ -- -- You received this messag