freenode/lisp - IRC Chatlog
Search
1:25:22
fvs
hi all; I'm trying to learn common lisp, but there's something I'm not getting. Why is (car nil) => nil? Like, is (car nil) => nil and (car nil) => nil, then wouldn't that mean nil is the same as (nil)?
1:27:51
Zhivago
nil isn't the same as (nil) for many operations, but it is the same for (car '(nil)), yes.
1:31:12
fvs
because that's what haskell does (or rather, that's what it does on (head []), which seems to be equivalent)
1:37:18
PuercoPop
fvs: because convenience and correctness sometimes are at odds. Scheme chose the latter
1:37:19
minion
PuercoPop, memo from flavio81: Estas listo para conocer anuestro salvador, Common Lisp?
4:45:15
vtomole
I'm getting a "There is no applicable method for the generic function" Even thought i have an accessor to that slot value..
4:56:15
Zhivago
vtomole: Perhaps you're calling it with arguments of a class that you have not specialized it for?
5:00:05
pillton
beach: It seems weird to wrap everything a compilation unit. All of your macros would required eval-when.
5:00:54
vtomole
beach: Trying to run some very old program:http://faculty.hampshire.edu/lspector/qgame.lisp
5:07:13
beach
vtomole: This: ((#<QUANTUM-SYSTEM {10083D3643}>)) indicates that the argument to the function is a singleton list containing the system, but the accessor is defined for a system and not for a list.
5:08:37
beach
vtomole: It pays off to understand error messages. They can be a bit cryptic sometimes, to say the least.
5:10:09
vtomole
Even though they use a class which should make things easier. And everything is in one file....
5:11:15
beach
But what do I do with https://github.com/sharplispers/log4cl? Install it, rather than what is available in Quicklisp? Something else?
5:18:54
slyrus
can you be more specific? Do you hate that mcclim now depends on log4cl? Do you hate that log4cl uses internal symbols from SBCL that aren't likely to be stable? Do you hate that SBCL changed it's use of internal symbols?
5:19:39
beach
I try very hard to get real work done, rather than catching up with things that change around me.
5:21:49
slyrus
ok, fair enough, but I'd argue the benefits to using quicklisp outweigh the costs, even if one has to adopt to some new conventions
5:29:27
beach
OK, the application now starts, but as soon as I try to change the zoom level, I get the same error: Vector length (1) doesn't match declared length (4).
5:40:46
beach
vtomole: There is lots of old code, and the code that corresponds to the ELS paper is incomplete.
6:08:08
pillton
beach: It does strike me as odd to want: (with-compilation-unit () (dolist (f files) (load (compile-file f))))
6:16:38
beach
slyrus: That's not how I would put it. Without that declamation, the behavior is incorrect without being reported. With it, it is incorrect, but reported as such.
6:18:58
|3b|`
ACTION interprets with-compilation-unit as delaying the decision to signal the warning rather than just the actual signaling, though i don't see anything actually that specific when i look at how it is specified
6:48:28
slyrus
beach: here's an isolated instance of the problem: http://paste.lisp.org/display/349185
6:57:41
beach
dtornabene: specbot is very handy for transmitting information about the standard to some #lisp participant that you are having a conversation with.
6:59:50
slyrus
so, what's the proper way to, e.g., call #'identity on a sequence using map, if one doesn't know the type of sequence but wants to return a sequence of the same type?
7:16:37
slyrus
ok, so the question is do I call copy-seq on the sequence, or do I only declare the type to be the car of the list, if the type is a list? I'm leaning towards the copy-seq approach.
8:55:27
jackdaniel
els videos are online: https://www.youtube.com/playlist?list=PLA66mD-6yK8yi-nggbOF1dWusHnu2u6hw