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

Arbitrary precision integers #19

Open
kvverti opened this issue Sep 20, 2018 · 0 comments
Open

Arbitrary precision integers #19

kvverti opened this issue Sep 20, 2018 · 0 comments
Assignees
Labels
feature request New feature or request interpreter Issue with the language implementation

Comments

@kvverti
Copy link
Owner

kvverti commented Sep 20, 2018

Make Lavender support arbitrary precision integral arithmetic. Practically something like this, where data is stored in little-endian order. The struct shown below can theoretically store 2^70 bits (128 EiB), which is far larger than any personal computer can handle.

struct LvInt {
    size_t refCount;
    size_t len;
    uint64_t data[];
};
@kvverti kvverti self-assigned this Sep 20, 2018
@kvverti kvverti added feature request New feature or request interpreter Issue with the language implementation labels Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request interpreter Issue with the language implementation
Projects
None yet
Development

No branches or pull requests

1 participant