Vyro/OpenAnycast Playbook
Vyro/OpenAnycast Playbook
Overview
This playbook describes how Thagore programs can integrate with Vyro and OpenAnycast infrastructure through C FFI and native process spawning.
Current limitations
The current standard library does not provide fs, process, env, or http modules. Integration with external systems must go through extern func declarations pointing to C runtime functions, or through programs that read from stdin and write to stdout.
Pattern: stdin/stdout pipeline
The most portable integration pattern uses stdin/stdout:
import std.io as ioimport std.string as string
func main() -> i32: let line = io.read_line() let processed = string.concat("processed: ", line) println(processed) return 0This program can be composed in a shell pipeline with Vyro or any external system that reads stdin.
Pattern: extern func for system calls
Use extern func to call C system functions directly:
extern func system(cmd: str) -> i32
func main() -> i32: let rc = system("vyro status") return rc