Skip to content

docs: roadmap for Ariadne scripting hosts (arix, ariglx, arisrvx) - #992

Merged
transfix merged 2 commits into
masterfrom
docs/ariadne-scripting-hosts
Nov 3, 2026
Merged

transfix merged 2 commits into
masterfrom
docs/ariadne-scripting-hosts

Conversation

@transfix

@transfix transfix commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

A design for Ariadne hosts that embed a CPython interpreter with pycvc, pycvc_gl, numpy and the science packages, natively and in one WebAssembly module, so the Python Ariadne demos and GRL-SNAM's demos run in an arigl page. Docs only: docs/roadmap/ARIADNE_SCRIPTING_HOSTS.md. Nothing is built.

What it covers

  • What exists (§1), checked against master and cvcpkg.org today:

    Verdict: feasible. The remaining work is integration.

  • Names (§2): arix, ariglx, arisrvx and ariglx-web (chosen in review). The x marks the extended host, so Lua can join the same binaries later. Documents ask for python in requires:, never for a binary.

  • Engine (§3): a python_engine library, the _arihost builtin module, and an embedded mode for pycvc_gl.ariadne: a Python host for Ariadne documents #985's Host, so one script runs under python app.py and ariglx run app.py.

  • Documents (§4): a python: block whose exports become host functions; python.* capability tokens; a trust rule (--python-allow ORIGIN for anything that isn't a local file); a console widget.

  • Browser (§5): one link that merges arigl-web with link-host.sh, a manifest convention for wasm C-extension packages, lean and full tiers, and the Asyncify question.

  • arisrv (§6):

    • server documents in stock arisrv first;
    • Python on its own script thread, never the relay loop;
    • client code in three tiers: named functions, DSL programs, then restricted Python;
    • what RestrictedPython does and doesn't guarantee, and the worker-process layer that makes "can't blow up the interpreter" true.
  • Demos and VolRover (§7), Lua later (§8), risks (§9), phases (§10).

Open questions for review

  • Native trust: is --python-allow enough (§4.3)?
  • The order of the phases (§10).

Host variants that embed CPython with pycvc, pycvc_gl and numpy, natively and in one wasm
module: what already exists (static CPython/numpy/vtk-python/pycvc_gl for wasm, the Python
host in #985, VolRover3's embedded interpreter), the naming, the engine and host module, a
python: block for documents with a trust rule, the arigl-py-web link and its risks, server
documents and sandboxed client scripts on arisrv (RestrictedPython in worker processes),
and where Lua fits later. Design only; nothing is built.
The x marks the extended host (the stock runtime plus its scripting engines), so a Lua engine
can join the same binaries without the names going stale. Lua's hosting now lands in the x hosts
beside Python; the stock hosts stay a separate decision.
@transfix transfix changed the title docs: roadmap for Ariadne scripting hosts (ari-py, arigl-py, arisrv-py) docs: roadmap for Ariadne scripting hosts (arix, ariglx, arisrvx) Nov 3, 2026
@transfix
transfix merged commit 3d5c15c into master Nov 3, 2026
20 of 28 checks passed
@transfix
transfix deleted the docs/ariadne-scripting-hosts branch November 3, 2026 06:21
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