Skip to content
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 support for JS backend #3

Open
Yu-Vitaqua-fer-Chronos opened this issue Oct 29, 2023 · 2 comments
Open

Add support for JS backend #3

Yu-Vitaqua-fer-Chronos opened this issue Oct 29, 2023 · 2 comments

Comments

@Yu-Vitaqua-fer-Chronos
Copy link

Yu-Vitaqua-fer-Chronos commented Oct 29, 2023

Hey there, I've made a library (NULID) and I wanted to implement support for the JS backend, but it seems like nint128 doesn't support the JS backend, but it does support the NimVM, so I'm wondering if it'd be possible to also support JS at the same time?

@rockcavera
Copy link
Owner

The problem with the JS backend is that it does not support 64-bit integers and the Int128 and UInt128 object use 64-bit integers.

At the time I designed nint128 I did not intend to support the JS backend, as there are libraries for large integers in JS.

See also this answer given on the forum.

@Yu-Vitaqua-fer-Chronos
Copy link
Author

Thank you for your response! I'll likely use BigInts then in my library for this use, and thank you for this amazing library :)

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

No branches or pull requests

2 participants