freenode/#lisp - IRC Chatlog
Search
9:43:06
pfdietz
ISLISP does not have (car nil) and (cdr nil) being valid. It's mostly historical at this point, though.
9:45:15
ldbeth
Demosthenex: https://github.com/cireu/sly-el-indent here's some hack on sly (SLIME) to indent emacs lisp code, you might want to see if thoses hacks apply to your problem
9:48:50
pfdietz
trivia:ematch seems to generate faster code that destructuring-bind, for equivalent forms.
9:59:54
pfdietz
(scrolling up) The inlining of dispatch is made more exciting by the possibility that classes and methods can be dynamically modified. What if you need to recompile a function to reflect these changes while a call to that function is on the stack?
10:03:02
pfdietz
I figure you want to compile such functions with some sort of standardized stack frame, so you can return back to an unoptimized, or differently optimized, version of it if that happens.
10:03:26
aeth
pfdietz: I think, in general, you want to be fast assuming no dynamic redefinitions, although obviously permit the slow path to happen
10:03:46
aeth
most dynamic redefinitions will be user-defined, and infrequent, at least if you're assuming e.g. running in aloop
10:04:24
aeth
I do wonder how much of this is handled by CPU's branch prediction these days, though.
10:07:01
no-defun-allowed
Amazing, I was looking to see if Self had come up in #lisp before. Someone didn't reach for the search button.
10:10:09
no-defun-allowed
Perhaps it's too late for #lisp-ing, but I needed something to do while rebuilding SBCL with the higher internal-time-units-per-second so I can get less-than-awful variance with metering.
10:36:51
phoe
but I won't use it, because I just realized that I was trying to do something that did not make sense in general
11:10:34
aeth
phoe: In my Lisp, let* will just expand to destructuring-bind with an &aux since having both is unnecessary!
17:20:08
Josh_2
I have subclassed hunchentoot:acceptor and written a version oh acceptor-dispatch-request, is it possible to also use the default method ie (define-easy-handler ..) as well? currently I can only create new routes with the mechanism I have created, ideally I'd like both
17:29:11
gothnbass
Josh_2: I'm working on some code involving a subclass of acceptor myself right now, and... probably? To ask the annoyingly dumb question, what happens when you try it?
17:30:32
gothnbass
My use-case is relatively simple, though, so I just (setf tbnl:*dispatch-table* (list (create-regex-dispatcher "/url" 'function)...))
17:32:14
Josh_2
I might be able to modify my new route system to simply add a route like that to *dispatch-table*
17:32:29
gothnbass
OTOH, if you have any tips about round-tripping Unicode from Drakma to Neo4j and back, I'd love to hear 'em. Thought I'd solved it by handing Drakma a :content parameter to force it to pass through some pre-encoded data, but I'd swear Neo4j is mangling it, so I'm closing on table-flip.