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

Remove UnPack as a dependency and use SimpleUnPack in docs #103

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Conversation

devmotion
Copy link
Collaborator

Since UnPack.@unpack is based on unpack(x, Val(key)) it can lead to a lot of undesired specializations, see e.g. SciML/OrdinaryDiffEq.jl#1893. Therefore I put together a more lightweight macro that just calls getproperty in https://github.com/devmotion/SimpleUnPack.jl (by design, it has less features than UnPack.jl).

Initially I wanted to replace UnPack with SimpleUnPack in this package but then I noticed that apparently UnPack.@unpack is only used in the docs and not needed in the package itself anymore. It seems it was only used in the part that was moved to LogDensityProblemsAD. Hence I removed UnPack from the package and the tests, and only switched to SimpleUnPack in the docs.

Copy link
Owner

@tpapp tpapp left a comment

Choose a reason for hiding this comment

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

Perfect, thanks!

@tpapp tpapp merged commit e087000 into master Mar 8, 2023
@tpapp tpapp deleted the dw/unpack branch March 8, 2023 13:06
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.

2 participants