freenode/#lisp - IRC Chatlog
Search
18:33:16
senecaty
Why does my isprime function always return nil? https://bpaste.net/show/1af47b67733a
18:59:38
aeth
What channel is it? Have they heard the "get a link via IRC bot that gives you a cookie, and that's the only way to paste" idea yet?
0:18:43
aeth
asarch: C++ pretends that it's on the low-level side of the high-level languages, but it has high-level syntax, which makes metaprogramming painful. It also inherits all of the security/safety flaws of C by being compatible with C.
0:21:29
aeth
Lisp doesn't force a high-level infix string representation of source code on top of the abstract syntax tree that's underneath, which makes things like macros actually doable.
0:25:07
aeth
Templates, C-style macros (i.e. string macros), and other generic/template/macro systems tend to be complicated, hard, painful, and easy to make mistakes in. Lisp-style macros (i.e. structural macros) avoid most of those issues.
0:27:25
aeth
e.g. If you need to interface with something that expects some string format, you can just write a CL macro to generate a string. Doing so is very similar to writing a function, but it will produce a string at macro-expansion-time, which can mean that string will be compiled into the native compiled form (usually a FASL file).
1:04:03
pillton
Xach: Is that something that is automatically done or do you have to manually do it?
4:15:36
dwts
hey guys, doing something like this: curl http://api.urbandictionary.com/v0/define?term={nuts} I'm getting a json output. I'm trying to perform the same results with drakma. But drakma complains about illegal characters(curly brackets)
4:17:53
Bike
with drakma you give ti the GET parameters separately and not as part of the url, maybe
4:22:06
dwts
Bike: hmmm...the drakma documentation says to use this kind of syntax: (drakma:http-request "http://lisp.org/") . Can't find it documented either the separate GET parameters
4:49:48
loke`
dwts: The full parameter documentation for drakma is in the docstring for HTTP-REQUEST
4:51:29
dwts
loke`: thanks! is there an easy way to access to that docstring directly through emacs?