freenode/lisp - IRC Chatlog
Search
22:28:41
no-defun-allowed
okay i finally realised something very very stupid about disassembling car/cdr
23:14:14
pfdietz
That's right. And the low order bits of fixnums are zero, so addition and subtraction work just fine.
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
1:18:45
Bike
"A common trick is to use capturing technique inside an unanchored positive lookahead" oh god, what the hell
1:26:50
sjl
http://paste.stevelosh.com/89de123b33b7efe1e927d9c9dfbdb30dd89d5819 will let me move on with my life I guess
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...).
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: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:58:31
jackdaniel
also regrading graceful exit I think there may be a nice interface for adding exit-hooks
9:10:55
hjudt
thanks. i have added a function to sb-ext:*exit-hooks*, which gets called. additionally setting sb-ext:*timeout* to a lower value than the default 60 also solves my problem that sbcl takes too long to shutdown.