Search
Thursday, 8th of November 2018, 21:08:17 UTC
22:28:41
no-defun-allowed
okay i finally realised something very very stupid about disassembling car/cdr
22:29:20
no-defun-allowed
on sbcl (disassemble 'cdr) movs [rcx+1] and car movs [rcx-7]
22:29:54
no-defun-allowed
it's so you don't have to zero out the tag bits i think
23:14:14
pfdietz
That's right. And the low order bits of fixnums are zero, so addition and subtraction work just fine.
0:56:46
sjl
Is there a way to tell FORMAT to ignore an argument (inside ~{~})?
0:57:08
sjl
cl-ppcre:all-matches returns a list of (start1 end1 start2 end2 start3 end3 ...) but I only want to print the starts
0:58:03
specbot
http://www.lispworks.com/reference/HyperSpec/Body/22_cga.htm
0:58:05
Bike
should let you skip around
1:16:30
sjl
Hmm, is there any way to get cl-ppcre to find overlapping matches?
1:16:48
sjl
(ppcre:all-matches-as-strings "a.." "aabc") ; => ("aab")
1:18:45
Bike
"A common trick is to use capturing technique inside an unanchored positive lookahead" oh god, what the hell
1:21:28
no-defun-allowed
what the hell is this
1:22:17
no-defun-allowed
oh, regexps
1:26:50
sjl
http://paste.stevelosh.com/89de123b33b7efe1e927d9c9dfbdb30dd89d5819 will let me move on with my life I guess
4:39:45
beach
Good morning everyone!
7:08:52
splittist
Sitting in my London hotel room waiting for the conference call with folks in three cities that are not London. The glamorous life of the road warrior. I keep thinking I should make time to see Xof, but, of course, I can't 'make' time (even though I live near CERN...).
7:09:02
splittist
Any other London #lisp-ers?
7:24:30
Xof
splittist: I have (some) time today!
7:25:02
Xof
I would be happy to spend it on meeting you
7:28:18
splittist
Xof: that's very kind.
8:47:30
hjudt
is there a way to catch SIGTERM and SIGINT signals in sbcl? i've tried trivial-signal, but the examples provided do not work; e.g. sending INT only invokes the sbcl debugger but the signal handler does not run.
8:53:17
no-defun-allowed
after some idea generation in #lispcafe, i present the magrathea anti-vulnerability scanner hunchentoot mixin
8:53:41
no-defun-allowed
https://gitlab.com/Theemacsshibe/magrathea
8:53:50
jackdaniel
hjudt: some code illustrating what you try would be nice
8:54:08
hjudt
basically the examples here: https://github.com/guicho271828/trivial-signal
8:54:18
hjudt
Usage: toplevel handlers
8:54:22
no-defun-allowed
it works just like the hunchentoot easy-acceptor but if you load too many "sketchy" URLs in too short time, it zipbombs you
8:55:37
hjudt
what i want to do: i want to react to TERM so that i can invoke a proper shutdown routine on the server, doing some cleanup.
8:55:39
jackdaniel
hjudt: if I had to guess I'd first disable interrupt for that signal in sb!unix package
8:57:11
jackdaniel
(sb-unix::enable-interrupt sb-unix::sigterm :ignore) ; and see if trivial-signal starts working after that
8:57:28
jackdaniel
that said it may not work, but here's your rod
8:58:31
jackdaniel
also regrading graceful exit I think there may be a nice interface for adding exit-hooks
8:58:38
jackdaniel
without playing catch with signal handling
Friday, 9th of November 2018, 9:08:17 UTC