Search
Friday, 25th of June 2021, 4:47:47 UTC
9:51:22
Guest63
Question - I'm getting "no dispatch function defined for #\I"
9:51:47
Guest63
I know the solution is (named-readtables:in-readtable cmu-infix:syntax)
9:52:01
Guest63
But for some reason it sometimes works / sometimes doesn't
9:52:38
Guest63
Appears I have to run (named-readtables:in-readtable cmu-infix:syntax) in REPL and cannot just run it as part of a file
10:04:57
phoe
sometimes, what do you mean?
10:05:13
phoe
if you want the readtable in the REPL, you have to switch to it in the REPL
10:05:39
phoe
a file-only IN-READTABLE only affects the file compiler, same as a file-only IN-PACKAGE
10:08:42
Guest63
Does it cascade down in a file? E.g. if I have a file with the above, and then have a "(load ...)", will the file loaded have it?
10:08:47
Guest63
I assume not, but checking
10:09:00
phoe
a proper solution is to use ASDF instead
10:09:24
Guest63
Yeah, I will do that later. Only so much complexity I can handle at this stage :)
11:45:29
jmercouris
I'm having a brain freeze
11:45:37
jmercouris
I have a list of arguments and I want to pass these to a function call
11:45:39
phoe
ACTION turns the heating on?
11:45:45
jmercouris
(funcall #'+ (list 1 2))
11:45:48
jmercouris
that's obviously not right
11:46:38
Guest63
you can also do (funcall #'+ 1 2)
11:46:50
jmercouris
that doesn't help Guest63
11:47:14
phoe
Guest63: in this case, yes, but this is only because you know the number of arguments
11:47:30
Guest63
ah yes, sorry I understand now
11:47:53
edgar-rft
ACTION argues with an unknown number of arguments
11:49:39
Guest63
(defun debate (starting-arg &optional remaining-arg) (apply #'try-arg (cons starting-arg remaining-arg)))
11:50:31
Guest63
It wouldn't be a bug to have a never ending loop, so that debate never ends ;)
12:19:40
flip214
Guest63: TRY-ARG just needs to call DEBATE again....
12:23:26
jcowan
Unfortunately, such a call would not be tail recursive, so the debate goes on until one of the participants blows their stack.
12:37:49
tfb
Real programmers do (apply #'funcall #'funcall #'+ '(1 2 3))
12:40:00
tfb
pretty sure somewhere out there there is code that does (apply #'funcall ...) in real use, sadly (perhaps not with iterated funcalls)
13:06:56
shka
tfb: what is wrong with apply #'funcall anyway? :P
13:12:03
jcowan
It's sort of like (cons 'a (cons 'b (cons 'c (cons 'd '()))))
13:19:15
beach
(APPLY #'FUNCALL is used in the SICL HIR evaluator.
13:19:51
phoe
beach: isn't that redundant? is there a case of APPLY FUNCALL that cannot be reduced to just APPLY?
13:20:09
Bike
probably a host apply and a sicl funcall, or something
13:20:16
beach
Sure, but we have a list where the first element is a function.
13:20:43
beach
So I guess it could be replaced by (apply (first list) (rest list))
13:21:38
beach
But then, the list is computed by LOOP, so an intermediate variable would have to be introduced to hold the result.
13:22:29
beach
So (apply #'funcall (loop ...)) would become (let ((list (loop ...))) (apply (first list) (rest list)))
15:07:56
beach
Here is an interesting project suggestion for someone who is not too busy: Write a "magit"-like pane for McCLIM. And presumably call it "McGIT".
15:08:40
beach
Such a pane will be a nice ingredient to have in an IDE. But it could also be used independently.
15:08:58
beach
I would think it could be attractive to non-Emacs users, for instance.
15:09:42
shka
you could visualize history easier then with just plaintext
15:10:04
beach
That too. Sort of like gitk does?
15:10:08
char
That would be valuble. magit is a killer feature
15:10:33
beach
Clickable, and also with context menus.
15:10:46
beach
Perfect for CLIM presentations.
15:11:03
splittist
Don't forget the fun of making people look for the Super key (:
15:12:24
shka
how one would hook in editor into that?
15:12:44
beach
This project could be done in fairly small increments, and it could be useful very soon. I mean, many people use only very basic GIT features anyway, so it would be useful to such people almost immediately.
15:13:34
beach
Editor integration might have to wait until the IDE is more developed.
15:15:02
beach
The project would include an (optional) application frame so that the entire thing could be run as an application.
16:19:06
beach
No takers on my suggested project?
16:19:26
splittist
On a summer Friday afternoon?
16:19:48
beach
Got to figure out what to do over the weekend, right?
16:21:08
splittist
clipping-regions and pixmaps
16:21:34
beach
Sure, you already have stuff to work on.
16:21:47
beach
But what about everyone else?
16:22:41
beach
Or they are trying desperately to debug their FFI-based project.
16:23:51
shka
ACTION wanted to implement the some of the missing functions for his ordered containers
16:24:24
splittist
beach: like https://github.com/Shinmera/legit ?
16:25:59
beach
That looks like an excellent base for what I suggest.
Friday, 25th of June 2021, 16:47:47 UTC