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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v0 source realm

Package bitsetdemo is a small gnoweb demo of the dense bit vector provided by the [p/moul/x/daily/bitset](/p/moul/x/d...

Readme View source

BitSet

⚠️ Experimental — generated with no human supervision by the daily MCP pipeline to exercise gno tooling. Not audited. See r/moul/x/daily.


Sieves the primes under 100 into a bit set and shows the set algebra on two small sets, rendered as a table.

Demo of the p/moul/x/daily/bitset library — storage, popcount and every set operation come from the package; this realm does no bit-twiddling of its own. Stateless and read-only, so Render is fully deterministic.

The sieve is a nice fit: the bit set is used twice, once as the composite marker and once as the result, which is exactly what a dense bit vector is for.

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.

On mainnet: deployment status transactions unique callers deployed revision

Dependency graph:

gno.land/r/moul/x/daily/bitsetdemo/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 bitsetdemo is a small gnoweb demo of the dense bit vector provided by the p/moul/x/daily/bitset(/p/moul/x/daily/bitset/v0) library: it sieves the primes under 100 into a bit set and shows the set algebra on two small sets.

It contains no bit-twiddling of its own — storage, popcount and the set operations all come from the library. Stateless, so Render is deterministic.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Dependencies

Source Files 4