rhaiscript / rhaiscript/rhai

Advanced threads and actors

Open
#32 9 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.