libera/#clasp - IRC Chatlog
Search
14:08:53
Bike
ok, first stream bug detected: you're allowed to open a stream with an element type like (unsigned-byte 37), and if you write to that clasp crashes
14:24:49
Bike
drmeister: would there be any problem with only supporting binary stream element types of, say, ([un]signed-byte n) for n = 8,16,32,64
14:32:27
Bike
"FIXME: let's do it the hard way, then (but ignore things like endianness, efficiency, and the necessary doupling between these and the output routines)." okay, maybe it's not supported very well
16:16:20
Bike
i ask because if i'm reading correctly, there's no conforming way in C++ to convert a signed integer to an unsigned integer of the same size without runtime cost, until C++20. i'm not sure though. that seems weird
16:55:36
drmeister
Only supporting binary stream elements of 8,16,32,64 would not be adequate. You can make those optimized though.
16:57:30
Bike
do you just mean larger widths still divisible by 8, or do i need to figure out how to read and write 37 bit integers