Skip to content

Move ranges from ArrayInterface to Static #88

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

Merged
merged 11 commits into from
Nov 15, 2022
Merged

Move ranges from ArrayInterface to Static #88

merged 11 commits into from
Nov 15, 2022

Conversation

Tokazama
Copy link
Collaborator

@Tokazama Tokazama commented Nov 5, 2022

I had to manually define a bit more to get this working outside of ArrayInterface (not known_* traits) but it's probably better to avoid the type piracy we currently are doing with StaticInt range constructors in downstream packaging.

Solves #41

@chriselrod
Copy link
Collaborator

I think this should be a breaking version, so that we can make it so ArrayInterface versions with ranges are incompatible with Static version with ranges.

@codecov
Copy link

codecov bot commented Nov 5, 2022

Codecov Report

Merging #88 (92174fb) into master (a47c525) will decrease coverage by 0.27%.
The diff coverage is 99.47%.

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   99.36%   99.09%   -0.28%     
==========================================
  Files           2        3       +1     
  Lines         472      662     +190     
==========================================
+ Hits          469      656     +187     
- Misses          3        6       +3     
Impacted Files Coverage Δ
src/ranges.jl 99.44% <99.44%> (ø)
src/Static.jl 98.75% <100.00%> (-0.48%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Tokazama added a commit to JuliaArrays/ArrayInterface.jl that referenced this pull request Nov 7, 2022
This is complimentary to SciML/Static.jl#88 and
would be a big move in disentangling static types from ArrayInterface
This replaces the concept of "canonical" integers in ArrayInterface so
we can also move that functionality here.
@Tokazama
Copy link
Collaborator Author

Tokazama commented Nov 7, 2022

@chriselrod and @ChrisRackauckas , this should be ready for review.
I have a PR ready to go for ArrayInterface if/when this green lighted.
I'm pretty sure they only way this will result in breaking changes downstream of ArrayInterface is if undocumented, internal methods are being used.

@Tokazama Tokazama merged commit 0630508 into master Nov 15, 2022
@Tokazama Tokazama deleted the ranges branch November 15, 2022 09:37
Tokazama added a commit to JuliaArrays/ArrayInterface.jl that referenced this pull request Nov 17, 2022
* Remove optionally static range types

This is complimentary to SciML/Static.jl#88 and
would be a big move in disentangling static types from ArrayInterface

* Replace CanonicalInt with Static.IntType

* Remove internal `_pick_range` method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants