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 heapdemo is a small gnoweb demo of the binary heap / priority queue provided by the [p/moul/x/daily/heap](/p/...

Readme View source

gno.land/r/moul/x/daily/heapdemo/v0

Live demo of p/moul/x/daily/heap.

A thin, stateless realm: it holds no state of its own and contains none of the library's logic — Render just exercises the package and shows the result. Because it is stateless, the rendered page is identical on every call and on every node.

Render it at /r/moul/x/daily/heapdemo/v0.

The library README explains the design and the trade-offs; this realm is the worked example.


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/heapdemo/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 heapdemo is a small gnoweb demo of the binary heap / priority queue provided by the p/moul/x/daily/heap(/p/moul/x/daily/heap/v0) library: it shows min- and max-ordering and the deterministic tiebreak.

It contains no heap logic of its own. Stateless, so Render is deterministic — which is precisely what the library is for.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Imports 3

Source Files 3