freenode/#lisp - IRC Chatlog
Search
23:56:30
sizur
you guys can do everything easy, so i assumed there would be a simple cli command for that already :)
23:56:59
sizur
but i understand since it's probably easy to invode adhoc command for that, the cli tool was never needed
23:59:30
jmercouris
sizur: elisp is missing a lot of things, you'll have better luck in #emacs for elisp specific questions
1:00:15
jmercouris
I'm trying to run the example here: https://trac.clozure.com/ccl/wiki/CocoaBridge and instead of drawing a red window, I just get the following: https://imgur.com/a/64OxP
1:07:27
jmercouris
It's interesting because it updates the "Window" section of the menubar, but the window is NOT visible, even when using "Bring all to front"
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.