Skip to content

Phase 2: Tier 1 native execution via v86 (offload backend) #2

@zacharywhitley

Description

@zacharywhitley

Background

Design: docs/native-execution-and-parallelism.md §3 (Tier 1), §4.2, §11.
Depends on #1 (the tegmentum:py-offload WIT contract).

Run native code from packages with no wasm32-wasip2 wheel by executing them in
a native CPython inside the v86 wasmmachine, reached through the offload WIT.

Tasks

  • Resident guest-side dispatcher (native CPython in the v86 Linux guest) that
    reads a task, resolves entry, runs it, and writes back outcome.
  • Transport over the channel available today (wasi:cli/command + serial /
    virtiofs /workspace); design so it can move to typed v86 WIT when
    boot/device worlds are wired upstream.
  • Snapshot a booted, package-loaded guest and restore per call (never
    boot-per-call).
  • Implement offload.run host shim binding the host to the guest dispatcher.
  • Benchmark warm-call latency to resolve the open question in design §11.

Acceptance

A native-only package call (e.g. a tiny numpy op) runs end-to-end through
offload.run against a snapshot-restored guest, with a recorded warm-call
latency number.

Notes / deps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions