Chapter 49

stub/fountain

github.com/openfluke/welvet/stub/fountain🚧


Why it exists

Recover specialist weight blobs over lossy links via LT fountain codes, then ensemble.

What it is

NewLTEncoder/Decoder, RecoverWeightBlobs, Neural/DenseFactory helpers.

Go example

examples/49-stub-fountain/main.go

Run:cd welvet/examples/49-stub-fountain && source ../env.sh && go run .
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)
}

Output

Run python3 _gen_welvet_book.py --run to capture output.