Klaus Post
banner
klauspost.com
Klaus Post
@klauspost.com
Making Go stuff go brrrrrrrrrrrrrrrrrrr
Recommended neat, fast #golang xxh3 implementation: New release, now with arm64 NEON: github.com/zeebo/xxh3
GitHub - zeebo/xxh3: XXH3 algorithm in Go
XXH3 algorithm in Go. Contribute to zeebo/xxh3 development by creating an account on GitHub.
github.com
January 24, 2026 at 4:48 PM
Released #golang compression v1.18.3 containing upstream CVE-2025-61728 fix:

github.com/klauspost/co...
Release v1.18.3 · klauspost/compress
Downstream CVE-2025-61728 See golang/go#77102 Full Changelog: v1.18.2...v1.18.3
github.com
January 16, 2026 at 9:18 AM
New #golang Reed-Solomon release. Contains new progressive field decoding and some significant speedups. Check it out: github.com/klauspost/re...
January 12, 2026 at 2:32 PM
Vibe Coders will understand.
December 19, 2025 at 3:04 PM
Compression library for #golang v1.18.2 released. If you are running v1.18.1 (specifically) please upgrade.
December 1, 2025 at 1:30 PM
func ifElse[V any](cond bool, trueVal, falseVal V) V {
if cond {
return trueVal
}
return falseVal
}

At least it is more readable than ? :
November 12, 2025 at 2:54 PM
Now even more #golang msgp codegen in v1.5.0. Now with generics. Generates code 1000x faster than your LLM! :D

Give it a spin: github.com/tinylib/msgp...
October 27, 2025 at 3:14 PM
Released v1.18.1 of the #golang compression library. You know what to do! Link as always github.com/klauspost/co...
October 23, 2025 at 4:32 PM
Vibe coding is no joke. With good guidance and review it is extremely powerful.
September 12, 2025 at 1:55 PM
Reposted by Klaus Post
TIL that you can compress .zip files with Zstandard (pkware.cachefly.net/webdocs/case... compression method 93), and that libzip and 7-Zip support that.

libzip.org/news/release...
github.com/ip7z/7zip/re...
September 9, 2025 at 2:20 PM
Why does my custom domain handle switch to "⚠ Invalid Handle" every month or so? @support.bsky.team
August 28, 2025 at 12:30 PM
Whoever did #golang "modernize" - thank you!

pkg.go.dev/golang.org/x...
modernize package - golang.org/x/tools/gopls/internal/analysis/modernize - Go Packages
pkg.go.dev
August 26, 2025 at 9:10 AM
Excellent blog post about hooking up Go into Java for erasure coding:

kohlschuetter.github.io/blog/posts/2...
Faster Reed-Solomon Erasure Coding in Java with Go & FFM
Backblaze’s Java-based Reed-Solomon Erasure Coding library is great tech, but comparatively slow. Let’s add some optimized Go, and get a whopping speedup.
kohlschuetter.github.io
August 11, 2025 at 4:10 PM
Un-archived github.com/klauspost/cr... repo after getting a bit more than 2x on IEEE CRC32 using AVX512. Will submit upstream to #golang, but if you want to test it out early check out the repo.
July 22, 2025 at 9:53 AM
New #golang cpuid release. As always github.com/klauspost/cp...
July 14, 2025 at 8:49 AM
IMO #golang is missing a clean way to send exact typed (and wrapped) errors across the wire between 2 similar binaries.

GOB would be ok, but registration isn't really feasible in big applications.
July 1, 2025 at 10:03 AM
🙄 #golang
June 19, 2025 at 2:49 PM
Would a #golang MinLZ compressor level with a better "worst case" speed be useful? Overly dramatic example...
May 17, 2025 at 9:27 AM
Realizing I needed to add a mutex to protect an RNG call, I almost ended up with this.... Need more coffee 🫘
May 15, 2025 at 2:37 PM
Sent in in. Now I can only 🤞
May 2, 2025 at 1:32 PM
Now @klauspost.com - wish that my old profile link would redirect to my new one, though. @bsky.app
April 22, 2025 at 2:40 PM
cmp.Or is so neat for error handling in #golang - just remember that *all* params are evaluated in order, and first error is returned.
April 16, 2025 at 10:17 AM
I with just released about 2 years of work on improving compression with a fixed encoding LZ77 style compressor for #golang

Our goal was to improve compression by combining and tweaking the best aspects of LZ4 and Snappy.

Check it out: github.com/minio/minlz
GitHub - minio/minlz: MinLZ is a LZ77 compressor, focused on realtime data compression
MinLZ is a LZ77 compressor, focused on realtime data compression - minio/minlz
github.com
March 17, 2025 at 5:36 PM
New #golang compression package release. Mainly focused on non-assembly performance. Now uses "unsafe" - use "nounsafe" tag to disable.

As always here: github.com/klauspost/co...
February 19, 2025 at 2:36 PM