freenode/#lisp - IRC Chatlog
Search
8:28:53
moon-child
a slightly more sophisticated solution would also look for quotes inside the tag and ignore <> inside of those
8:30:42
moon-child
(I don't remember if you can escape single quotes in html, if not then the second branch can just be '[^']*')
11:07:59
beach
With FOR IN and FOR/AS arithmetic, you have to surround the body with a conditional. But with FOR THEN you can control everything.
11:09:40
VincentVega
"surround the body with a conditional" do I understand correctly that that would involve putting the whole body in a do clause?
16:02:43
Josh_2
Whats the best resource for learning about compiler macros? I'm pretty sure there is a section in lol but I can't find it
16:08:11
heisig
Josh_2: I think I learned most of what I know by searching all Quicklisp projects for DEFINE-COMPILER-MACRO.
16:09:58
heisig
I also have some more specific rules, like "Never use &key in a compiler macro's lambda list".
16:11:44
heisig
https://lispcookbook.github.io/cl-cookbook/macros.html mentions a talk by cbaggers that also seems to explain compiler macros.
16:12:06
Gnuxie[m]
there's also this https://web.archive.org/web/20160306051951/http:/pentaside.org/paper/compilermacro-lemmens/compiler-macros-for-publication.txt
16:18:22
beach
And thanks to call-site optimization, compiler macros may soon be a thing of the past. :)
19:23:38
brandflake11
Hey all, I am having trouble with some lisp programming I am working on with Common Music. There is a function called (rhythm) that takes a symbol that represents a music rhythm (quarter-note 'q, eighth note 'e). I made a function that can parse a list and return these symbols, but rhythm doesn't like its output. I get an error "Can't parse QUOTE as a rhythm." Would anyone be willing to look at a pastebin and see where I'm going wro
19:31:35
Nilby
I would guess it would have to be like: (setq test-list '(0 e 1 s 2 q 3 e 4 q 5 s 6 t))
19:32:40
brandflake11
Nilby: The rhythm function needs the quote though. Without it, I get the error "The value e is not of type number"
19:33:17
brandflake11
The documentation for rhythm says it takes symbols, so maybe something like that?
19:34:54
brandflake11
Nilby: Oh, actually, my fault, that was the problem. I was doing something silly. Thank you Nilby!
19:45:54
brandflake11
Okay, another problem. If I do the rhythm function in a loop, like (rhythm (list-select)), I get "The value e is not of type number when binding sb-kernel::x".