Skip to content

Added new package bigint - #3378

Open
DavidBalishyan wants to merge 1 commit into
nim-lang:masterfrom
DavidBalishyan:add-bigint1112
Open

Added new package bigint#3378
DavidBalishyan wants to merge 1 commit into
nim-lang:masterfrom
DavidBalishyan:add-bigint1112

Conversation

@DavidBalishyan

Copy link
Copy Markdown

@narimiran

Copy link
Copy Markdown
Member

How it compares with https://github.com/nim-lang/bigints ?

@DavidBalishyan

Copy link
Copy Markdown
Author

My nim-bigint is a smaller, focused signed BigInt core built around base 10^9 little-endian limbs (digits) with a sign flag (neg). It currently provides the essentials: decimal string parsing/printing (initBigInt(string), $), addition/subtraction with sign handling, schoolbook multiplication, and truncated divMod/div/mod (plus gcd via Euclid).

Compared to https://github.com/nim-lang/bigints, the overlap is the BigInt fundamentals, but https://github.com/nim-lang/bigints is more complete and feature-rich with a broader API/coverage. Mine is still in development and I’m planning to extend it further (additional operations and broader correctness/performance work) while keeping the core design small and understandable.

@narimiran

Copy link
Copy Markdown
Member

Next time, feel free to use your own words, not AI-generated ones ;)

@DavidBalishyan

DavidBalishyan commented Jun 26, 2026

Copy link
Copy Markdown
Author

wdym?, Are you saying anything a liitle less-casual(and a little formal) is considered AI-generated nowdays?/

...anyways...

What do you think about the package? :)

@hugosenari

Copy link
Copy Markdown

How it compares with https://github.com/nim-lang/bigints ?
Next time, feel free to use your own words, not AI-generated ones ;)

it has a s in package name, and this package don't 🤣

@narimiran

Copy link
Copy Markdown
Member

it has a s in package name, and this package don't 🤣

Big(Int) if true!

@hugosenari

Copy link
Copy Markdown

Added: https://github.com/DavidBalishyan/nim-bigint

I think, what is missing, is fix conflicts

@DavidBalishyan

Copy link
Copy Markdown
Author

How it compares with nim-lang/bigints ?
Next time, feel free to use your own words, not AI-generated ones ;)

it has a s in package name, and this package don't 🤣

🤣🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants