-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add BigInt support to Lisp #415
Conversation
The code result in an allocation error:
|
The next step after getting this to work will be to start with Another step would be to use One issue will be to handle the overflowing conversion of a big integer into a float, resulting in |
Parsing a
|
Some issues with leading and trailing zeros:
|
|
|
|
The shell builtin
But the lisp version can't run much more than 500 iterations of the algorithm (not digits) without running into memory issues with 32MB:
It's a little bit better when we increase the memory but we then run into other issues like slice index larger than 2^64 |
num-bigint
crateNumber
enum forBigInt
,i64
, andf64
i64
toBigInt
pi
computation