NOTE(caleb): I'm using both consts and vars of the primes. Using consts where possible in the Go code is worth a small (but measurable) performance boost by avoiding some MOVQs. Vars are needed for the asm and also are useful for convenience in the Go code in a few places where we need to intentionally avoid constant arithmetic (e.g., v1 := prime1 + prime2 fails because the result overflows a uint64).
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.