* bug#18225: Lack of type-converting shared arrays (feature request)
@ 2014-08-08 15:48 Panicz Maciej Godek
0 siblings, 0 replies; only message in thread
From: Panicz Maciej Godek @ 2014-08-08 15:48 UTC (permalink / raw)
To: 18225
While it is possible to shuffle with array indices arbitrarily, the
ability to convert array types is very limited. For example, it would
be nice to be able convert a uniform vector of unsigned bytes to a
uniform vector of some other size:
(define bytes #u8(0 0 255 255))
(define words
(make-typed-shared-array 'u16 (native-endianness) bytes
(lambda(i)(list (* i 2))) '(0 1))
words
====> #u16(0 65535)
In addition to SRFI-4 types, the conversion should be compatible with
R6RS bytevectors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-08 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 15:48 bug#18225: Lack of type-converting shared arrays (feature request) Panicz Maciej Godek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).