Profile avatar
klauspost.com
Making Go stuff go brrrrrrrrrrrrrrrrrrr
58 posts 104 followers 44 following
Regular Contributor
Active Commenter

Now @klauspost.com - wish that my old profile link would redirect to my new one, though. @bsky.app

cmp.Or is so neat for error handling in #golang - just remember that *all* params are evaluated in order, and first error is returned.

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

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

Wait? The #golang github.com/golang/snappy has been archived? Any background on this?

Time to upgrade all CI scripts ;)

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

Average shopping experience on @bandcamp.com

😜

The @fireflyzero.bsky.social ROM file format is a Zip archive compressed with Zstandard. For fun I wrote a small CLI in Go to extract these using the lovely compress module by @klauspost.bsky.social (Note that you could just as well use `firefly_cli import <file>`) gist.github.com/peterhellber...

Pretty fast, pretty random, endless, seekable #golang Reader: pkg.go.dev/github.com/m... (16KB internal block of random data, xor with 32B value based on offset ⊕ per instance value) Made for benchmarks, not crypto, it is trivially predictable. ~20GB/s with Go single core. ~60GB/s with amd64 asm.

doom-captcha.vercel.app

My album of 2024: Vows by MATTE BLVCK Simply an all-killer album, that just keeps developing. Styles vary between tracks, but solid all the way the way through, with a modern touch and even some instrumentals. Check it out if you are a bit into dark synth: matteblackus.bandcamp.com/album/vows

Best 5 minute TLDR of CGO in #golang I can think of. Maybe a bit overstated, but an "approach with caution" is probably a good takeaway from a 5 minute video. youtu.be/8mU7KIF6l-k

Teaser for next year :)

How many % speed improvement is worth it for "unsafe" in #golang? Should build tags be opt-in or opt-out?