freenode/#sbcl - IRC Chatlog
Search
10:32:56
scymtym
yeah, /absolute-path-to-dumped-image args waits until signaled and does not read from standard input
10:34:31
scymtym
i can imagine that the default toplevel dies when it tries to read from standard input
10:35:07
Shinmera
Xof: You might also want something like Restart=on-abort if you want it to restart on a crash.
10:36:11
Shinmera
And setting User to not have it run as root, WorkingDirectory, etc. Systemd is a beast, for better or worse.
10:37:22
Xof
Yes. I have those bits. (I'm using systemctl --user so it's picking up the right user account, with loginctl enable-linger <user>)
13:54:15
stassats
adding a declaration makes (sb-ext:string-to-octets 10) warn, but constraint propagated types are not conflicting
14:18:07
stassats
constraint propagation to the alternative branch appears to be doing approximately nothing
14:53:38
stassats
got (defun foo (x) (if (typep x 'number) 10 (1+ x))) to warn, wonder what will that break
14:55:24
stassats
and declaring the type of sb-ext:string-to-octets makes (unless (stringp object) (sb-ext:string-to-octets object)) warn as well
15:22:39
Xach
I mistype octets-to-string as string-to-octets all the time. I don't know why. A warning would help me.
15:27:02
stassats
and i have no idea why type-difference is so complicated while simply doing (type-intersection x (type-negation y)) is enough
15:41:52
stassats
i don't often use octets-to-string, but i mistype char-code/code-char all the time
15:45:23
stassats
i'd use something like (sleep most-positive-fixnum) or (sb-thread:join-thread some-thread)
15:53:20
flip214
I mostly settle for (loop (sleep 3600)), this way an strace shows that this sleep is intentional and not an integer-became-negative bug
15:55:55
stassats
(sb-kernel:%vector-raw-bits (coerce "notabug" 'simple-base-string) 0) => 29120988003463022
18:43:47
Xof
ballpark (Fermi estimation, if you will) power use of this VM can't be more than 50W. Waking from sleep for, say, 20000 cycles per second is 0.001% of 2GHz. So power usage of (sleep 1) vs (sleep most-positive-fixnum) is approximately 0.5mW
18:45:00
Xof
I dread to think how much more energy has been spent sending this conversation around the world and storing it for posterity than the energy cost of (loop (sleep 1))
18:45:31
Xof
I wonder how long it will take to offset the energy cost of me typing `most-positive-fixnum'
18:46:34
Xof
my fingers move, say, 1cm per character, exerting 1N of force, so work done is 0.01J for 20 characters = 0.2J
18:47:13
Xof
so my server has to run for 400 seconds for the power saving of (sleep most-positive-fixnum) to outweigh the cost of typing most-positive-fixnum
19:12:01
stassats
Xof: that's why you should've just pasted (sleep most-positive-fixnum) instead of arguing
19:12:53
stassats
what if your VM becomes the most popular VM ever, one billion users, imagine the power savings
19:15:00
stassats
and when calculating energy expenditure, don't forget to account for the truck bringing food to the grocery store, so that you can spend all these joules while typing