Skip to content

Conversation

@vchuravy
Copy link
Member

No description provided.

vchuravy and others added 7 commits October 20, 2023 10:47
…51641)

The problem with the `delete_method` in `__init__` approach is that we
invalidate the method-table,
after we have performed all of the caching work. A package dependent on
`Random`, will still see
the stub method in Base and thus when we delete the stub, we may
invalidate useful work.

Instead we delete the methods when Random is being loaded, thus a
dependent package only ever sees
the method table with all the methods in Random, and non of the stubs
methods.

The only invalidation that thus may happen are calls to `rand` and
`randn` without first doing an `import Random`.
During `./julia -e import SparseArrays`
We would see an "method overwritting" not supported during
precompilation, as far as I figured out this is due to the
check searching for methods active in the world prior.

So adding a bit of distance avoids that check.
@vchuravy vchuravy added the help wanted Indicates that a maintainer wants help on an issue or pull request label Feb 14, 2024
@vchuravy vchuravy closed this Mar 11, 2024
@vchuravy vchuravy deleted the vc/excise_linalg branch March 11, 2024 23:59
@waldyrious
Copy link
Contributor

Out of curiosity, why was this PR abandoned?

@ViralBShah
Copy link
Member

LinearAlgebra was moved to its own repo in #56637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Indicates that a maintainer wants help on an issue or pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants