Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package ringbufferdemo is a small gnoweb demo of the fixed-capacity FIFO provided by the [p/moul/x/daily/ringbuffer](...

Readme View source

Ring Buffer

⚠️ 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:

gno.land/r/moul/x/daily/ringbufferdemo/v0 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.

Overview

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.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Imports 3

Source Files 3