i've doing some research on nim high precision resources, my goal is working with f1024 numbers,
coded an almost direct c long double wrapper f128 useful for some cases: https://github.com/rforcen/nim/blob/main/ld.nim
and also hpa wrapper (real+complex) for f1024 and beyond,
hpa enables setting fixed precision in Makefile variable,
MANTSIZE_MACRO= -DXMANTISSA_SIZE=62 (default 7) in GNUmakefile
https://github.com/rforcen/nim/blob/main/hpa.nim
next step is working with GMP/mpfr as a fast and proven solution that lets you set dynamic precision
is there any other alternative?
Article about f8: https://www.johndcook.com/blog/2018/04/15/eight-bit-floating-point/
i've used a c source to support f16 as a cshort, directly embedded it w/emit and coded a basic wrapper
https://github.com/rforcen/nim/blob/main/f16.nim
in terms of performance it's about 15% slower than nim float (f64)