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

bitsetdemo/v0 package

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.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/bitsetdemo/v0.Render()"

Result