needed-libraries icon indicating copy to clipboard operation
needed-libraries copied to clipboard

Native support for big numbers

Open alehander92 opened this issue 6 years ago • 3 comments

(From Nim community survey 2017)

alehander92 avatar Nov 16 '17 09:11 alehander92

There is a bigint library: https://github.com/def-/nim-bigints .

jabbalaci avatar Oct 19 '18 23:10 jabbalaci

It probably need a refresh but there is a GMP wrapper: https://github.com/FedeOmoto/nim-gmp

And also a low-level wrapper for mpdecimal which is the backend for Python 3 since 3.4: https://github.com/status-im/nim-decimal

And for power of 2 stack ints like uint128, int256 ... uint2048 and more you can use stint: https://github.com/status-im/nim-stint

In the future we might also add a constant time modular bigint library for our cryptography needs at Status but for now this is not a priority: https://github.com/status-im?language=nim

mratsim avatar Oct 26 '18 14:10 mratsim

What about this? https://github.com/ridiculousfish/libdivide Might wow you a bit.

DonaldTsang avatar Mar 26 '19 15:03 DonaldTsang