Skip to content

Add concurrent mruby VMs and bytecode - #95

Merged
jackalcooper merged 1 commit into
agent/mruby-stack-02-lifecyclefrom
agent/mruby-stack-03-concurrency-bytecode
Aug 12, 2026
Merged

Add concurrent mruby VMs and bytecode#95
jackalcooper merged 1 commit into
agent/mruby-stack-02-lifecyclefrom
agent/mruby-stack-03-concurrency-bytecode

Conversation

@jackalcooper

Copy link
Copy Markdown
Contributor

What changed

  • run independent VMs concurrently on dirty CPU schedulers while serializing each individual VM
  • add compiled RITE bytecode resources reusable across isolated VMs
  • make bytecode close safe during concurrent use
  • validate VM isolation, concurrency, malformed compilation, and bytecode reuse

Why

This turns the package from one-shot evaluation into a practical multi-instance embedded runtime with reusable compiled programs.

Validation

  • MIX_ENV=test mix compile --force --warnings-as-errors
  • mix credo --strict
  • mix test --force (9 tests)

Stacked on #94.

@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 7e3d6b5 to 2c62113 Compare August 12, 2026 08:47
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 2c62113 to 42a34be Compare August 12, 2026 08:51
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch 2 times, most recently from 4ef4d0b to 9aba1d6 Compare August 12, 2026 09:07
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch 2 times, most recently from e1313ab to 6cd7129 Compare August 12, 2026 09:15
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch 2 times, most recently from 04202c8 to a389af0 Compare August 12, 2026 09:28
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch 2 times, most recently from 06f9dfd to 3c1f5a4 Compare August 12, 2026 09:41
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 3c1f5a4 to 0e4b64f Compare August 12, 2026 09:48
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 0e4b64f to 5267f79 Compare August 12, 2026 10:07
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 5267f79 to 4dddbcb Compare August 12, 2026 10:17
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 4dddbcb to 3d8400f Compare August 12, 2026 10:24
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 3d8400f to fc96a63 Compare August 12, 2026 10:28
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from fc96a63 to 2593617 Compare August 12, 2026 10:59
@jackalcooper
jackalcooper force-pushed the agent/mruby-stack-03-concurrency-bytecode branch from 2593617 to bf33fd4 Compare August 12, 2026 11:13
@jackalcooper
jackalcooper marked this pull request as ready for review August 12, 2026 11:23
@jackalcooper
jackalcooper merged commit 93b8460 into main Aug 12, 2026
15 checks passed
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