freenode/#lisp - IRC Chatlog
Search
10:53:55
edgar-rft
The funny thing is that HTML originally was meant to be a *simple* markup language.
10:56:19
no-defun-allowed
All of cl-who is compile-time, right? So I couldn't set some magic variable or something to change the whitespace mode?
10:57:22
no-defun-allowed
I could probably embed another with-html-output macro inside the body with different settings though.
13:26:33
kmeow
so I guess the optional extension argument to vector-push-extend is for reserving space in advance
13:54:58
_death
if you know the size in advance you can also create a vector with just a fill-pointer and use vector-push
17:51:39
minion
Josh_2: direct your attention towards copying: http://www.nhplace.com/kent/PS/EQUAL.html
17:57:10
Bike
i wonder if there would be some value in exposing the copying that change-class is defined to use, though.
17:58:41
Bike
implementations might have something faster under the hood, like copying a storage vector
20:44:36
no-defun-allowed
Only if you expect the user to a package like that quite frequently. The only system I've made that does is lisp-strikes-twice.
20:45:34
no-defun-allowed
And that is an exploitation framework like metasploit or whatever skiddies use these days, but in Lisp and using the full power of the user's Lisp's REPL.
20:47:08
no-defun-allowed
So I would expect a user to want a -user package for that, because most of the functions they use are in that system.
20:55:42
copec
I was under the impression that most clos implementations are storing each slot grouped together referenced by clos object instance, unlike a vector or like a c struct
20:56:55
Shinmera
making the actual storage for standard-instance-access a vector is sensible with that in mind.
20:57:33
Shinmera
this is for standard-classes. Others may have entirely different storage and access methods of course.
21:01:54
copec
I read the art of the mop some time ago, but iirc the example implementation used a hashtable for each slot definition
21:24:39
Bike
by "each slot grouped together referenced by clos object instance" you mean like, each slot name would have a hash table where the keys are instances and the values are the slot values? i think there might have been an implementation of "virtual slots" in there doing that
21:25:55
copec
I probably saw something at some point, or conflated the storage of slot (meta) properties with the storage of actual slot data
21:35:01
bbsl
hi! I am trying to do part one of a8c but I am getting stuck on the last bit which is using my (hacky) function (eval-all). Anyone care to have a look and tell me what I am doing wrong?: https://rextester.com/live/UJVC52026 (this is my 2nd day of lisp so)