-
Notifications
You must be signed in to change notification settings - Fork 3
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
Also import ScopeStorage
from Base
with Julia >= 1.11
#14
Comments
Why do you need an empty Scope? Scope is not something user-facing and I would like to examine the pattern first, |
Hey Valentin, sure -- we have a task_scope = @something(ScopedValues.current_scope(), _EMPTY_SCOPE) When running our task, we reconstruct the scope using |
Enter_scope is not public and we need to be careful with the semantics here. Long-term I want to be able to support compiler optimization over scoped values and letting the user manipulate the scope directly would break those. We can discuss snapshotting (x-ref #6), but I am not comfortable with user packages directly manipulating the internals. |
Gotcha, thanks, too bad there seems to be no way to implement snapshotting in userspace. Any time estimate for the snapshotting feature to be finalized? Once done, would it be possible to snapshot the |
While migrating from
ContextVariablesX.jl
, we needed an "empty scope" in place of emptyContextSnapshot{T}
. To do that in a way that is works both before and after Julia 1.11, we needed this hack:Since
ScopeStorage
is not imported to the package fromBase
in 1.11.Could we please import it?:)
The text was updated successfully, but these errors were encountered: