Examples gallery
Paths are relative to the vow repository root. Prefer vow run / vow check from a clone or installed toolchain.
Phase 1 — stdlib & collections
Section titled “Phase 1 — stdlib & collections”| Example | Command |
|---|---|
tests/lang/phase1_stdlib.vow |
vow run … -- --grant clock: |
tests/lang/phase2_collections.vow |
vow run … |
tests/lang/closure_map.vow |
vow run … |
Capabilities, budgets, async
Section titled “Capabilities, budgets, async”| Example | Command |
|---|---|
tests/lang/caps_poc.vow |
vow run … -- --grant fs-read:/tmp |
tests/lang/phase2_caps.vow |
vow run … -- --grant log:/tmp/vow.log --grant db:sqlite:mem |
tests/lang/phase3_caps.vow |
vow run … --manifest tests/lang/vow.grants.toml -- --audit-log |
tests/lang/phase3b_budget.vow |
vow run … -- --budget cpu-ms:500 |
tests/lang/phase3b_multi_tenant.vow |
vow run … --manifest … -- --audit-log --budget cpu-ms:50 |
tests/lang/phase3_async.vow |
vow run … (legacy sample) |
tests/lang/test_async_general.sh |
child + spawn_blocking + multi-await (exit 49) |
tests/lang/test_async_db.sh |
await db_query |
tests/lang/async_join.vow |
async_spawn — --grant clock: |
tests/lang/async_scheduler.vow |
async_sleep — --grant clock: |
hello-app/src/main.vow |
Full-stack Postgres + HTTP + block_on |
tests/lang/elision_needs_with.vow |
vow check … / vow run … |
Profile a handler:
vow profile tests/lang/phase3b_budget.vow --samples 5Language surface
Section titled “Language surface”| Example | Shows |
|---|---|
tests/lang/ergonomics.vow |
new / switch / try / ?? / print(...) |
tests/lang/inheritance.vow |
open / extends / override |
tests/lang/method_chain.vow |
Fluent self return |
tests/lang/overload.vow |
Compile-time overloads |
tests/lang/dyn_shapes.vow |
dyn Interface |
tests/lang/parens.vow |
Grouping expressions |
Concurrency & process
Section titled “Concurrency & process”| Example | Command |
|---|---|
tests/lang/threads_sum.vow |
vow run … -- --grant threads |
tests/lang/process_echo.vow |
vow run … -- --grant proc: |
tests/lang/file_mtime_demo.vow |
vow run … -- --grant fs-read:… |
HTTP / packages
Section titled “HTTP / packages”| Example | Notes |
|---|---|
vow-examples/vow-web-server/http_api.vow |
App hello — --grant net: |
vow-examples/vow-web-server/json_crud.vow, mounted_api.vow |
JSON / mount / params |
vow-examples/vow-web-server/http_api_packaged/ |
vpm import + vow-serve deploy (vow.serve.toml) |
vow-examples/vow-web-server/integration_rest/ |
Prefer this — vpm install && ./e2e.sh |
Agent tools (experimental)
Section titled “Agent tools (experimental)”| Example | Command |
|---|---|
libs/vow-agent/examples/echo_tool.vow |
python3 libs/vow-agent/tools/runner.py …/echo_tool.vow |
See Package ecosystem for maturity labels.