Skip to content

Start excising LinearAlgebra #51904

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

Closed
wants to merge 7 commits into from
Closed

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.

3 participants