Go's Error Wrapping: %w, errors.Is and a Tree of Causes
Wrapping is two optional methods, Unwrap and Is; fmt.Errorf with %w builds a *wrapError, errors.Is and errors.As walk the resulting tree, and errors.Join turns it into a branching …
Wrapping is two optional methods, Unwrap and Is; fmt.Errorf with %w builds a *wrapError, errors.Is and errors.As walk the resulting tree, and errors.Join turns it into a branching …
Unlike pprof, the execution tracer records every event: goroutine starts, stops, blocks, syscalls and GC phases are batched per M, deduplicated through lock-free hash tries, and …
Go’s SIMD package exposes portable vector types that the compiler lowers to AVX or NEON instructions, with a source-to-source rewrite pass that specialises code for the vector …
Generic code is shared per shape, the concrete types arrive in a flat dictionary of machine words, and the shape’s layout is what makes the sharing safe.
Green Tea keeps two bitsets per span (marks and scans), queues whole spans on a FIFO queue, and scans an entire span’s marked objects in one pass.