Advertisement · 728 × 90

Posts by Julien

Preview
How do I precompile the Golang standard library? I'm trying to use Go compiler in a sandboxed environment, but compilation is very slow without a shared build cache directory, because the standard libraries referenced are compiled everytime. I wo...

Not sure if this would help but I’ve had issues where go was recompiling the standard library stackoverflow.com/questions/77...

I hope this helps, post an update if it does

4 days ago 0 0 1 0

“Life is too short to be a sysadmin, unless you really like that, or unless it's your job.”

I love that quote and going to frame it 🙇‍♂️

4 weeks ago 1 0 0 0

Who would have thought… lol

love it and 100% agree

1 month ago 1 0 0 0

The AI harness engineering hype is basically just people finding out that with leaner design, good encapsulation, simpler code, improved tools, working CI/CD and precise documentation one can be more effective at writing correct code.

1 month ago 3 3 1 0

We (@chris.blue and I) did an interview for the @antithesis.com Bug Bash podcast. It was an interesting discussion!

2 months ago 31 3 2 0
Preview
RSA test vector crowdsourcing instructions

Do you have an idle cluster? Can you spare a couple core-years?

Help me bruteforce some test vectors for RSA key generation edge cases!

Here are the instructions, it's just a matter of running a single self-contained cross-compilable Go binary that will report the results autonomously.

3 months ago 109 33 14 3
Preview
GitHub - hybridgroup/yzma: yzma lets you use Go for local inference+embedding with Vision Language Models (VLMs) and Large Language Models (LLMs) using llama.cpp without CGo. yzma lets you use Go for local inference+embedding with Vision Language Models (VLMs) and Large Language Models (LLMs) using llama.cpp without CGo. - hybridgroup/yzma

Life's comes at you fast, and so do new releases of yzma!

Use pure Go for hardware accelerated local inference on Vision Language Models & Tiny Language Models.

0.9.0 out now with API improvements, model downloading, & more.

github.com/hybridgroup/...

#golang #llama #vlm #tlm

5 months ago 9 5 0 0
$ go install golang.org/dl/go1.25.0@latest
$ go1.25.0 download
Downloaded   0.0% (       0 / 58130695 bytes) ...
Downloaded  50.0% (29065347 / 58130695 bytes) ...
Downloaded 100.0% (58130695 / 58130695 bytes)
Unpacking go1.25.0.freebsd-arm.tar.gz ...
Success. You may now run 'go1.25.0'
$ go1.25.0 version
go version go1.25.0 freebsd/arm

$ go install golang.org/dl/go1.25.0@latest $ go1.25.0 download Downloaded 0.0% ( 0 / 58130695 bytes) ... Downloaded 50.0% (29065347 / 58130695 bytes) ... Downloaded 100.0% (58130695 / 58130695 bytes) Unpacking go1.25.0.freebsd-arm.tar.gz ... Success. You may now run 'go1.25.0' $ go1.25.0 version go version go1.25.0 freebsd/arm

🎊 Go 1.25.0 is released!

📝 Release notes: https://go.dev/doc/go1.25

⬇️ Download: https://go.dev/dl/#go1.25.0

#golang

8 months ago 190 55 4 11
Go 1.25 Release Notes Go 1.25 Release Notes

Go 1.25 Release Notes [Discussion]

8 months ago 1 1 0 0
Advertisement
Preview
FastCGo: как мы ускорили вызов C-кода в Go в 16,5 раза Всем привет! Меня зовут Владимир Пустовалов, я C++ разработчик в команде Deckhouse компании «Флант». Мои коллеги — DevOps-инженеры — на данный момент обслуживают более 600 кластеров, и,...

FastCGo: How people behind Prom++ made calls from Go into C 16.5 times faster (ru). Great post, full of low-level technical details #golang

(the browser's auto-translation does a decent job of translating the text into English)

habr.com/ru/companies...

9 months ago 2 1 0 0
Post image

Little Bobby Tables had a brother

10 months ago 247 68 3 2

some interesting discussion here around protocol strategy and resistance to centralization

10 months ago 98 25 2 0

I have not paid a ton of attention to the uproar over RTO policies, bc we are all in on distributed teams and not going back.

My impression (via social media) has been that these were shadow layoffs.

Last month I asked an investor why they are doing RTO. He said: "Retention, mostly. And morale."

10 months ago 340 50 22 57

Carmine Cesarano, Martin Monperrus, Roberto Natella
GoLeash: Mitigating Golang Software Supply Chain Attacks with Runtime Policy Enforcement
https://arxiv.org/abs/2505.11016

11 months ago 2 1 0 0

@metalmatze.de hi, we’ve met at kubecon and we talked about a project for benchmark trend visualization. If you found it again, I would love to see it. Thank you so much for the recommendation.

1 year ago 1 0 1 0

this worked for me, btw #golang

`find . -type f -name '*_test.go' -exec sed -i '' 's/ctx := context\.Background()/ctx := t.Context()/g' {} +`

1 year ago 2 1 2 0
Preview
Go 1.24 Release Notes - The Go Programming Language

🧨 Go 1.24.0 is released!

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

⬇️ Download: go.dev/dl/#go1.24.0

#golang

1 year ago 13 3 0 0

With more #golang conferences and meetups joining BlueSky, here is a starter pack with the ones I've seen so far!

Did I miss any? Please ignore the fact that I can't remove myself from my own list!

go.bsky.app/FLz8Wx8

1 year ago 22 6 0 0
Preview
Go Programming Language, The (Addison-Wesley Professional Computing Series) Buy Go Programming Language, The (Addison-Wesley Professional Computing Series) 1 by Donovan, Alan A. A. (ISBN: 9780134190440) from Amazon's Book Store. Everyday low prices and free delivery on eligible orders.

Just finished "The Go Programming Language" by Donovan and Kernighan. Extremely well structured and well written book, as might be expected from these authors. #golang

amzn.eu/d/56ngvEn

Why read a book about a programing language instead of just learning it online? (1 of 4)

1 year ago 13 3 3 0
Advertisement
Preview
proposal: encoding/json/v2: new API for encoding/json · Issue #71497 · golang/go Proposal Details This is a formal proposal for the addition of "encoding/json/v2" and "encoding/json/jsontext" packages that has previously been discussed in #63397. This focuses on just the newly ...

The #golang encoding/json/v2 proposal is live!

Huge props to Joe Tsai for the hundreds of hours he poured into this project.

github.com/golang/go/is...

1 year ago 79 15 1 0
type Cache[K, V any] struct {
	m sync.Map
}

// Get returns the result of new.
//
// If Get was called on k before and didn't return an error, Get will return the
// same value it returned from the previous call.
//
// If Get is called concurrently on the same k value, new might get called
// multiple times. All calls will return the same value or an error from new.
//
// The cache is evicted some time after k becomes unreachable.
func (c *Cache[K, V]) Get(k *K, new func() (*V, error)) (*V, error) {
	p := weak.Make(k)
	if cached, ok := c.m.Load(p); ok {
		return cached.(*V), nil
	}
	v, err := new()
	if err != nil {
		return nil, err
	}
	if cached, loaded := c.m.LoadOrStore(p, v); loaded {
		// We lost the race, return the cached value and discard ours.
		return cached.(*V), nil
	}
	runtime.AddCleanup(k, c.evict, p)
	return v, nil
}

func (c *Cache[K, V]) evict(p weak.Pointer[K]) {
	c.m.Delete(p)
}

type Cache[K, V any] struct { m sync.Map } // Get returns the result of new. // // If Get was called on k before and didn't return an error, Get will return the // same value it returned from the previous call. // // If Get is called concurrently on the same k value, new might get called // multiple times. All calls will return the same value or an error from new. // // The cache is evicted some time after k becomes unreachable. func (c *Cache[K, V]) Get(k *K, new func() (*V, error)) (*V, error) { p := weak.Make(k) if cached, ok := c.m.Load(p); ok { return cached.(*V), nil } v, err := new() if err != nil { return nil, err } if cached, loaded := c.m.LoadOrStore(p, v); loaded { // We lost the race, return the cached value and discard ours. return cached.(*V), nil } runtime.AddCleanup(k, c.evict, p) return v, nil } func (c *Cache[K, V]) evict(p weak.Pointer[K]) { c.m.Delete(p) }

weak.Pointer (Go 1.24+), runtime.AddCleanup (Go 1.24+), and sync.Map combine wonderfully into a 20-lines weak map. #golang

It associates values to keys, with automatic garbage collection once the key becomes unreachable. Using it to tie precomputed FIPS keys to PrivateKey values we can't modify.

1 year ago 173 15 9 0

Pro tip ⚠️

Search in all repos for these comments:
- This must not happen
- This should not happen
- Why is this happening
- but why
- Forgive me
- I know I know
- Ok so
- I cannot believe
- This is ridiculous
- I give up
- Abandon all hope

You're welcome

1 year ago 1 0 0 0
Post image

DWARF5 #golang

go-review.googlesource.com/c/go/+/635836 + github.com/golang/go/is...

1 year ago 4 1 0 0
Bluesky Network Analyzer Find accounts that you don't follow (yet) but are followed by lots of accounts that you do follow.

Your periodic reminder about the Bluesky network analyzer, a surprisingly useful tool for finding people you know who you probably intended to be following if you knew they were here. It's eerily good, especially if you use "favour niche accounts" mode.

bsky-follow-finder.theo.io

1 year ago 112 38 9 2

I don’t know who needs to hear it but

defaults write com.google.Chrome URLBlocklist -array-add example.com

works system-wide without giving access to all your browsing to some extension.

1 year ago 113 15 3 0

How am I only learning now about Context.AfterFunc!!

pkg.go.dev/context#Afte... #golang

1 year ago 63 5 7 0
Advertisement

Did you know you that you can run Go 1.24rc1 (or any other version) by just setting an environment variable?

$ GOTOOLCHAIN=go1.24rc1 go version
go: downloading go1.24rc1 (darwin/arm64)
go version go1.24rc1 darwin/arm64

This is supported since Go 1.21 (August 2023).

go.dev/doc/toolchain

1 year ago 118 28 6 2
Shouting in the Datacenter
Shouting in the Datacenter YouTube video by Bryan Cantrill

Old but gold.

Don't shout at your JBOD (just a bunch of disks).

www.youtube.com/watch?v=tDac...

1 year ago 1 0 0 0
Preview
frood, an Alpine initramfs NAS My NAS is just one big initramfs containing a whole Alpine Linux system. It’s delightful. Here's why and how.

I wrote up how my NAS is now just a big initramfs based on Alpine Linux. words.filippo.io/frood/

It's been pretty great. Immutable, declarative, and very very simple. Just some files, a list of packages, and a short script.

1 year ago 50 12 5 1

The doc is in `go help mod edit`. How did I get there...? it's a long story.

1 year ago 1 0 0 0