libera/#commonlisp - IRC Chatlog
Search
18:31:30
pve
White_Flame: Could you please elaborate a bit on what you meant earlier by "regular data structures"? Did you mean situations like (dot binary-tree left right left value) or (dot nested-arrays 0 1 2 0) where you know the type(s) of what you're accessing?
18:57:21
White_Flame
where there's a regularity and thus a notion of "path" to it, not just a random hodgepodge of accessors, functions, and arbitrarily interconnected heap objects
20:15:54
pve
I suppose it would be difficult to have one single general "dot" construct offer convenient path traversal for every case out of the box. Instead, I guess one could define, say, "tree-dot" on top of dot that simply translates the somewhat "nicer" path (tree-dot tree left right value) into the actual accessors (dot tree tree-left tree-right tree-value).
20:16:26
pve
although writing tree-dot directly without any general path-traversal construct is probably just as easy
20:19:19
White_Flame
right, that's because the core function dispatch in CL isn't owned by any singular object to 'dot' from
21:17:53
jcowan
it was exhilarating to point out that for the last four days, every time I said "What should I do now?" the answer was "nothing", and this was because it was assumed there was no point in assigning me any job since I obviously couldn't finish it.
21:18:46
jcowan
However, the "process experts" decided I should just do nothing today, though I had to press them to actually _make a decision_ rather than saying "If you want, you don't have to do anything."
21:19:10
jcowan
I had to point out that on that basis they could sue me for fraudulently claiming today as a working day when I hadn't worked.
21:19:53
jcowan
So in terms of productive output, I did nothing this week, but in terms of stress, it was definitely a workweek, so I don't feel bad about having been paid.
0:18:57
jeosol
jcowan: congrats. leaving a job is never easy. Most who are there see you are a traitor. It can be a difficult experience. For some others, it can be worse. I have heard of people's badge and laptop access being disable the moment the give notice.
0:20:28
jcowan
basically AT&T runs out of money every August and lets go a lot of contractors, and then hires a new set (or the same set, whichever) in January.
3:07:05
asarch
I was reading Land of Lisp and it says that '(a . b) at some point is better than '(a b) because it saves memory
3:08:04
asarch
So in a big app setting settings a la '(foo . (bar . baz)) could improve memory usage
3:08:33
hayley
It does, but for a large application I'd rather use a structure or a class, which will save memory, because the "keys" are stored in the class.
3:09:32
asarch
And since I am writing the CRUD generator for my web app, I was thinking to use that for the type of the column in the model
5:50:34
beach
I am not sure how to answer that. It is one of the first things you learn to do when you learn Lisp.
5:53:01
beach
You draw a box with two parts, each part representing a slot, i.e., the CAR slot and the CDR slot.
5:54:34
masinter
https://www.google.com/search?q=DIAGRAM+OF+CONS+CELL+LIST&oq=DIAGRAM+OF+CONS+CELL+LIST&aqs=edge..69i57j0i546l2.10224j0j1&sourceid=chrome&ie=UTF-8
5:54:56
beach
asarch: The other thing you can do is to try (car '(a b . c)), (car '(a . (b . c))), (cdr ...), (cadr ...), (cddr ...)
5:59:38
ultralitsun
"Land Of Lisp" is very cartoonish, but it has a lot of "good" drawings otherwise
6:00:44
ultralitsun
beach: I saw the libraries, but I was wondering if there was a secret trick I didn't know about yet
6:06:52
ultralitsun
like for that first one about the myth of case insensitivity, just link to here http://www.lispworks.com/documentation/lw51/CLHS/Body/23_ab.htm
6:07:47
beach
Well, doing this stuff is not my main work, so I have to limit the time I spend on it.
6:09:45
asarch
I mean, when you compare the two programming languages you can see things that usually don't see