libera/#commonlisp - IRC Chatlog
Search
4:11:58
char
the following doesn't work (end-of-file). I don't understand why the output isn't being read.
4:25:10
beach
It looks to me like you need to make your output go to the input stream of the echo stream.
4:48:55
kakuhen
and iirc this same library also offers a relatively portable way to make "fd-streams"
4:54:19
beach
jcowan: We can't know that all those function should be changed. The reason I am making individual issues is so that each one can be discussed and voted upon separately.
4:55:05
beach
jcowan: But thanks for the list of candidates. It saves me a lot of work going through each Common Lisp HyperSpec page.
6:10:11
moon-child
'Prima facie these are all candidates for adding type-error for each wrongly typed argument' barring constructors and predicates, and a couple of other fun ones like constantly
6:15:42
spiaggia
By "barring", do you mean that they are not (yet) on the list, or that they are and they shouldn't be?
6:21:51
phantomics
Hi, a question. I can't create subclasses of built-in CL classes like simple-array, so is there any other way of creating an array that has some specialized metadata that it carries with it but which functions as a standard array in all other respects and can be arefed and measured without the code doing so needing to be aware of its special type?
6:24:22
hayley
You could put the metadata in a weak hash table, but of course that is not in the array, and it is not reflected in the type system.
6:24:56
phantomics
That's what I've been doing, created a big hash table whose keys are the actual arrays I'm keeping track of
6:28:08
flip214
phantomics: you could have a few reserved elements in your array - eg. at the beginning. (Perl would allow to specify a negative start point for the indizes; CL doesn't, sadly.)
6:28:13
moon-child
I thought you were still not going to allow user code to subclass them, for portability reasons?
6:29:17
phantomics
flip214: the problem with that approach is that I want these arrays to be usable with any old CL code outside the system without someone having to make special allowances
6:29:32
moon-child
Hm. I thought you had said you were going to add a special-case to prevent that. I must be misremembering
6:30:52
phantomics
Currently, the arrays April generates are completely standard Lisp arrays, you can aref them, take their size and dims like any other array. If I wrap the contents in another array structure containing metadata it'll defeat that purpose, I might as well create a special class containing the array and its metadata at that rate
6:31:26
spiaggia
moon-child: In fact, I think it would be a good idea to expose the mechanism by which I create specialized arrays, so that someone who wants an array of (say) 24-bit integers can do that. It is basically a matter of defining the transformations CST-AST-HIR-MIR and associated classes.