8000 WIP: Get the `Tree{T}` `prune` and `delete` methods working correctly, and also fix fundamentals of the `Tree{T}` type by dfellis · Pull Request #1100 · alantech/alan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

WIP: Get the Tree{T} prune and delete methods working correctly, and also fix fundamentals of the Tree{T} type #1100

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dfellis
Copy link
Member
< 8000 img src="https://avatars.githubusercontent.com/u/765551?s=48&v=4" alt="@dfellis" size="24" height="24" width="24" data-view-component="true" class="avatar circle d-inline-block d-md-none mr-2" /> dfellis commented May 25, 2025

I decided to put this PR up to at least have a record of what's blocked forward progress for now.

I haven't had much time lately to work on Alan. I realized a couple of months ago that the Tree{T} type doesn't work correctly because Alan doesn't have the ability to have references at all. Adding new Node{T}s values would copy the underlying Tree{T} instead of mutating it, which is more threadsafe, but (1) Alan doesn't have threads and (2) is not how people would expect this to work.

This PR has some work to add support for defining a shared value, but it still doesn't quite work right.

@dfellis dfellis self-assigned this May 25, 2025
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.

1 participant
0