-
Notifications
You must be signed in to change notification settings - Fork 41
Vendorize StaticArrays.FixedSizeArrays #153
Conversation
This patch allows the JuliaArrays/StaticArrays.jl repository to deprecate StaticArrays.FixedSizeArrays without affecting GeometricTypes.jl.
Thanks! This seems perfectly reasonable to me. For clarity and proper attribution, could you please add a comment at the beginning of
(which is just a copy of the license file from https://github.com/JuliaArrays/StaticArrays.jl/blob/master/LICENSE.md ) |
Done. Is there by the way anything we can do about the following warnings? WARNING: Method definition isnan(StaticArrays.StaticArray{S, T, N} where N where T where S<:Tuple) in module FixedSizeArrays at /home/travis/.julia/packages/StaticArrays/Ze5H3/src/FixedSizeArrays.jl:60 overwritten in module FixedSizeArrays at /home/travis/build/JuliaGeometry/GeometryTypes.jl/src/FixedSizeArrays.jl:83.
WARNING: Method definition extrema(AbstractArray{T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N), 1}) where {T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N)} in module FixedSizeArrays at /home/travis/.julia/packages/StaticArrays/Ze5H3/src/FixedSizeArrays.jl:77 overwritten in module FixedSizeArrays at /home/travis/build/JuliaGeometry/GeometryTypes.jl/src/FixedSizeArrays.jl:100.
WARNING: Method definition minimum(AbstractArray{T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N), 1}) where {T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N)} in module FixedSizeArrays at /home/travis/.julia/packages/StaticArrays/Ze5H3/src/FixedSizeArrays.jl:81 overwritten in module FixedSizeArrays at /home/travis/build/JuliaGeometry/GeometryTypes.jl/src/FixedSizeArrays.jl:104.
WARNING: Method definition maximum(AbstractArray{T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N), 1}) where {T<:(StaticArrays.StaticArray{Tuple{N}, T, 1} where T where N)} in module FixedSizeArrays at /home/travis/.julia/packages/StaticArrays/Ze5H3/src/FixedSizeArrays.jl:84 overwritten in module FixedSizeArrays at /home/travis/build/JuliaGeometry/GeometryTypes.jl/src/FixedSizeArrays.jl:107. |
We shouldn't include those definitions in GeometryTypes as it's technically type piracy. They have nothing to do with FixedSizeArrays, so they should probably just be defined in StaticArrays.jl or not defined at all. @andyferris will the methods here: https://github.com/JuliaArrays/StaticArrays.jl/blob/86097997bd846f0b9f4331cd55ba8a233375173b/src/FixedSizeArrays.jl#L59-L85 be preserved when you deprecate and remove FixedSizeArrays? |
@rdeits I removed the definitions that from FixedSizeArrays. I assume we will have to wait for @andyferris's reply before can merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this step.
src/FixedSizeArrays.jl
Outdated
This code was copied from https://github.com/JuliaArrays/StaticArrays.jl which | ||
is written by Andy Ferris and released under the MIT "Expat" License: | ||
|
||
> Copyright (c) 2016: Andy Ferris. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have my permission to drop the license and include the code in GeometryTypes. I'm assuming @SimonDanisch will similarly agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure :)
There were always a couple small definitions in |
Andy Ferris: > You have my permission to drop the license and include the code in GeometryTypes. I'm assuming @SimonDanisch will similarly agree.
I removed the attribution based on @andyferris's feedback. Please let me know if I did it incorrectly 🙂 |
@rdeits I had a look at the functions in https://github.com/JuliaArrays/StaticArrays.jl/blob/86097997bd846f0b9f4331cd55ba8a233375173b/src/FixedSizeArrays.jl#L59-L85. IMO most of these should not be preserved in StaticArrays:
We might think about retaining |
Thank you, this seems to work fine :) |
This patch allows the JuliaArrays/StaticArrays.jl repository to deprecate StaticArrays.FixedSizeArrays without affecting GeometricTypes.jl.
Resolves #132.
I am very new to Julia and I am not sure if this patch makes any sense. I am looking forward to receiving constructive feedback 🙂