freenode/lisp - IRC Chatlog
Search
16:12:55
pjb
You cannot define methods on system objects or build-in objects. Basically, you may define methods only on your own objects.
16:14:25
pjb
(defgeneric my-print (object stream) (:method (object stream) (print object stream))) and then add methods at will.
16:22:10
selwyn
in particular, not following the prescriptions regarding *print-circle* could lead to an otherwise unexpected unbounded amount of output to the printer which could, for example, break a REPL session
16:30:10
selwyn
no problem. well, actually i am not so sure about my most recent argument. but avoiding undefined behaviour is certainly reason enough to follow the rules.
22:09:42
matzy_
i have a noobish question. i'm trying to get a package that the author claims is on quicklisp, but i can't find there. if i just clone the repo from is github, can i easily install it with quicklisp, like if i was installng a remote package? or is that what asdf is supposed to handle
22:11:02
White_Flame
inside ~/quicklisp/local-projects/, you can symlink to the downloaded git directory
22:11:48
pjb
You may add the https://ultralisp.org distribution to quicklisp, to have access to more systems.
22:11:53
White_Flame
btw, ASDF understands .asd system definition files. QL downloads ASDF systems from teh intarwebz
22:13:32
aeth
https://gitlab.com/mbabich/trivial-left-pad/commit/450c8c70451d1cd3f38eda809cde7fb6614daf4f
22:13:50
aeth
I probably should add version numbers to its ASDF file now that it's on Quicklisp and getting issues
22:13:56
White_Flame
does it support bidirectional text, leaving the padding on the left side regardless?
22:14:51
aeth
Oladon_work: The joke in the joke was that every part of it was larger than the code itself (tests, documentation, source comments, etc.)
22:16:27
aeth
16 additional commits later and some things might not be larger than the code itself anymore, though
22:17:15
aeth
Oladon_work: I have a new joke repo. https://gitlab.com/mbabich/lisp-hello-world/blob/c45deaab9918285d3de43c52340100fef6591d15/main.lisp
22:17:46
aeth
and, yes, it does do an elaborate infix reader macro from scratch just to deliver that punchline
22:19:29
aeth
Well, I mean, it's like mathematics. It can be very dense. This might only be 39 lines, but it takes a while to read what's going on: https://gitlab.com/mbabich/lisp-hello-world/blob/c45deaab9918285d3de43c52340100fef6591d15/infix.lisp
22:20:34
aeth
Basically, it makes no attempt to establish precedence, or support unary. It's just binary infix of matching operators. So (1 + 1) or (1 + 2 + 3) or even (1 + (2 * 3)) but not (1 + 2 * 3)