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
uint64 & int64 Typed Arrays #67
Comments
I removed them because there is no way to manipulate them, and likely never will be via the standard number type (a C double). If you read the JavaScript standards for typed arrays, they don't include 64 bit integer support at all for this same reason. I was alerted to the problem via warnings in the Microsoft compiler on Appveyor. Considering how easy it is to add them back, we can add them if we ever support proper 64 bit integers, maybe via some boxed representation (core/bigint?) |
Here a bigint implementation proposal. https://github.com/jfcap/janet.git (branch bigint) It's not finished.
TODO : some tests are available in suite6.janet |
Since 0382dc9 commit, uint64_t & int64_t typed arrays support have been removed.
Why ?
I know we don't have (yet ?) full proper way to manipulate 64bit integers directly in janet (without truncation) but a lot of numerical C libraries use 64bit integers arrays and it's handy (and efficient) to be able to pass directly such binary data as "standard" janet objects to them.
The text was updated successfully, but these errors were encountered: