Search
Thursday, 19th of November 2020, 13:43:27 UTC
13:54:35
flip214
I'm using a deadline with a timeout 30.0 and get a compiler note:
13:54:35
flip214
; (SB-IMPL::SECONDS-TO-INTERNAL-TIME-DEADLINE #:SECONDS17)
13:54:36
flip214
; note: unable to associate */(* /) of constants due to type uncertainty:
13:55:18
flip214
Would somebody please explain the note? Is it about combining of multiplication and division of constants?
13:57:28
flip214
If my guess is correct, perhaps "unable to associate multiplication and/or division of constants" might be easier to read
13:59:49
flip214
hmmm, with an even ;) timeout of 30 (integer) I get the same warning
20:40:55
Krystof
flip214: I think your guess is correct.
20:41:04
Krystof
flip214: also I would have said that we should not emit that note
20:41:20
Krystof
(that is, I see code that tries to make sure that there isn't any type uncertainty)
21:07:04
phoe
(defmethod intialize-instance :after ((o foo) &key) (break))
21:07:55
phoe
IMO this is a good example of why it was a bad idea to remove the "implicitly defining a generic function" warning
21:08:08
phoe
the above doesn't break, doesn't warn, nothing; it just returns an instance of foo
21:11:05
specbot
https://bugs.launchpad.net/bugs/1818142
21:11:40
pfdietz
In the meantime, we shadowed defmethod to get the warning back.
21:23:41
phoe
by "shadowed", what do you mean?
21:26:20
pfdietz
Shadowed the symbol, so "DEFMETHOD" interns to our own macro that does the check then expands to CL:DEFMETHOD.
21:26:55
pfdietz
This means you need to shadowing-import that symbol into your package(s).
21:32:24
mfiano
Is there a way to disable the GC if I know what I'm doing? I'd like to do some cache profiling
21:37:12
no-defun-allowed
SB-SYS:WITHOUT-GCING?
21:37:30
no-defun-allowed
Er, no, that will screw up threads.
21:41:13
no-defun-allowed
I tried to (setf sb-ext:generation-bytes-consed-between-gcs) and (setf sb-ext:bytes-consed-between-gcs) to an absurdly high value to no avail.
21:44:59
no-defun-allowed
I also tried (setf sb-kernel:*gc-inhibit* t) but that also messes up threads (and the source for WITHOUT-GCING tells you that).
22:35:29
stassats
flip214: what's the original form?
22:36:22
stassats
and isn't it actually fixed?
22:39:34
stassats
or i may not have the right form
Friday, 20th of November 2020, 1:43:27 UTC