freenode/#lisp - IRC Chatlog
Search
23:08:30
pjb
minion: memo for jmercouris: http://www.informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/m-expression/index.html.in
23:18:18
pmc_
Anyone know why a character string is not considered to be a simple vector? (simple-vector-p "abc") returns NIL.
23:22:26
pjb
pmc_: there are some libraries written by sbcl'ers (not lispers), that expect some overly specific vector types. This is bad. Don't use them.
23:22:37
pmc_
I noticed (svref "abc" 0) doesn't work on strings... so I was interested in simple vectors. :)
23:23:54
pjb
if the compiler can determine at compilation time that the sequence is a simple vector or a string, then it'll be smart enough to replace aref by svref or char, and otherwise, you will do want aref, to be able to handle any vector type you'll get at run-time.
23:24:17
pjb
So basically you should never use svref or char or similar overly type-specific function.
23:25:26
Ober
what is it roswell brings to the table being written in C, that a shell script can't easily do in a fraction of this code?
23:29:20
Xach
It's possible that the person who made it is willing to work on it in C, but not willing in another language.
23:39:16
Ober
pjb no more than a link to you asking folks in #linpeople about your hung scsi devices [10/27/00 @ 02:59:57] <pjb> dev/st0 isnt responding
23:40:45
pjb
The only reason I can see, could be for bootstrap reasons. Otherwise, it seems that a lot of C code could have been written better in CL.
23:42:02
pjb
Now of course, you made the bootstrap more complex, since you need to compile and install a C compiler, and for this, you need to have a C compiler already installed (or eventually, when I'll have completed by C->CL compiler, a CL compiler).