Select a file to view its exact on-chain source. Sorted README → gnomod → sources → tests.
Render(path string) string
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
# Ring Buffer
A fixed-capacity FIFO that overwrites its oldest entry, demoing the [`p/moul/x/daily/ringbuffer`](/p/moul/x/daily/ringbuffer/v0) library.
Capacity **4**, pushing 6 entries:
| push | evicted | contents (oldest → newest) |
|---|---|---|
| `alpha` | — | `alpha` |
| `bravo` | — | `alpha bravo` |
| `charlie` | — | `alpha bravo charlie` |
| `delta` | — | `alpha bravo charlie delta` |
| `echo` | `alpha` | `bravo charlie delta echo` |
| `foxtrot` | `bravo` | `charlie delta echo foxtrot` |
> The buffer never grows: once full, each push costs the oldest entry. On chain that bound is the point — an unbounded queue is an unbounded storage bill.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.