func Render
Render renders the demo for gnoweb.
Package ringbufferdemo is a small gnoweb demo of the fixed-capacity FIFO provided by the [p/moul/x/daily/ringbuffer](...
⚠️ Experimental — generated with no human supervision by the daily MCP pipeline to exercise gno tooling. Not audited. See r/moul/x/daily.
Pushes six entries into a buffer of capacity four and renders, step by step, what survived and what each overflowing push evicted.
Demo of the p/moul/x/daily/ringbuffer
library — this realm holds no buffer logic of its own. Stateless, so Render
is fully deterministic.
Showing the evicted value in its own column is deliberate: it is the part of the API that keeps a rolling window from dropping data silently.
Built for gno 0.9.
Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
Dependency graph:

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.
Package ringbufferdemo is a small gnoweb demo of the fixed-capacity FIFO provided by the p/moul/x/daily/ringbuffer(/p/moul/x/daily/ringbuffer/v0) library: it pushes more entries than the buffer can hold and shows what survives, plus what each overflowing push evicted.
It contains no buffer logic of its own. Stateless, so Render is deterministic.