Background
Design: docs/native-execution-and-parallelism.md §4.1.
Depends on #1 and #2 (needs a working Tier 1 backend).
Make Tier 1 ergonomic: configured "native-only" packages import as proxy modules
whose calls route over offload.run.
Tasks
Acceptance
import numpy as np; np.<call>(...) in the WASM interpreter transparently
executes in the Tier 1 backend and returns a correct result, for
call-with-serializable-args.
Out of scope
Transparent live-object proxying (ndarray views, callbacks, __getattr__
chains) — that is Phase 5.
Background
Design:
docs/native-execution-and-parallelism.md§4.1.Depends on #1 and #2 (needs a working Tier 1 backend).
Make Tier 1 ergonomic: configured "native-only" packages import as proxy modules
whose calls route over
offload.run.Tasks
meta_pathfinder in the WASM CPython that intercepts configurednative-only package imports and returns a proxy module.
(entry, args), invokeoffload.run, deserialize the result.env-id).Acceptance
import numpy as np; np.<call>(...)in the WASM interpreter transparentlyexecutes in the Tier 1 backend and returns a correct result, for
call-with-serializable-args.
Out of scope
Transparent live-object proxying (ndarray views, callbacks,
__getattr__chains) — that is Phase 5.