Klaus Post
banner
klauspost.com
Klaus Post
@klauspost.com
Making Go stuff go brrrrrrrrrrrrrrrrrrr
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
Wait? The #golang github.com/golang/snappy has been archived?

Any background on this?
February 12, 2025 at 11:50 AM
Time to upgrade all CI scripts ;)
golang.org Go @golang.org · Feb 11
🥳 Go 1.24.0 is released!

📰 Release notes: go.dev/doc/go1.24

📦 Download: go.dev/dl/#go1.24.0

#golang
February 12, 2025 at 10:31 AM
Helped a friend a bit to make a #golang concurrent version of the excellent age stream format by @filippo.abyssdomain.expert

Check it out if it sounds interesting: github.com/bifrosta/age...
GitHub - bifrosta/age-concurrent
Contribute to bifrosta/age-concurrent development by creating an account on GitHub.
github.com
February 9, 2025 at 6:06 PM
Average shopping experience on @bandcamp.com
February 7, 2025 at 11:35 AM
😜
February 7, 2025 at 11:24 AM