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

Consider using binding sequence numbers rather than worlds for printing old objects #57210

Open
Keno opened this issue Jan 30, 2025 · 0 comments

Comments

@Keno
Copy link
Member

Keno commented Jan 30, 2025

Right now we have:

julia> struct Foo
           x::Int
       end

julia> x = Foo(1)
Foo(1)

julia> Base.delete_binding(@__MODULE__, :Foo)

julia> struct Foo
           x::Int
       end

julia> x
@world(Foo, 36312:36315)(1)

In discussion with @JeffBezanson, we didn't like having the world age numbers exposed, because
we may want them to in theory be garbage collectable and compressible in the future. We discussed
that instead of world ages, we may want to use sequence numbers of the binding replace, e.g.
@partition(Foo, 1) or @partition(Foo, end-1).

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

No branches or pull requests

1 participant