News for hackers. Stuff that matters.
Re:The Common Lisp Condition System – Upcoming Book by phoe-krk on Wednesday July 15, 2020 @08:41AM (#23844321)
Additionally, one of the most tasty facts about it is that the Common Lisp condition system is written in Common Lisp itself. It's literally a Lisp plugin that only needs to be integrated with the rest of the system at its end points: where the conditions are signaled and where the debugger is entered.
Re:The Common Lisp Condition System – Upcoming Book by lukashrb on Wednesday July 15, 2020 @09:59AM (#23845293)
Does anyone know if it is possible to integrate such a system, as plugin, in clojure? Is there already a project like that?
Re:The Common Lisp Condition System – Upcoming Book by divs1210 on Wednesday July 15, 2020 @12:00PM (#23847131)
Yes, there are multiple libraries, for example:

https://github.com/clojureman/special

Re:The Common Lisp Condition System – Upcoming Book by phoe-krk on Wednesday July 15, 2020 @12:06PM (#23847226)
Thank you! I will include this in the book. How should I credit you?
Re:The Common Lisp Condition System – Upcoming Book by divs1210 on Wednesday July 15, 2020 @01:20PM (#23848332)
I am Divyansh Prakash - github.com/divs1210

The credit goes to the author of that library, though. :)

All the best for your book!

Re:The Common Lisp Condition System – Upcoming Book by phoe-krk on Wednesday July 15, 2020 @01:22PM (#23848371)
Thanks. It was you who directed me towards this implementation and made it possible for me to mention it in the book, though, so I only consider it fair if I also add you to the book's Hall of Fame.
Re:The Common Lisp Condition System – Upcoming Book by nahuel0x on Wednesday July 15, 2020 @05:08PM (#23851860)
for conditions in Clojure also check this: https://gist.github.com/msgodf/6f4e43c112b8e89eee3d
Re:The Common Lisp Condition System – Upcoming Book by phoe-krk on Wednesday July 15, 2020 @05:10PM (#23851893)
Thank you for the link. How should I credit you?
Re:The Common Lisp Condition System – Upcoming Book by phoe-krk on Wednesday July 15, 2020 @10:03AM (#23845341)
I haven't explored Clojure. If it allows one to customize the means in which errors are signaled (read: force the language to not immediately throw a Java exception on an error, and instead execute some code), then one should be able to implement both signaling and a debugger.

It might not be easy to tell Clojure or the JVM to not be trigger happy with throwing exceptions and therefore destroying the stack. Perhaps one will find a way through!