Expand description
/lang/tcl/ VFS mount — a self-contained, stateful 9P file service.
TclMount::spawn owns its !Send molt interpreter + a dedicated driver
thread internally; callers mount it and never touch its channels or state.
The namespace is the only interface — a /lang/tcl/eval write is served by
the mount’s own driver. There is no external rx to drain, so adding a Tcl
shell requires no edits to the dispatch/RPC/UI layer (epic #508, issue #634).
Layout:
/lang/tcl/eval— ctl file: write a Tcl script, read the result/lang/tcl/vars/— dynamic dir: list Tcl variables as readable files/lang/tcl/procs/— dynamic dir: list defined procs as readable files
Built on hyprstream-vfs’s devfile primitives (ControlFile for eval,
DynamicDir for vars/procs) rather than hand-rolling the write→latch→
read state machine — see hyprstream_vfs::devfile for the shared
implementation (#609).
Structs§
- TclMount
- VFS mount that proxies
/lang/tclrequests to a!SendTcl interpreter owned by the mount itself.
Enums§
- TclCommand
- A command sent from
TclMountto the thread owning the Tcl interpreter.