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

Bump Julia to 0.6, fix 0.7 depwarns, remove some deprecations #39

Merged
merged 1 commit into from Aug 5, 2017

Conversation

ararslan
Copy link
Member

@ararslan ararslan commented Aug 4, 2017

Summary of changes:

  • Raise minimum Julia version to 0.6
  • Fix deprecation warnings on 0.7 for parametric syntax and type declarations
  • Remove some now unnecessary version checks
  • Remove dependency on Compat
  • Remove 0.5 from the CI testing
  • Delete implicit vectorization deprecations (fixes Fails to load on Julia v0.7 #38)
  • Work around 0-arg DomainError deprecation on 0.7

src/gamma.jl Outdated
@@ -2,7 +2,7 @@

using Base.MPFR: ROUNDING_MODE, big_ln2

@compat ComplexOrReal{T} = Union{T,Complex{T}}
ComplexOrReal{T} = Union{T,Complex{T}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even though not necessary maybe add a const to make it evident it's a type alias?

@@ -1,28 +1,10 @@
# This file contains code that was formerly a part of Julia. License is MIT: http://julialang.org/license

using Base: @deprecate, depwarn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deprecate is already exported by base

for f in (:polygamma, :zeta, :besseli, :besselix, :besselj, :besseljx, :besselk, :besselkx,
:bessely, :besselyx, :besselh, :besselhx, :hankelh1, :hankelh2, :hankelh1x, :hankelh2x)
@eval @dep_vectorize_2arg Number $f
end

@deprecate airy(z::Number) airyai(z)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

presumably these were introduced in the last release, and hence require on more version bump before removal?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Those functions aren't being removed, just their implicit vectorizations

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L20 @deprecate airy(z::Number) airyai(z), not the line above that you removed .
I was wondering if these deprecations have been here for long enough to remove in this release as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. Yeah we could actually probably just delete everything in src/deprecated.jl at this point but I figured this was likely more commonly used in the wild than implicit vectorization, so I just left it for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to double check.

@ararslan ararslan merged commit c7e0993 into master Aug 5, 2017
@ararslan ararslan deleted the aa/deprecations branch August 5, 2017 02:03
@tkelman
Copy link
Contributor

tkelman commented Aug 5, 2017

May want to actually make use of the new DomainError feature? Maybe Compat could support 1 and 2-arg DomainError constructors that ignore the inputs. Hopefully that wouldn't have a performance cost on 0.6 and earlier.

@ararslan
Copy link
Member Author

ararslan commented Aug 5, 2017

I agree that it would be good to make use of that feature but that was a bigger change than I wanted to do here.

@musm
Copy link
Contributor

musm commented Aug 9, 2017

Now that Compat supports the new DomainError features, it would be worthwhile to use them here.

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.

Fails to load on Julia v0.7
3 participants