← Wed, Dec 2 digest

TinyGo 0.45.0

read article ↗ hn thread ↗

TinyGo 0.45.0 is released requiring Go 1.26 and featuring expanded reflect capabilities, Linux process spawning, and initial ESP32-P4 hardware support.

summary is enough Release notes are best skimmed unless you are targeting microcontrollers or WebAssembly and need the specific board or reflection updates.

summary

TinyGo version 0.45.0 brings its largest update yet with over 560 commits, requiring Go 1.26 or newer. Key software upgrades include complete reflect package features like StructOf and Value.Call, POSIX process spawning on Linux, and enhanced escape analysis. Hardware additions introduce initial support for the ESP32-P4, expanded PSRAM compatibility, and several new development boards. Users also highlight its strong utility for compiling Go to WebAssembly and running efficiently on microcontrollers.

key points

  1. Requires Go 1.26 or newer and adds complete reflect package features including StructOf, FuncOf, and Value.Call.
  2. Introduces initial hardware support for the ESP32-P4 chip, expanded PSRAM compatibility, and new board targets like the Arduino Nano R4.
  3. Improves compiler escape analysis, runtime heap management, and adds Linux process spawning via posix_spawn.

who should read it

Go developers working with microcontrollers, embedded devices, or WebAssembly targets.

discussion warm

consensus

Commenters enthusiastically endorse TinyGo for microcontroller projects like the Raspberry Pi Pico and for compiling Go to WebAssembly, noting smaller and often faster binaries than standard Go.

pushback

Some users note significantly slower build times compared to vanilla Go and discuss the challenges of garbage collection on constrained hardware.

best comment by neomantra ↗

I was a drive-by contributor to TinyGo, focused on getting MacOS and JS/WASM working well this summer, along with getting BubbleTea to work with it (the last of which was finally merged yesterday!). It was a lot of work, but now it unlocked so much capability for me.

The TinyGo project is an intensely talented cadre of developers. They care deeply this alternative Go compiler/runtime. It was really neat to see them in action and how an already established project accelerated in a year.

It was interesting to see how they adopted LLMs (basically use them but you better know what's going on) …

A contributor shares practical experience, noting TinyGo yields 50% smaller binaries with lower memory usage at the cost of 5x slower build times.

Generated by an LLM from the article and thread. Check the sources before relying on it.