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

Support for uint256/int256 #3440

Open
elyase opened this issue Nov 26, 2024 · 2 comments
Open

Support for uint256/int256 #3440

elyase opened this issue Nov 26, 2024 · 2 comments
Labels
backlog enhancement New feature or request help wanted Extra attention is needed

Comments

@elyase
Copy link

elyase commented Nov 26, 2024

Is your feature request related to a problem?

Description
The most commonly used data types for smart contracts and token math on the blockchain are uint256 and int256. Currently, people in the crypto community are resorting to inefficient methods like converting to float or string because there is no native support for these data types. For example, paradigmxyz/cryo exports duplicate data columns in various formats (float, binary, string) due to the absence of native support in polars

Describe the solution you'd like

Native first class support for int256

Describe alternatives you've considered

convert to float64

Additional Context

Polars issue:
pola-rs/polars#15443

https://github.com/recmo/uint

Would you like to implement a fix?

No

@elyase elyase added enhancement New feature or request needs triage labels Nov 26, 2024
@jaychia
Copy link
Contributor

jaychia commented Nov 26, 2024

Seems similar to #2889, wonder if we could knock out two birds with one stone... @colin-ho

@colin-ho
Copy link
Contributor

Similar, probably not in one stone though. We would need to implement all the casting / ffi / kernels, which is a lot of work.

This is not a priority for us at the moment, assigning this as backlog. Open to PR contributions though.

@colin-ho colin-ho added help wanted Extra attention is needed and removed needs triage labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants