Michael Pratt

@prattmic.com

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

🪫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%

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

Bild

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 · last mo.

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

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.

Benchmark 1: go build -a ./cmd/tsgo
  Time (mean ± σ):     48.992 s ±  0.274 s    [User: 345.152 s, System: 12.545 s]
  Range (min … max):   48.702 s … 49.478 s    10 runs
 
Benchmark 2: ~/work/go/bin/go build -a ./cmd/tsgo
  Time (mean ± σ):     28.323 s ±  0.133 s    [User: 141.277 s, System: 4.853 s]
  Range (min … max):   28.075 s … 28.555 s    10 runs
 
Summary
  ~/work/go/bin/go build -a ./cmd/tsgo ran
    1.73 ± 0.01 times faster than go build -a ./cmd/tsgo

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.