Chapter 36

systems/tanhi — UDP HUD

github.com/openfluke/welvet/systems/tanhi


Why it exists

Training visualization must never block the engine — best-effort UDP JSON-lines to a HUD.

What it is

ConfigFromGrid, Emit/EmitSweep, DefaultUDPPort. SoulGlitch-style consumers.

Go example

examples/36-tanhi/main.go

Run:cd welvet/examples/36-tanhi && source ../env.sh && go run .
package main

import (
	"github.com/openfluke/welvet/architecture"
	"github.com/openfluke/welvet/systems/tanhi"
)

func main() {
	g := architecture.NewGrid(1, 1, 1, 1)
	cfg := tanhi.ConfigFromGrid(g)
	tanhi.EmitSweep(cfg, "epoch-0") // non-blocking best-effort
}

Output

exit 0 · last run via go run .

(no output)