Is there a way to get the full range of uint64_t from Prolog to C?
We have PL_unify_uint64(...) to go from C to Prolog, but there is no PL_get_uint64(...). There is PL_get_intptr(...) but it fails with a representation error if I put 0xffffffff_ffffffff in the Prolog term (The same kind of error with PL_get_int64(...)).
I didn’t say it cannot be implemented. Note that 64 bit unsigned integers with the high bit set are internally GMP numbers, so you need unbounded integer support. Feel free to walk through the conversion routines, add the missing ones and send a pull request.