Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FixedArray<count: Int, T> #44

Open
oscbyspro opened this issue Feb 14, 2023 · 2 comments
Open

FixedArray<count: Int, T> #44

oscbyspro opened this issue Feb 14, 2023 · 2 comments
Labels
addition oh, so shiny! await can't be done yet

Comments

@oscbyspro
Copy link
Owner

oscbyspro commented Feb 14, 2023

The "Approaches for fixed-size arrays" forum post mentions a potential new generic feature, allowing the size of a fixed array to be expressed in Swift's type system. I believe this feature may supersede ANKFullWidth's partitioning model. I need something that can be partitioned and scaled up and down in size statically - which is why I'm not using tuples.

@oscbyspro oscbyspro added addition oh, so shiny! await can't be done yet labels Feb 14, 2023
@oscbyspro
Copy link
Owner Author

oscbyspro commented Feb 14, 2023

A generic static integer count is also preferred because it is path independent. Using generic partitions, it is possible to end up with equivalent, but different, types - which is a bit lame.

@oscbyspro
Copy link
Owner Author

Another thing you can do with generic integer parameters, if you forgo divide-and-conquer strategies, is build UInt4096 without any of the intermediate models.

@oscbyspro oscbyspro mentioned this issue Mar 23, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
addition oh, so shiny! await can't be done yet
Projects
None yet
Development

No branches or pull requests

1 participant