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

feat: allow to pick Arc vs Rc via GATs? #82

Open
dzmitry-lahoda opened this issue Jul 1, 2024 · 4 comments
Open

feat: allow to pick Arc vs Rc via GATs? #82

dzmitry-lahoda opened this issue Jul 1, 2024 · 4 comments

Comments

@dzmitry-lahoda
Copy link

Given Rust GATs are stable for a while, can use these go make imbl Arc/Rc generic?

For example https://www.youtube.com/watch?v=JwG-Wa7dOBU

It will allow same code run in multi and single thread scenarios

@jneem
Copy link
Owner

jneem commented Jul 2, 2024

Probably! We had some discussion here already. Mostly, it's just waiting for someone to try to do it 😄

@dzmitry-lahoda
Copy link
Author

dzmitry-lahoda commented Jul 2, 2024

If one would try to do that, what is most promising code lines to plug changes to get code compile asap?

I mean what data structure and what line I can modify towards, can compilation broken, and than fixing it, and get test passed?

@Techcable
Copy link

Maybe use the archery crate? That is what rpds uses.

@jneem
Copy link
Owner

jneem commented Sep 17, 2024

Sure, that might make the implementation easier. (Although archery predates GATs, right? Maybe it can be done better without archery now? I haven't explored the possibilities...)

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

3 participants