Advanced threads and actors
Open
Nobody has claimed this yet.
new feature
- Dominant language
- Rust
- Stars
- 5.7k
- Forks
- 249
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 23
Description
Turn threads into possible expressions, an extremely handy feature. Possibly introduce actors from actress for communication with other threads during their execution:
// thread syntax TBD
let mynum = spawn || {
stuff1();
stuff2();
etc();
4
}
// Do other stuff
let x = 4 + mynum; // mynum is joined now and it's return value is taken
// after this point mynum is a regular integer variable
// mynum.join() for manual joining, noop if already joined
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposed thread syntax in the issue body, including spawn, implicit joining through mynum, and mynum.join(), then investigate how actor communication via actress would fit. Before implementation, clarify the syntax, execution semantics, and scope of actor support; done would require an agreed design rather than the current tentative proposal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100