Multiplayform bigint library
My project is a programming language that is implemented as a Kotlin multiplatform application. In my language, I needed to provide native bignum support, but I didn’t find any multiplatform implementation of BigInt.
Of course, Java has BigInteger, JS has BigInt and in native code you have GMP. I have written a library that wraps these different implementations and presents a general API to work with bigints. Here’s an example:
val a = BigInt.of("10000000000000000000000000000000")
val b = 2...