freenode/lisp - IRC Chatlog
Search
7:55:14
flip214
beach: a macro can get &environment, and find-class takes an optional environment argument
7:56:19
flip214
so, if I understand correctly, you've got a file with (defclass) and (some-macro-call), and when doing compile-file against that the macro can't see the class?
7:56:21
beach
I tried (eval-when (:compile-toplevel) (macrolet ((mac (&environment env)))) (format *trace-output* "~s" (find-class 'foo nil (mac))))
8:02:31
beach
When I do this: (eval-when (:compile-toplevel) (macrolet ((mac (&environment env) (find-class 'hello nil env))) (format *trace-output* "~s~%" (mac))))
8:02:57
flip214
my (defclass) expands into a (EVAL-WHEN (:COMPILE-TOPLEVEL) (SB-KERNEL::%COMPILER-DEFCLASS 'FOO4 'NIL 'NIL 'NIL))
8:05:45
Bike
and compiler defclass seems to just register it as a type name, rather than touch find-class at all, but i'm not sure there
8:41:50
aeth
Now I have to enable-paredit-mode on slime/etc. after I run ~/quicklisp/slime-helper.el
8:56:17
aeth
Also, unrelatedly, my game engine now hangs while compiling. It takes minutes at 100% single-threaded CPU, which is really strange for SBCL. It hangs on a very small file whose only updated dependency is alexandria. The only change in alexandria is rcurry. It uses curry and lerp.
8:59:15
aeth
This very messy temporary code that I wouldn't even use if it had always taken 1 minute to compile the file. https://gitlab.com/zombie-raptor/zombie-raptor/blob/e839ed04068d57ad2b02d65c2db614fb69d7061d/text/font.lisp
9:44:04
phoe_
type-specifier---any type specifier except values, or a type specifier list whose first element is either function or values.
9:44:38
phoe_
(or "any type specifier except values" "a type specifier list whose first element is either function or values")
9:45:21
phoe_
any type specifier except (or "values" "a type specifier list whose first element is either function or values")
10:01:09
flip214
type-specifier---any type specifier, except 'values' or a type specifier list starting with either 'function' or 'values'
10:03:30
phoe_
pushed - the change will take an hour to go live though since tymoon.eu only pulls the git version on full hours.
10:12:39
flip214
phoe_: not really. a line now and then isn't comparable in any way to the effort you spend here!!
11:05:21
sirkmatija_
Cl-charm get-char function doesn't detect keypresses, unless I hold the key down for longer time or press it multiple times. I have evaled both enable-raw-input and enable-non-blocking-mode. Anybody knows where is the problem? Thanks in advance
11:06:50
sirkmatija_
Oh, I also use get-char with :ignore-error t and loop it until it returns non-nil output (key char)
11:51:05
jurov
can anyone confirm I'm reading the example right - the let form sets current package to sample-package, but still reads *some-symbol* in common-lisp-user ?
12:35:53
drmeister
Clasp generates compile time warnings about undefined variables and style warnings for undefined functions.
12:43:54
Fare
apparently, my SNAPL submission was (1) trying to say too much, and (2) not backed by implementation enough.
12:52:07
edgar-rft
phoe_: There is no thank-you condition specified in ANSI CL. Now it's time to add one!
13:14:57
ogamita
(define-condition thank-you (condition) ()) (handler-bind ((condition (lambda (c) (invoke-restart (find-restart (class-name (class-of c)) c))))) (with-simple-restart (thank-you "Thank you!") (signal 'thank-you) 42))
14:26:21
phoe_
...or maybe it's just me who has gained enough TeX/DokuWiki/RegEx experience to be able to do it effectively
14:28:11
phoe_
\editornote{KMP: Still need to reconcile some confusion in the uses of "generalized reference" and "place." I think one was supposed to refer to the abstract concept, and the other to an object (a form), but the usages have become blurred.}
14:38:04
Xach
drmeister: I think it depends on the project. my impression is that it doesn't run them in most cases.
15:41:59
pebblexe
can anyone help me with this ssl error using dexador? https://gist.github.com/pebblexe/5aae4979637c919eb77e3a9695bfaaad
16:20:30
drmeister
I wasn't thinking of purpose - just does it. It sounds like it's so ridiculous an idea that it would prompt questions like "What would be the purpose of such a design"
16:56:28
flip214
drmeister: "generic function cache" as in "at that location the most probable calls are (in order) X, Y, Z"?
17:08:05
beach
flip214: More like "a set of signatures that have already been used in a call, and for which I have already calculated their associated effective methods".
17:23:48
phoe
God damn it, I'd have sent an important paper today instead of waiting for the damn notification that wasn't coming.
17:25:30
beach
You are not supposed to wait around for the notification. Normally, you should have plenty of time to accommodate the referee remarks (provided your paper was accepted).
17:26:39
flip214
phoe: If you'd like a review of the paper (what is it about?), I may be volunteering. beach knows my performance, if you need some second opinion about me.
17:27:46
phoe
So I don't know what I should write on the paper to my university - whether I'm going as a speaker or an attendee.
17:27:46
flip214
well, perhaps you want another independent look anyway, and be it only for next year's try?
17:29:06
phoe
And I have a paper written since I'd like my uni to help me with my plane tickets and so on, since they have a budget for that sort of thing - except I don't know who I am going to be at that conference.
17:29:33
phoe
flip214: yes please. I'll make a few final fixes today and send you a link to the paper.
17:31:35
beach
phoe: What do mean by "I don't know who I am going to be at that conference"? Do you have multiple personalities?
17:38:02
phoe
My university might/will have different reactions depending on whether I'm an attendee or I'm a speaker.
17:39:40
phoe
Except now I'm in a limbo - if I write that I'm an attendee while it turns out that I'm a speaker, I'll be missing out on higher rates, but if I write that I'm a speaker while it turns out that I'm an attendee, I'll be lying in formal papers and will need to straighten that out.
17:41:37
beach
phoe: Maybe you could ask the program chair for an advance notice, citing your conundrum.
17:43:11
phoe
Well, yes, that's a point. Especially now that they've silently extended the date of notification.
17:48:26
beach
"Dear Program Chair, I have submitted a paper to ELS (submission number #), and expected the notification of acceptance yesterday. It was not until today that I noticed that this date has been moved. I depend on a contribution from my university in order to have the means to travel to ELS, and they need more time to make a decision than there is between the new date and the conference itself. Would it be possible to obtain a
17:49:51
beach
phoe: The other thing you can do is to start the process, saying you won't know until March 6 whether your paper is accepted or not.
17:59:49
fiddlerwoaroof_
I see two or three on quicklisp, but I'm wondering if anyone has nay experience with one of them
18:17:41
pebblexe
hey, how do you convert a string to a simple-string? cl-ppcre says my string fell through, it wanted a simple-string
18:23:11
didi
I want to print a long list prefixed by #\; in every newline. How do I do it? When I eval (format t "~&; ~A" (make-list 42)), format breaks the list with newlines but each newline is not prefixed by a #\;.
18:28:00
sirkmatija_
reposting question, since my internet connection died after posting it last time :/
18:28:14
sirkmatija_
Cl-charm get-char function doesn't detect keypresses, unless I hold the key down for longer time or press it multiple times. I have evaled both enable-raw-input and enable-non-blocking-mode. Anybody knows where is the problem? Thanks in advance
18:28:16
sirkmatija_
Oh, I also use get-char with :ignore-error t and loop it until it returns non-nil output (key char)
18:30:06
pebblexe
actually, it turns out I was handing ("test" "test") to concatenate instead of "test" "test"
18:32:01
pjb
didi: or you may want to use pretty printing and ~<, but I don't know that well enough to tell you exactly how.
18:43:06
pjb
Petit_Dejeuner: #'foo and (function foo) read as equal forms, if you have the standard #' reader macro bound in the *readtable*, and *package* is bound to a package where cl:function is accessible.
18:46:03
jurov
i came up with `',variable to obtain quoted symbol from variable and it works, but it's such a wart, is there more beautiful way to do it?
18:48:48
mhd
where does emacs decide to have l, lsp, and lisp as its known Lisp extension for automatically putting buffer into lisp mode?
18:53:10
didi
I used to think `let' was ripe for parallel computation, until I wrote an evil `let' that would totally break if the value forms are not computed in sequence. Does `let' guarantee the value forms are computed in sequence--I'm not talking about binding the variables--or I just got lucky?
18:54:00
mhd
Handy log: (loop for (x . y) in auto-mode-alist when (eq y 'lisp-mode) collect `(,x . ,y))
18:54:00
mhd
(("\\.l\\'" . lisp-mode) ("\\.li?sp\\'" . lisp-mode) ("\\.ml\\'" . lisp-mode) ("\\.asd\\'" . lisp-mode))
18:54:38
Xach
varjag: ah yes, it's color-table-entry, which returns a value that can be broken out with color-rgb
18:56:27
pjb
mhd: or you can put everything in a single regexp (concat "\\." (regexp-opt '("l" "lsp" "lisp" "asd" "ml")) "$") --> "\\.\\(?:asd\\|l\\(?:i?sp\\)?\\|ml\\)$"
19:05:05
mhd
@pjb, I guess ACL users emacs init files all contain (add-to-list 'auto-mode-alist '("\\.cl\\'" . lisp-mode))
19:06:10
pjb
mhd: <- irc; Everybody, since there are free software acl libraries. You may find some in quicklisp.
19:28:31
drmeister
I've spent a couple of hours trying to track down what this means and what might be wrong: #<TEST-RESULT GRAY::STREAM-READ-LINE :FAIL Unexpected end of file on #<TRIVIAL-GRAY-STREAMS-TEST::TEST-STREAM>.>
19:33:35
drmeister
But the ECL source code doesn't bind the READ-LINE symbol to anything - I don't see how it could invoke GRAY::STREAM-READ-LINE