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

No weak pointers? #47

Closed
milibopp opened this issue Apr 1, 2015 · 3 comments
Closed

No weak pointers? #47

milibopp opened this issue Apr 1, 2015 · 3 comments

Comments

@milibopp
Copy link
Owner

milibopp commented Apr 1, 2015

According to @acrichton weak pointers won't be stabilized for 1.0. Internally this crate makes heavy use of them, so it is unlikely that it will be ready to use for 1.0.

Ideas to get around this

  • Shipping own Weak<T>: Would not be exposed, so could be done as a mere implementation detail. Also fairly easy to do (just copy & paste from stdlib).
  • Lifetime bounds instead of ref-counting: Good for performance, but it might make the library slightly harder to use, as this will propagate into the API. This approach is radically different and goes into afaik unexplored terrain for FRP libraries. Requires some experimentation.
@milibopp
Copy link
Owner Author

Shipping own Weak<T> appears to be unfeasible, because the building blocks of the arc module are still unstable. See the out-of-tree implementation on this branch.

@jakerr
Copy link

jakerr commented Aug 29, 2015

Heads up! rust-lang/rust#27718 just went into final-comment-period for stabilizing arc_weak, rc_weak etc.

@milibopp
Copy link
Owner Author

Oh, that's nice. Thank you for the notification! Looking forward to finally bring carboxyl to stable Rust ;)

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

No branches or pull requests

2 participants