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

Use an integer format that supports any integer. #355

Closed
Tracked by #191
rvcas opened this issue Feb 9, 2023 Discussed in #192 · 0 comments · Fixed by #356
Closed
Tracked by #191

Use an integer format that supports any integer. #355

rvcas opened this issue Feb 9, 2023 Discussed in #192 · 0 comments · Fixed by #356
Labels
uplc Relates to Untyped Plutus Core
Milestone

Comments

@rvcas
Copy link
Member

rvcas commented Feb 9, 2023

Discussed in #192

Originally posted by MicroProofs August 26, 2022
Currently we use isize or might use i64 and usize or u64 for integers.

Instead we should use a Vec to hold integers and perform large number calculations in chunks of 32 bits.

The idea is for smaller numbers we should still have fast computation speed. And super large numbers are rarer.

We can use a struct that holds the Vec plus another field for positive or negative.

Thoughts?

@rvcas rvcas added the uplc Relates to Untyped Plutus Core label Feb 9, 2023
@rvcas rvcas added this to the Language PoC milestone Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
uplc Relates to Untyped Plutus Core
Projects
Status: 🚀 Released
Development

Successfully merging a pull request may close this issue.

1 participant