libera/#commonlisp - IRC Chatlog
Search
14:06:45
dim
(let ((c (make-condition 'simple-error :format-control "error"))) (class-name (class-of c)))
14:10:44
dim
PR updated at https://github.com/dimitri/pgloader/pull/1411 with your feedback jackdaniel and Bike ; thanks
14:11:06
dim
let's see what the unit tests make of the current code, and then I'll ask my debian friend to test again with sid and SBCL 2.2.6
14:13:12
jcowan
aeth: does that mean that fedora/etc. will stop supporting xwayland? That would really be a disaster, and not just for WMs
14:14:17
jackdaniel
dim: in your handler-bind you handle all conditions (except for a few chosen ones) and print the backtrace for them - do you want to print a backtrace i.e for compiler notes?
14:18:05
NotThatRPG
It would be neat if something like UIOP provided some common condition classes usable across implementations
14:19:05
jackdaniel
another interesting trick in a toolbox is to have a macro like handler-case (let's call it handler-case*), that handles the condition, then unwind the stack and returns; then printing the backtrace in this situation could be done in the last serious-condition clause
14:19:34
jackdaniel
putting aside details like properly handling :no-error and multiple return values, writing such macro based on handler-bind is rather trivial
14:29:58
hayley
I believe I have a handler-case* somewhere, based off Pitman's condition system code.
14:31:24
NotThatRPG
@jackdaniel: I don't believe that there's a class that corresponds to compiler notes, for example.
14:32:54
hayley
But (deftype silly-condition () '(and condition (not serious-condition))) is useful.
14:33:39
jackdaniel
some conditions are not silly though! signaling partial results in an otherwise synchronous body is one example
14:34:27
NotThatRPG
hayley: Yes, it would be nice if one could make code that wraps around compilation, that could portably handle different implementations' equivalent of compiler notes (assuming that these are implemented as conditions of some sort).
14:35:13
aeth
jcowan: no, but afaik (based on another IRC channel anyway) Fedora would move exclusively to xwayland
14:40:44
Bike
shinmera and i have been talking about doing that, notthatrpg. it would basically be ripping out part of swank. i think my main conceptual confusion now is why sbcl "compiler errors" aren't actually errors
14:41:02
Bike
also i'll have to check if any implementations have a compile that never signals and only reports problems some other way, which would be annoying
14:46:07
Bike
i will see what i can do. i'm doing a bunch of other stuff for clasp at the moment, though
15:25:00
Bike
allegro has a compiler-note class but swank at least treats it as unexported. the abcl code looks like you have to bind an internal dynamic variable to make the compiler actually signal warnings. geh.