It seems to be that this also could be applied to arrays that do not follow the typed array representation. I'm not sure we can retroactively change tag 4 to apply to arrays of integers as well, but we could define one or more scale tags for this purpose. For the typed array draft on which this is a comment, I don't see a need for change.
Apologies for having missed this issue for so long. Still interested?
but with several thousands of elements.
My thinking was that to make it most compact it could be stored in a typed array of 16-bit integers, with exponent -3 stored only once.
It would be even more effective if combined with delta encoding, which would need to be another tag and proposal.
But since I don't have any immediate use for it, perhaps it's best if I close this issue.
What would you think about combining decimal fractions (tag 4) with typed arrays from this proposal?
In a similar way as a single number can be stored as a pair of exponent and mantissa:
an array of numbers could be expressed as, for example, a single exponent and an array of mantissas:
Decimal fractions are not as popular as integers and floating point numbers, which makes it not as important, but I think it'd be a neat extension.
The text was updated successfully, but these errors were encountered: