Skip to content

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 25, 2025

The _apply_pure function only has one user, and that user is unsound anyways and should not be used, so replace that with equivalent _call_in_world_total call and remove unnecessary definitions.

The awkward distinction between invokelatest and _call_latest has not been relevant (and indeed causes performance issues) since kwfunc was introduced in #47157.

@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label Feb 25, 2025
@vtjnash vtjnash force-pushed the jn/invokelatest-builtins-cleanup branch 3 times, most recently from 54f9083 to d16b657 Compare February 27, 2025 20:00
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Feb 27, 2025
@topolarity
Copy link
Member

FYI, I get this warning when building:

┌ Warning: Failed to precompile expression
│   form = precompile(Tuple{typeof(Base.invokelatest), Any})
└ @ nothing nothing:0

The `_apply_pure` function only has one user, and that user is unsound
anyways and should not be used, so replace that with equivalent
`_call_in_world_total` call and remove unnecessary definitions.

The awkward distinction between `invokelatest` and `_call_latest` has
not been relevant (and indeed causes performance issues) since kwfunc
was introduced in #47157.
@vtjnash vtjnash force-pushed the jn/invokelatest-builtins-cleanup branch from d16b657 to bf78a52 Compare February 28, 2025 15:45
@IanButterworth IanButterworth merged commit 671c6a1 into master Mar 2, 2025
7 checks passed
@IanButterworth IanButterworth deleted the jn/invokelatest-builtins-cleanup branch March 2, 2025 04:40
KristofferC pushed a commit that referenced this pull request Mar 3, 2025
The `_apply_pure` function only has one user, and that user is unsound
anyways and should not be used, so replace that with equivalent
`_call_in_world_total` call and remove unnecessary definitions.

The awkward distinction between `invokelatest` and `_call_latest` has
not been relevant (and indeed causes performance issues) since kwfunc
was introduced in #47157.

(cherry picked from commit 671c6a1)
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Mar 8, 2025
vtjnash added a commit that referenced this pull request Mar 17, 2025
Fix typo from #57532 and ensure "inference world" code has the permitted
ability to inspect the max world age, since it needs that info in order
to cache results correctly.
vtjnash added a commit that referenced this pull request Mar 17, 2025
Fix typo from #57532 and ensure "inference world" code has the permitted
ability to inspect the max world age, since it needs that info in order
to cache results correctly.
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Mar 24, 2025
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
Fix typo from #57532 and ensure "inference world" code has the permitted
ability to inspect the max world age, since it needs that info in order
to cache results correctly.

(cherry picked from commit 7ee404c)
KristofferC pushed a commit that referenced this pull request Mar 31, 2025
Fix typo from #57532 and ensure "inference world" code has the permitted
ability to inspect the max world age, since it needs that info in order
to cache results correctly.

(cherry picked from commit 7ee404c)
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
The `_apply_pure` function only has one user, and that user is unsound
anyways and should not be used, so replace that with equivalent
`_call_in_world_total` call and remove unnecessary definitions.

The awkward distinction between `invokelatest` and `_call_latest` has
not been relevant (and indeed causes performance issues) since kwfunc
was introduced in JuliaLang#47157.
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.

5 participants