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]> |
Waaay back in the mid-90’s, one of my Grad School Profs., Larry Peterson at UofAz, had created the X-Kernel (no relation to X-System graphics). The lesson of the X-Kernel, whose mission was to provide high performance networking and IPC between processes on a host computer, is that you must avoid gratuitous copying of data. X Kernel provided the successive wrapping of Network packets as you find in the TCP/IP stack, from hardware level to app level, all without copying anything and using scatter-gather vector methods and clever memory mapping in the underlying OS Kernel. So I’m wanting to inhale bytes from a stream and read out into the app layer as single-floats. All without gratuitous copying of information. > On Nov 7, 2025, at 08:32, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote: > > Yes, essentially… but TYPED-AREF doesn’t allow me to READ-SEQUENCE from a byte stream. A TYPED-AREF object is really an array of double-float underneath. > > > >> On Nov 7, 2025, at 06:54, Yuri Davidovsky (as work at disclosure dot ie) <[email protected]> wrote: >> >> >>> On 7 Nov 2025, at 14:38, David McClain (as dbm at refined-audiometrics dot com) <[email protected]> wrote: >>> >>> I keep running into the need to overload vectors for I/O purposes, where the I/O channel only works in units of octets, but my data is actually vectors of single-precision floats. >> >> Aren't you talking about typed aref, essentially? >> >> https://www.lispworks.com/documentation/lw80/lw/lw-sys-92.htm >> >> Also I would imagine it should also be trivial to do using FLI, although I think typed aref is easier still. >> >> _______________________________________________ >> 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 _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html