TinyGo 0.45.0 Brings Fuller reflect Support, Faster Compiles and New ESP32-P4 B…

TinyGo 0.45.0 is the project's largest release yet, with more than 560 commits since 0.44.0 and a new minimum requirement of Go 1.26.

TinyGo 0.45.0 Brings Fuller reflect Support, Faster Compiles and New ESP32-P4 B…
Source: GitHub

The headline change is that TinyGo now requires Go 1.26 or newer. The reflect package is much more complete in this version: developers can build new types at run time using functions such as StructOf, FuncOf and MapOf, call functions and methods through Value.Call and MakeFunc, and work with channels. On Linux, the os package now starts processes with posix_spawn, which adds support for Process.Wait, Kill and Signal.

The compiler builds faster in this release, and improved escape analysis keeps more values on the stack. The runtime gains a Pinner, stores timers in a min-heap and grows the heap more intelligently. Hardware support also expands. There is initial support for the new ESP32-P4, the cores scheduler now runs on the original ESP32, and PSRAM works on several ESP32 variants. The release adds a machine/watchdog package, capacitive touch on ESP32 and ESP32-S3, and WiFi, PWM, SPI and flash support on ESP32-C6, along with many I2C fixes for AVR and the ESP32 family.

New boards supported in this release include the Waveshare ESP32-P4-NANO, the Elecrow CrowPanel ESP32-P4, the Adafruit ESP32-S3 Feather TFT and the Arduino Nano R4. The full changelog lists many smaller fixes across the compiler, runtime and tooling.

Source: GitHub


Posted

in

by

Tags: