-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add examples #5
Comments
My attempt is here |
Yes, I tried too and it's definitely non-trivial :) You can see my attempts at https://github.com/matthieu-m/ghost-collections, you'll see there are 2 linked-lists:
The latter was definitely easier, but first of all it relies on the experimental Maybe I should revise the README.txt to indicate that actually managing to create a LinkedList with the footprint & performance of raw-pointers with One possibility for the examples would be linking to ghost-collections, but it combines both Please let me know how decipherable you find ghost-collections and whether you think it's a good example or we'd be better off with something using regular |
I read the paper on GhostCell, so I may not be an unbiased sample, but I do think that's helpful. It may be worth including something brief about GhostCell -- basically, it can be treated as a "regular" Cell and the token stuff ignored, as far as understanding the StaticRc usage goes. It may also be worth elaborating on the |
HI there! I figured I'd take a shot at building a doubly-linked list with static-rc, and it turned out to be pretty difficult. The main difficulty is in constructing reference cycles, as it's not possible to have more than two pointers to any list element.
Is there an example of this, or any other similar data structure? Could that be added to the docs?
The text was updated successfully, but these errors were encountered: