hdf5 icon indicating copy to clipboard operation
hdf5 copied to clipboard

Add native int128/uint128 support

Open lukas-weber opened this issue 2 years ago • 4 comments

I saw in #2154 that native float16 support is planned. Are there plans to add int128 as well?

lukas-weber avatar Jan 29 '24 21:01 lukas-weber

Hi @lukas-weber,

we haven't yet considered adding support for int128 and uint128 at this time, but you should be able to work around that for the time being (if you aren't already) by defining your own datatype and conversion routines.

jhendersonHDF avatar Jan 29 '24 23:01 jhendersonHDF

@lukas-weber - Do you have a specific use case in mind?

derobins avatar Jan 30 '24 17:01 derobins

Apologies for the late answer. Admittedly my use case was esoteric: saving the internal state of a random number generator. I was doing it using some automatic serialization code in Julia, then found out it croaked on the Int128 numbers, which are not supported by HDF5.jl.

I found JuliaIO/HDF5.jl#301 which mentioned adding support on their end as a custom datatype on a similar footing with adding Float16 support. But the reasoning was to wait until Float16 support was adopted upstream. So I was curious is a similar thing was happening for Int128.

lukas-weber avatar Feb 09 '24 18:02 lukas-weber

We might perform additional datatype rework over the summer, so I'm tentatively assigning this to 1.14.5

derobins avatar Mar 16 '24 04:03 derobins