Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
This is probably not what you're looking for because it might not be high performance. But in hardware synthesis/modeling, we use the so called "AC data types" and I just googled that and found it on Github.
https://github.com/hlslibs/ac_types
Arbitrary bit length, symmetrical and unsymmetrical, rounding and wraparound behaviour specifiable etc. etc.
This is being considered for Go 2: https://github.com/golang/go/issues/19623
Personally I'm wary of it: it's not hard to think of adversarial scenarios where this could lead to OOM. On the other hand, adversarially overflowing an int can cause plenty of havoc too...