Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Consider adding more functions to the standard library #20

Closed
littledan opened this issue Feb 23, 2017 · 3 comments
Closed

Consider adding more functions to the standard library #20

littledan opened this issue Feb 23, 2017 · 3 comments

Comments

@littledan
Copy link
Member

Should we have operations like popcount, find least/most significant bit set/unset? These could probably be implemented more efficiently as builtins using processor instructions than by the user. OTOH, maybe these are logically operations on memory (ArrayBuffers? Uint8Arrays?) than on BigInts; I'm not sure. This was a suggestion from Waldemar Horwat

@littledan
Copy link
Member Author

@jfbastien Do you have any thoughts on operations that should exist? Or should this be left to WASM? Or v2 of the BigInt library?

@jfbastien
Copy link

It seems useful, but maybe v2? I think you should have the same capabilities on integers which JS has at a minimum. Other things as you mention seem nice to have. wasm will have them in MVP but only for i32 and i64.

@littledan
Copy link
Member Author

We'll leave more functions for v2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants