Secure Randomness in Go 1.22

ChaCha8Rand is a new cryptographically secure pseudorandom number generator used in Go 1.22.

Evolving the Go Standard Library with math/rand/v2

Go 1.22 adds math/rand/v2 and charts a course for the evolution of the Go standard library.

Going supersonic

#​505 — April 30, 2024 Unsub  |  Web Version ✍️ It's been a quiet week for big Go related news, but we still have a bumper issue because we have so many things we didn't get around to including earlier ;-) Here we go..!__Your editor, Peter Cooper...

Ep. 3: Ensuring Data Integrity in Rust: Battling Overflow and Underflow

Introduction: Delving into the critical issues of overflow and underflow, Herbert’s insights offer valuable takeaways for Rust developers: Rust’s static analysis capabilities enable early detection and prevention of overflow and underflow errors, allowing developers t...

Tokens for LLMs: Byte Pair Encoding in Go

A basic unit of currency in modern LLMs is the token; exciting new models have long context windows of millions of tokens. API pricing for the large providers is per-token. We're even seeing the invention of new, derived units like TPM (tokens per minute). But what are tokens? Th...

Bringing PGO to the build pipeline

#​504 — April 23, 2024 Unsub  |  Web Version Go Weekly How Dolt Uses GitHub Actions to Create Performance-Guided Optimization Builds — A look behind the scenes at Dolt's build process and how their team has introduced profile-guided op...

Ep. 2: Mastering Memory Safety: Rust's Defense Against Use After Free & Use After Move

Introduction: Exploring the critical issues of “use after free” and “use after move,” Herbert’s insights offer a valuable understanding to Rust developers: Rust’s ownership system acts as a powerful safeguard against memory safety issues like &ldqu...

What’s New in Go 1.22: cmp.Or

Go 1.22 has been released for a couple of months as of this writing. It’s long past time to wrap up my series on what I worked on for 1.22. Sorry for the long delay, I’ve been busy with life stuff. Be sure to catch up on my posts about reflect.TypeFor and slices.Concat if you...

Method of differences and Newton polynomials

I was reading about Babbage's Difference engine the other day, and stumbled upon a very interesting application of the forward differences method. It turns out that if we get a sequence generated by a polynomial, under certain conditions we can find the generating polynomial from...

The latest Go developer survey results are in

#​503 — April 16, 2024 Unsub  |  Web Version If you wondered why you didn't get an issue last week, we took a (late) week off for Easter, but now we're back :-)__Your editor, Peter Cooper Go Weekly Go Performance from Version 1.0 t...