freenode/#lisp - IRC Chatlog
Search
22:18:22
holycow
aha, finally someone found this video: https://www.reddit.com/r/lisp/comments/6p0riq/william_byrd_on_the_most_beautiful_program_ever/
22:47:32
axion
Anyone that uses paredit for CL, could you tell me what the ) key is bound to in a lisp-mode buffer?
23:29:01
edgar-rft
aion: I don't use paredit, but C-h k ) in a Lisp buffer should tell you what the ) key is bound to
23:35:47
axion
thank you pjb. i am trying to figure out if smartparens has something like it, where it condenses stray closing parens if you have whitespace between point
23:48:30
Fare
is this a compliant way to undefined a class? If not, is there one and what is it? (setf (find-class 'my-class) nil)
23:54:20
Bike
"if the new class given to setf is nil, the class association is removed (but the class object itself is not affected)"
0:37:29
Fare
The point of redefining a class is hot upgrade, and during hot upgrade, you want old instances of the old class to keep working
0:48:19
z3t0
Which then prints out the data for that global variable, can i go in and change the variable by literally typing in the output?
0:48:35
z3t0
I thought it might work because doing so changes it from red to green, though it doesnt save
0:57:54
yegortimoshenko
hi, which lisps have a built-in complete set of unix fs functions? (mkdir, symlink, etc.)
1:01:02
yegortimoshenko
actually i'd prefer that the interface is abstract enough that it supports other operating systems as well
1:01:33
Cthulhux
that would still require a basic set of common file system functionalities (e.g. symlinks)
1:08:30
yegortimoshenko
lisp is useful in any setting, whether it's scripting (which is what i'm looking for in this case) or system-agnostic applications. i like interactive development. it just so happens that i prefer common lisp over, say, scheme, where i could have used racket or guile or whatever.
2:08:48
aeth
my personal view on sh vs a scripting language: if it's a few lines in sh, no language probably comes close in conciseness...
5:47:53
jackdaniel
Fare: did you see the PR on asdf repository? about adding init-name buildarg to create-image for ecl
6:26:43
Fare
jackdaniel, I have a weird bug trying to upgrade asdf from your 3.1.8.5 to my 3.3.0 (tentative): the upgrade borks on #:FIND-COMPONENT being undefined (mind the uninterned symbol)
6:27:27
Fare
I don't understand what would unintern FIND-COMPONENT specifically. But the gf is defined in component and the methods in find-component
6:30:06
Fare
oh, I see it's listed as redefined in asdf/upgrade, which causes it to be fmakunbound. But not uninterned.
7:42:14
z3t0
hi all I am trying to learn common lisp by reading Practical Common Lisp but am stuck at the very end of chapter 3
7:42:30
z3t0
https://gist.github.com/z3t0/608f84bf9c0e1ec86845a0b6ece23529 is my code so far, and i have checked with code from other people using the same book to make sure the code is okay
7:44:43
z3t0
Yes it is, I've checked with online code samples and the code from the book so that cant be the issue
7:45:53
z3t0
For some reason i get a Rating is undefined which doesnt make sense because im using it as a keyword
7:46:25
z3t0
oh my bad accidentally left that out of the paste, it is in the actual file though (sorry for that)
7:48:22
Shinmera
the function is make-comparisons-list (plural), but in the text he calls it make-comparison-list
7:51:19
Shinmera
Note that you can also just call make-comparison-list yourself in the REPL to verify that it outputs the correct list of clauses.
7:51:22
z3t0
I just copy pasted someone elses version of this chapter and it works fine there so i will carefully go and find what the differnece must be
7:59:21
jackdaniel
(defun foo (a &rest args &key a b c) …) ; (defmacro bar ((a &rest b) (c &rest d) &body e) …)
8:06:22
whoman
using where/make-comparison-list/make-comparison-expr from your gist, i get the result '(LAMBDA (CD))' from macroexpand-1 .
8:09:01
z3t0
try changing (defun make-comparison-list (&rest fields) => (defun make-comparsion-list (fields))
8:15:10
z3t0
im stepping through select with a debugger, if you want to check https://gist.github.com/z3t0/8017a18309890cb2b2fda0323b8446a4 is the database