freenode/#lisp - IRC Chatlog
Search
6:07:04
pyc
What is the difference between these syntaxes: (require "asdf"), (require :asdf) and require ('asdf). The official ASDF documentation recommends the first syntax. Why?
6:25:27
beach
REQUIRE uses string= so it is case sensitive, which would seem like "asdf" and :asdf would not both work, since the second one is converted to "ASDF" by STRING. But if you look at *modules*, it turns out that both "asdf" and "ASDF" are present.
6:31:17
beach
I don't know. What I know is that you need to learn to decipher Common Lisp HyperSpec dictionary entries, which is what I just did, since I don't know these things by heart.
6:33:15
beach
It says it can be a string, a character, or a symbol. If it is a symbol, as in the second and third cases, then the name of the symbol is used. Which is "ASDF" in both those cases.
6:34:26
beach
Now, look at REQUIRE again. It says it uses STRING= to compare the stringified argument to the contents of *MODULES*.
6:35:15
beach
And this is EXACTLY what I did, because I didn't know (or remember) ANY of this stuff.
6:52:50
beach
pyc: If you follow the manipulations I suggested, and that I had to do myself in order to answer your question, then I think you will make it easier to find answers to your questions in the future.
7:27:27
pyc
beach: thanks for the detailed explanation. I am still not familiar with all the terminology used in CLHS but I will keep digging into the docs until it all begins to make sense.
7:56:12
pyc
what does tymoon mean? I see it hosts many lisp channel logs but I can't find its meaning anywhere.
9:29:42
pyc
I am on macOS. SBCL is consuming 500% CPU and I hear greatly increased fan noise. I am not running any code on it. How can I troubleshoot what SBCL is doing?
13:24:27
lukego
Hey the other day I was wondering if there was an UPDATEF macro for updating a place with an arbitrary function and it turns out that there is one, in Serapeum, called OPF.
13:29:13
lukego
I never really connected with On Lisp. Maybe it's time for me to give it another go.
13:29:33
lukego
Indeed. I don't recall what the example was that I had last week but the specific macro didn't exist
13:30:02
lukego
and it feels a bit wonky having incf, maxf, appendf, nconcf, ..., but always more missing than defined
13:31:06
lukego
I've never actually dabbled in extending SETF and I usually associate that with defining places rather than updating methods. I should look properly into that too :)
13:31:14
_death
well, they may be missing, but once added the forms that use them are clear and simple.. (maxf x 3) instead of (_f max x 3) or whatever
13:31:48
edgar-rft
let's UPDATEF Common Lisp by replacing everything with arbitrary random functions
14:59:00
lukego
aside - I really appreciate Serapeum. I like all these funky convenience macros but not if they make my code completely "lukego idiosyncratic." I can more easily accept being "serapeum idiomatic." Maybe there has always been subcommunities like this e.g. people who read On Lisp and adopted its various macros and can easily read each others' code.
15:06:05
splittist
lukego: I use it, too. Although I also use alexandria (as alexandria) and split-sequence (as split-sequence). Which may be missing some of the point.