Welvet examples
49. stub/fountain
Part: VIII Β· Stubs
Package: github.com/openfluke/welvet/stub/fountain
Status: partial β π§
When
Scaffold / experimental stub stub/fountain (may be partial).
Where
import "github.com/openfluke/welvet/stub/fountain"
cd 49-stub-fountain && source ../env.sh && go run .
Why
Recover specialist weight blobs over lossy links via LT fountain codes, then ensemble.
What
NewLTEncoder/Decoder, RecoverWeightBlobs, Neural/DenseFactory helpers.
Sample output (captured)
*fountain.LTEncoder <nil>
Live capture from go run ./cmd/runall on local ../../welvet (exit 0).
Source
Copied from the Welvet feature book examples (openfluke.github.io/welvet/examples/49-stub-fountain).
main.go
Download source βpackage main
import (
"fmt"
"github.com/openfluke/welvet/stub/fountain"
)
func main() {
src := [][]byte{make([]byte, 64), make([]byte, 64), make([]byte, 64)}
enc, err := fountain.NewLTEncoder(src, 42)
fmt.Printf("%T %v\n", enc, err)
}