freenode/#lisp - IRC Chatlog
Search
2:16:14
jmercouris
I'm looking at it now, seems pretty good, but just wondering if there was something else, I like reading from multiple resources usually
2:41:25
emaczen
Or sorry, you should pass the code you want called in the function argument to #'gui:execute-in-gui
2:42:34
emaczen
jmercouris: if you are looking at GUI work with commonlisp, ABCL is really easy to use Java's swing libraries
2:43:18
emaczen
I've just tinkered around with ABCL for other reasons but it is as easy as (setf frame (new 'Jframe))
2:48:52
jmercouris
emaczen: Thank you for the advice, but I already use EQL for gui, just toying around with cffi for some other ideas
2:52:02
jmercouris
you can install it and check out the examples section: https://gitlab.com/eql/EQL5
2:52:31
iqubic
I thought it was a function to check if two symbols pointed to the same memory location.
3:42:21
turkja
Does anyone know any good examples of GUI apps written for ABCL? I mean some serious app, not just "hello java".
4:38:39
shrdlu68
In the loop above it looks you don't need the into and return keywords. i.e. (loop for x from 1 to (1- (length stringA)) collecting x) would suffice.
5:20:41
shrdlu68
paule32: That's a very specific error, the same error you get when you try to read the 6th element from a vector of 2 elements.
10:55:26
beach
Is there an appropriate existing error condition that could be signaled if an attempt is made to execute a form that had compilation errors.
10:57:43
phoe_
"if an attempt is made toexecute a form that had compilation errors" - that's a compile-time of condition.
10:59:38
phoe_
and yes, (defun foo () (go 3)) gives me a condition which is a subtype of PROGRAM-ERROR on SBCL
11:05:42
phoe_
"The errors that result from naming a go tag or a block tag that is not lexically apparent are of type program-error. "
11:06:00
shka
beach: i think that signalling same error in exec time as in compilation time is reasonable
11:06:21
phoe_
"The errors that result from giving throw a tag that is not active or from giving go or return-from a tag that is no longer dynamically available are of type control-error."
11:07:09
phoe_
Class precedence-list: SB-INT:COMPILED-PROGRAM-ERROR, PROGRAM-ERROR, ERROR, SERIOUS-CONDITION, CONDITION, SB-PCL::SLOT-OBJECT, T
11:09:06
beach
shka: What SBCL does is that it includes the compile-time error in the run-time error. Nice.
11:09:36
phoe_
I think that when it encounters compile-time erroring code, it actually bakes the found condition in the compiled code and then signals it.
11:10:46
phoe_
Yes, that's what I've been trying to convey. It compiles a call to error that calls the condition that was signaled at compile-time.
11:11:45
beach
It compiles a call to ERROR that signals a condition of type sb-int:compiled-program-error, and that condition contains the instance of the error signaled at compile time.
11:26:57
beach
So the restartable-form I have may signal a compile-time error and I want to store that error condition in the run-time error condition. I came up with this solution: (let (cc) (restart-case (handler-case (form-that-may-signal-an-error) (error (c) (setf cc c) (error c))) (my-restart () (make-condition 'run-time-error :compile-time-error cc))))
11:27:27
beach
I.e. I handle the compile time error by storing it in CC and then signaling it again.
11:39:28
beach
But it is more complicated. I need to create a FORM that, when executed, makes a condition that includes a condition that existed at compile time.
11:41:44
beach
I think I can do something simpler. If this is the file compiler, I just won't attempt to create a FASL, so the compile-time condition does not have to be there.
11:42:04
beach
If it is not the file compiler, I can just include the condition itself in the source code.
11:42:18
phoe_
because SBCL has its own thing called a slot-object, and conditions are slot-objects.
12:02:06
paule32
i tried "fill", but lost by compare, and add zeros to the first list depend on list2
12:32:33
jdz
paule32: you could work as a magician: you keep pulling out variables like rabbits out of a hat.
12:35:49
Shinmera
Sometimes the things that are going on in this channel fill me with such inexplicable, explosive rage and fury that I wonder why I even bother coming here at all.
12:53:06
Shinmera
beach: Sometimes when I see people that give me the impression they're not learning, or not doing their own work, I just get really mad. It's stupid of me, but I can't help it, it seems.
12:54:07
Josh_2
I wouldn't say it is stupid of you to get mad, more a waste of your own energy. It is understandable that you would get frustrated, especially if you are self taught.
12:56:36
Josh_2
Shinmera: I would argue that it isn't stupid to feel that way, because saying it is stupid may lead you to more negative emotion. I say accept and move on without judgement.
13:12:43
Bike
beach: for what it's worth, it looks like sbcl writes the compile-time error to a string, and then signals a generic runtime condition that has that string in a slot, along with a string of the form.
13:13:53
Bike
it feels like there should be an actual condition, but i'm not sure what would really be handling this kind of condition anyway.