Michael Pratt

Michael Pratt

@prattmic.com

Hacking on the Go runtime and gVisor. 🏳️‍🌈

1.5K followers214 following249 posts

Michael Pratt reposted

Hacking the Go compiler to efficiently map IPv4 to IPv6: vincent.bernat.ch/en/blog/2026.... This post digs in how to modify the Go compiler to reduce netip.AddrFrom16()+netip.As16() to almost nothing, first through the noding process, then with rewrite rules for the SSA form.

vincent.bernat.chHacking the Go compiler to efficiently map IPv4 to IPv6Go maintainers declined netip.Addr.Map() saying the compiler should optimize netip.AddrFrom16(ip.As16()) instead. How difficult is it to implement?

Michael Pratt reposted

I’m very, very happy to share that I have just joined the core Go team at Google to work on the Go runtime and compiler! I’ve been pitching in as an external contributor since 2018, but now my very enjoyable hobby is becoming my day job 😅 (Also, my name is PJ 👋)

Michael Pratt reposted

No more creating non-nil empty lists for JSON. 🥳

Go@golang.org

“Go 1.27 is released” by Nicholas Husin, on behalf of the Go team — https://go.dev/blog/go1.27 #golang

Generic methods! encoding/json/v2! goroutine leak profiles! Dare I say this is the best Go release yet?

Go@golang.org

🎊 Go 1.27.0 is released! 🗒️ Release notes: https://go.dev/doc/go1.27 📦 Download: https://go.dev/dl/#go1.27.0 #golang

Michael Pratt reposted

🪫Anyone else finding that their #iPhone is draining battery a lot faster than usual? Mine has been going into adaptive power mode every day for at least the last week or so and barely makes it through the day without a recharge, even though battery health is reported as 100%

Michael Pratt reposted

What does it take to build a language that lasts? ∞ Join Austin for the Opening Keynote as they explore how Go is evolving for the decades ahead while staying true to what made it successful. See how language evolution, AI, and an open governance model are shaping Go's future. 🛸 🎟️ gophercon.com

Michael Pratt reposted

excited to talk about the (mostly) boring vulns we have, with a slight digression about how LLMs have completely turned the way vulns are found upside down 🙃

GopherCon@gophercon.com

If Go is memory-safe, where do its vulnerabilities come from? 🔒 Go Security Team Lead @roland.zone shares how the Go team identifies, responds to, and learns from vulnerabilities across the Go ecosystem. Discover what those lessons mean for building more secure Go software. 🎟️ gophercon.com

Michael Pratt reposted

TypeScript is now officially written in Go.

TypeScript@typescriptlang.org

In case you missed it, TypeScript 7 is a complete 10x faster version of the compiler & language server. It's a full port to parallelized native code. It runs faster, uses less memory, and is more stable than ever before.

Michael Pratt reposted

This is a fun one: I just sent go.dev/cl/790740, which elides method wrappers for embedded types at offset zero, common for mixins/inherited data types. Doing this removes 60 _thousand_ method wrappers from tsgo's AST package, dropping the compilation of our main exe from 49s to 28s on my machine.

New rule dropped: anything above 11239 isn't the real Brooklyn.

Michael Pratt@prattmic.com

Heads up, the page source on this form has a hard-coded list of "valid" Brooklyn zip codes: 11201-11239. Unfortunately there are more zip codes in Brooklyn (including mine), so it was impossible to enter with my address.

Michael Pratt reposted

PSA: Green Tea GC in go1.26 is incredible 🚀 This is what we saw for two big Go services. We'll try to gather more data and share it soon.

Michael Pratt reposted

Michael Pratt reposted

Replying to @prattmic.com

Here's an example. Average rent in LA for a 1 BR is $2500. A woman that lives in LA and earns an hourly wage, knows that if she can't work for a month, she needs to come up with $2500 or she will be homeless. After bills, she has only $200 left over. She saves almost all of it, and doesn't eat out.