Klaus Post's Avatar

Klaus Post

@klauspost.com

Making Go stuff go brrrrrrrrrrrrrrrrrrr

162
Followers
51
Following
95
Posts
13.11.2024
Joined
Posts Following

Latest posts by Klaus Post @klauspost.com

My own approach for repos I don't intend to maintain is to archive, and when available link the fork on top of the README. Seems fair to all involved.

13.02.2026 15:58 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

An http . HandlerFunc implements http . Handler - so you are getting a Handler back as well. If you need to convert the function type it should be trivial.

09.02.2026 18:19 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - klauspost/stdgozstd: Zstandard for Golang Stdlib (do not use) - https://github.com/golang/go/issues/62513 Zstandard for Golang Stdlib (do not use) - https://github.com/golang/go/issues/62513 - klauspost/stdgozstd

Proposal for stdlib #golang compress/zstd implementation: github.com/klauspost/st...

09.02.2026 17:58 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Maybe there will be cake if you fix it? ;)

09.02.2026 11:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

New v1.18.4 release of #golang compression library adds zstd compression to gzhttp middleware. Also zstd can now have some options modified on reset. See more at: github.com/klauspost/co...

09.02.2026 08:38 πŸ‘ 9 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Cool! But can't help notice it gets darker instead of more 'grey' with distance. GL HF with your game!

06.02.2026 20:02 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Well, hello there follow GenX'er.

05.02.2026 12:24 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
GitHub - zeebo/xxh3: XXH3 algorithm in Go XXH3 algorithm in Go. Contribute to zeebo/xxh3 development by creating an account on GitHub.

Recommended neat, fast #golang xxh3 implementation: New release, now with arm64 NEON: github.com/zeebo/xxh3

24.01.2026 16:48 πŸ‘ 10 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0

I actually thinks it is under-selling the readability gains from this.

Interfaces are "interesting" - and probably the only non-obvious aspect.

23.01.2026 09:56 πŸ‘ 5 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Release v1.18.3 Β· klauspost/compress Downstream CVE-2025-61728 See golang/go#77102 Full Changelog: v1.18.2...v1.18.3

Released #golang compression v1.18.3 containing upstream CVE-2025-61728 fix:

github.com/klauspost/co...

16.01.2026 09:18 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Wish there was a way to regression tests. If you do a PR and are willing to do followups we could guineapig on my compress/zip - after all it has a higher release schedule.

That is probably the best I can offer to make it smooth into the stdlib.

13.01.2026 12:51 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

You are brave ;) So many implementations out there - always worried that a random Java implementation will break. But thanks for taking it on! <3

13.01.2026 11:40 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - minio/zipindex: Package for indexing zip files and storing a compressed index Package for indexing zip files and storing a compressed index - minio/zipindex

Slightly different approach: github.com/minio/zipindex

It will parse the EOCD and allow keeping a compact index so individual files can be read with a single RANGE get. Allows servers to list/serve files within a zip instantly.

13.01.2026 11:27 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Add Leopard16 GFNI on amd64 by klauspost Β· Pull Request #317 Β· klauspost/reedsolomon This adds GFNI to leopard 16 encoding. Example before/after: Ξ» benchmark -k 1000 -m 200 -size=1000000 -codec leopard16 -gfni=false -avx-gfni=false Benchmarking 1 block(s) of 1000 data (K) and 200 p...

Ended up spending a the evening getting GFNI into the leopard gf16 code: github.com/klauspost/re...

13.01.2026 10:44 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

New #golang Reed-Solomon release. Contains new progressive field decoding and some significant speedups. Check it out: github.com/klauspost/re...

12.01.2026 14:32 πŸ‘ 5 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

Vibe Coders will understand.

19.12.2025 15:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Compression library for #golang v1.18.2 released. If you are running v1.18.1 (specifically) please upgrade.

01.12.2025 13:30 πŸ‘ 2 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

func ifElse[V any](cond bool, trueVal, falseVal V) V {
if cond {
return trueVal
}
return falseVal
}

At least it is more readable than ? :

12.11.2025 14:54 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

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...

27.10.2025 15:14 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Kenneth B is in way over his head ;)

27.10.2025 10:35 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Released v1.18.1 of the #golang compression library. You know what to do! Link as always github.com/klauspost/co...

23.10.2025 16:32 πŸ‘ 9 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

Vibe coding is no joke. With good guidance and review it is extremely powerful.

12.09.2025 13:55 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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...

09.09.2025 14:20 πŸ‘ 36 πŸ” 8 πŸ’¬ 2 πŸ“Œ 0

Why does my custom domain handle switch to "⚠ Invalid Handle" every month or so? @support.bsky.team

28.08.2025 12:30 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
modernize package - golang.org/x/tools/gopls/internal/analysis/modernize - Go Packages

Whoever did #golang "modernize" - thank you!

pkg.go.dev/golang.org/x...

26.08.2025 09:10 πŸ‘ 1 πŸ” 4 πŸ’¬ 0 πŸ“Œ 0
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.

Excellent blog post about hooking up Go into Java for erasure coding:

kohlschuetter.github.io/blog/posts/2...

11.08.2025 16:10 πŸ‘ 8 πŸ” 3 πŸ’¬ 0 πŸ“Œ 1
Benchmark of IEEE CRC32.

Benchmark of IEEE CRC32.

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.

22.07.2025 09:53 πŸ‘ 6 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

New #golang cpuid release. As always github.com/klauspost/cp...

14.07.2025 08:49 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

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.

01.07.2025 10:03 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

πŸ™„ #golang

19.06.2025 14:49 πŸ‘ 1 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0