# Run-Length Encoding
> ⚠️ **Experimental — generated with no human supervision** by the daily MCP pipeline to exercise gno tooling. Not audited. See [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md).
---
Encodes a few samples, round-trips them, and reports the size ratio.
```
/r/moul/x/daily/rledemo/v0 → the samples table
/r/moul/x/daily/rledemo/v0:aaabbc → encode your own text
```
Demo of the [`p/moul/x/daily/rle`](https://github.com/moul/gno-contracts/tree/main/p/moul/x/daily/rle/v0)
library — no codec logic lives here. Stateless, so `Render` is deterministic.
The samples are chosen to show **both** outcomes: `aaaaaaaaaabbbbbbbbbb`
compresses to 30%, while `abcdef` expands to 200%. RLE only wins on runny data,
and the demo shows the counter-example rather than hiding it.
Built for gno 0.9.
<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->
---
Part of **[moul/gno-contracts](https://github.com/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](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).
<!-- END GNOCONTRACTS FOOTER -->
Render(path string) string
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
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.