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

[future] consider dropping send/sync/static trait bounds once possible #311

Open
GlenDC opened this issue Sep 6, 2024 · 0 comments
Open
Labels
blocked Tasks which are blocked on other work. low prio Low priority item. needs input question Further information is requested

Comments

@GlenDC
Copy link
Member

GlenDC commented Sep 6, 2024

There might be a future where:

  1. the trait resolver and friends become better in detecting such trait bounds and we do not need to declare them everywhere
  2. we no longer aim to support tokio multi-threaded work-stealing but instead have structured concurrrency (e.g. 1 runtime per thread0
  3. we become better at coding (or a contributor appears on the stage who is) and finds a more ergonomic way to write this

It would allow us to write simpler code, where we also can work more often with references (e.g. not tied to 'static) instead of having to either resort to non-sync or use the pass-the-ball pattern (where you return the args back via result... dirty).

It's a word I do want to live in, but at the time it was too much of a distraction and either way Rust async still has plenty of work. This is more of a zombie tracker so we can look into this somewhere mid/late 2025. And maybe it just turns out to be a "grass is greener on the other side" kind of issue that we drop as won't do. We'll see.

Also feel free to start discussions here related to these bounds and the use in rama.

@GlenDC GlenDC added question Further information is requested needs input low prio Low priority item. blocked Tasks which are blocked on other work. labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Tasks which are blocked on other work. low prio Low priority item. needs input question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant