Re: I wonder if I'm missing something...

"David McClain (as dbm at refined-audiometrics dot com)" <[email protected]>
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
> Also when creating a displaced array it should allow casting to a different type.
> 

+1




> On Nov 7, 2025, at 13:01, Yuri Davidovsky (as work at disclosure dot ie) <[email protected]> wrote:
> 
> 
> 
>> On 7 Nov 2025, at 20:21, Tim Bradshaw <[email protected]> wrote:
>> 
>> Here is a sketch (which I may have mentioned here previously) of how functionality could be added to CL which would enable fast I/O of, for instance, vectors of floats without destroying the language by allowing arbitrary type punning, and also dealing with things like ensuring things are written in defined byte orders.
> 
> Interesting. I was thinking of something different. Essentially any byte stream could be read (and written to) arbitrary data types using primitives like:
> 
> (read-byte stream) — as is now.
> (read-byte stream :uint32) — will read an unsigned 32 bit int.
> (read-byte stream :float) — you start to get the idea.
> 
> You could do the same with read-sequence by supplying the type of data to read and an array of appropriate type. It should also support custom data types.
> 
> Also when creating a displaced array it should allow casting to a different type.
> 
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> [email protected]
> http://www.lispworks.com/support/lisp-hug.html


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.