Initial commit.

This commit is contained in:
2025-08-13 12:17:25 -04:00
commit 581771d93a
11 changed files with 878 additions and 0 deletions

21
cmd/calc/main.go Normal file
View File

@ -0,0 +1,21 @@
// Rrea
package main
import (
"fmt"
"log"
"os"
"smariot.com/complexity"
)
func main() {
entropy, count, err := complexity.Reader(os.Stdin)
fmt.Printf("read %d runes, entropy=%fb, average=%fb/rune\n", count, entropy, entropy/float32(count))
if err != nil {
log.Fatal(err)
}
}