This is our biggest publish so far, alongside additional than 560 commits to our chief repo since 0.44.0. Important: TinyGo now requires Go 1.26 or newer. The indicate bundle gets much additional complete: you can now build new types at run period alongside StructOf, FuncOf, MapOf and akin functions, call functions and methods alongside Value.Call and MakeFunc, and use channels. On Linux, os now starts processes alongside posix_spawn, which brings Process.Wait, Kill and Signal. The compiler builds faster, and improved escape inspection keeps additional values on the stack. The runtime adds Pinner, keeps timers in a min-heap, and grows the heap additional smartly. On the hardware side, there is first assistance for the new ESP32-P4. The cores scheduler now runs on the first ESP32, and PSRAM plant on ESP32 WROVER, ESP32-S3 Octal and Pimoroni Pico Plus 2. There is a new machine/watchdog package, capacitive contact on ESP32 and ESP32-S3, WiFi affirmative PWM, SPI and flash on ESP32-C6, and many I2C fixes for AVR and the ESP32 family. New boards contain the Waveshare ESP32-P4-NANO, Elecrow CrowPanel ESP32-P4, Adafruit ESP32-S3 Feather TFT and Arduino Nano R4.
- general
- all: necessitate Go 1.26 or newer (#6133, #6139)
- main: add -print-bounds emblem (#6445)
- main: use the -o expansion for the format of tinygo test -c (#6688)
- main: get the ESP flash offset from espflasher, and update espflasher to v0.10.0 (#6394, #6473, #6549)
- main: open the detect at 9600 baud for ATmega targets (#6722)
- main: do not figure a serial harbor twice whenever it matches additional than one ID (#6127)
- main: create libc headers before loading packages in tinygo fix (#6573)
- main: refuse invalid packages equal whenever no tests be (#6046)
- compileopts, builder: add -libc=glibc for linking scheme shared libraries (#5838)
- compileopts: add an arch mark asset for -march (#6436)
- compileopts: refuse .bin output for RP2040 and RP2350 (#6077)
- compileopts: onward -stack-size to wasm-ld whenever -scheduler=none (#6103)
- compileopts: let linux/386 binaries run under qemu-i386 (#6218)
- compileopts, loader: keep trimmed binaries reproducible (#6155, #6162)
- builder: authorize -buildmode=wasi-legacy alongside any scheduler (#5994)
- builder: skip DWARF generation in the compiler alongside -no-debug (#6405)
- builder: build the embedded assembler alongside LLVM 23, and assistance LLVM 20 through 23 in the embedded Clang shims (#6086, #6327)
- builder, cgo: discover the versioned Arch Linux LLVM packages (#6343)
- builder: keep concurrent builds inside their shared limit, and publish permits of jobs drained following a nonaccomplishment (#6156, #6149)
- builder: keep inner functions alongside conflicting names (#6333)
- loader: decrease typechecking period for autonomous packages (#6110)
- loader: use upstream internal/poll on hosted targets (#6318)
- loader: maintain bundle diagnostics through error handling (#6109)
- loader: catalog lone the PackageJSON sectors (#6385)
- loader: band the test suffix from mapped import paths (#6640)
- goenv: detect the TinyGo base alongside runtime.go (#6603)
- lib: upgrade wasi-libc (#5507)
- tools: add wasmprof to change wasmtime visitant profiles to pprof (#6513)
- tools: add update-binary-sizes and plot-binary-size (#6266, #6766)
- tools/gen-device-svd: create equipment records faster, fix bitfield ranges and collection sizes, and fix a copy ESP32-P4 enroll (#6183, #5821, #5811, #6360)
- release: forestall a nested src directory in publish archives (#6062)
- go.mod: update go-llvm and x/tools (#6165, #6225, #6228)
- compiler
- compiler: execute syscall.Syscall* on darwin (#6557)
- compiler: come back ^uintptr(0) in r1 on Linux syscall error, and lesser unix.RawSyscallNoError as a no-error syscall (#6682, #6684)
- compiler: keep example pointers on linux amd64 and arm64 (#6088)
- compiler: provision wasm modules the identical triple as collision (#6309)
- compiler: evade mixing LLVM contexts in WebAssembly exports (#6352)
- compiler: fix two Asyncify panic/recover bugs (#6332)
- compiler: fix the drift to int saturation border (#6558)
- compiler: refuse nil assertions to bare interfaces (#6147)
- compiler: name promoted unexported methods by their bundle (#5901)
- compiler: don't measure the operand of unsafe.Sizeof and Alignof (#6382)
- compiler: study a redeclared function alternatively of panicking (#6089)
- compiler: emit volatile accesses at the call location (#6599)
- compiler: evade ample total values in zero stores and debug info (#6176)
- compiler: lesser s == "" to a dimension check, and slice-zeroing loops to memset (#6415, #6511)
- compiler: skip zeroing new retention for zero constants, and a redundant limits inspect in create (#6179, #6449)
- compiler: inform LLVM the range of piece and cord lengths, and that len <= cap whenever reslicing (#6167, #6351)
- compiler: grade impermanent map retention as non-capturing (#6235)
- compiler: compile faster by creating average types, constants and attributes formerly and by avoiding copies (#6240, #6245, #6247, #6220, #6261, #6456, #6274, #6243)
- compiler: inner cleanups and newer go-llvm APIs (#6203, #6208, #6209, #6212, #6213, #6219, #6221, #6251, #6264, #6330, #6353, #6354, #6355, #6356, #6373, #6375, #6376, #6412, #6451, #6459, #6516, #6563)
- cgo: obtain gathering parameters alongside no size (#6275)
- transform: prosecute merged pointers in escape analysis, keep nonescaping recursive arguments on the stack, and stack allocate values that callees lone inspect for nil (#6236, #6079, #6390, #6151, #6377)
- transform: evade copying []byte to cord for read-only uses (#6152)
- transform: toggle on a category ID in interface method calls and category asserts (#6545)
- transform: do not add unboxed types to interface method dispatch (#6169)
- transform: reconstruct the linkage of functions kept for TinyGo passes (#6380)
- transform: eliminate the typed pointer bitcast case from OptimizeAllocs, and centralize recollection trait lookup (#6248, #6379, #6099, #6625)
- interp: assistance nuclear operations in earth initializers (#5993)
- interp: skip llvm.assume (#6319)
- interp: maintain shop command for exposed objects (#5908)
- interp: halt old compile period says following a run period call (#6204)
- interp: keep the alignment of loads and stores that run at runtime (#6242)
- interp: rotate rear calls that intermission alongside the scheduler fastener held (#6421)
- interp: halt panicking on entire figure changeless expressions of addresses (#6043, #6044)
- interp: evade runtime init for non-panicking regain calls (#6138)
- interp: name the function of a rollback from its education (#6014)
- interp: use small period and recollection per call (#6136, #6137, #6143, #6386)
- core
- reflect: execute SliceOf, MapOf, ArrayOf, ChanOf, StructOf and FuncOf (#6081, #6439)
- reflect: execute Value.Call, CallSlice, MakeFunc, method lookup and callable methods (#6255, #6257, #6444, #6458)
- reflect: execute conduit operations (#6348, #6440)
- reflect: assistance composite and interface conversions (#6180)
- reflect: execute SliceAt and Value.InterfaceData (#6181, #6234)
- reflect: acknowledge iterator function signatures in CanSeq, and iterate complete function values alongside Seq and Seq2 (#6254, #6444)
- reflect: assistance deeply nested pointer types, and use the shared category cache for pointer types (#6250, #6366, #6367)
- reflect: evade allocations in DeepEqual (#6079)
- reflect: disclose function signature information, and allow additional indicate tests (#6217, #6249, #6639)
- reflectlite: study pointer-to-pointer types as comparable (#6388, #6359, #6512)
- os: commencement processes alongside posix_spawn on linux, and execute Process.Wait, Kill, Signal, ProcAttr.Dir and ProcAttr.Files there (#6301, #6306, #6341, #6323, #6320, #6342, #6346)
- os: execute Hostname and Chtimes on linux, document seeking on 32-bit linux, and continue O_CLOEXEC whenever beginning records (#6091, #6289, #6067, #6288)
- os: create Glob, ReadDir and File.Chdir activity on Windows (#6073, #6659)
- os: assistance RemoveAll on WASI, and provision a null equipment on non-hosted targets (#6662, #6080)
- syscall: acknowledge missing records on Windows (#6065)
- syscall: refuse bare paths in libc Open (#6641)
- syscall: fix WASIp1 and WASIp2 operating directories (#5874)
- crypto/rand: use getrandom on Linux, and exclude stm32g0, which has no RNG controller (#6308, #6443)
- sync: autumn pooled items following two collections (#6093)
- testing: imprint go test compatible benchmark output, and add B.Elapsed (#6381, #6532, #6600, #6717)
- testing: assistance the -test.timeout emblem and impermanent relic directories (#6653, #6642)
- testing: study synctest results through the genitor test (#6654)
- internal/bytealg: figure bytes a term at a period (#6661)
- internal/poll: delay on wasip1 without a scheduler (#6670)
- machine, os, runtime: use internal/byteorder for byte command conversions (#6311, #6313)
- runtime
- implement Pinner (#6636)
- fully execute GOROOT and GODEBUG (#5885)
- grow slices as Go does on hosted targets (#6123)
- grow the heap whenever small than fractional is free, and commencement native heaps at 1 MB (#6606)
- stop the GC freeing objects held lone in registers (#5822)
- work on GC obstacle states a province byte at a time, and put a divided liberated range rear without strolling the catalog (#6687, #6738)
- correct Boehm heap data (#6423)
- keep timers in a binary min-heap and reuse timer nodes (#6035, #6269, #6092, #6282, #6389)
- fix periodic timer overflow, timer conduit synchronization and unread conduit timers (#6256)
- don't study an already-stopped firing timer as energetic (#6374)
- allow improvement from closed conduit sends (#6216)
- hash NaN map keys randomly, use the Go panic communication for unhashable map keys, and mix the hash kernel alongside XOR (#6339, #6338, #6340, #6104, #6271)
- do not nexus indicate category methods to difference interfaces (#6262)
- use Speck CTR for hardwareRand on linux and darwin, and kernel the random province without allocating (#6588, #6310)
- use monotonic clocks for wasm period (#6345)
- return from _start on wasip1 whenever chief returns (#6513)
- make a finalizer panic fatal alongside scheduler=none (#5987)
- fix sleepTicks alongside the threads scheduler (#5929)
- allow compile-time synctest checks on naked metal element (#5974)
- support 64-bit atomics on 32-bit MIPS, and nuclear sub on MCUs without native atomics (#6369, #6331)
- add crypto/subtle DIT stubs (#6658)
- fix an overflow in UEFI ticksToNanoseconds (#6153)
- read console input on cortex-m-qemu and riscv-qemu (#6671)
- cores: disguise interrupts during holding schedulerLock on esp32s3, rp2 and riscv-qemu (#6112, #6069)
- cores: fix a timer queue growth deadlock and scan the live goroutine stack during GC (#6211)
- cores: keep one saved interrupt province in schedulerSpinLock, and keep a GC intermission that arrives during riscv-qemu center startup (#6272, #6239)
- cores: portion the wait, wake, sleep, spinlock and GC code between targets (#6510, #6521, #6530, #6535, #6537, #6552, #6559, #6560, #6581, #6585, #6590)
- internal/task: fix a collision whenever a timer fires into a contended conduit alongside -scheduler=cores (#6060)
- internal/task: reuse goroutine stacks alongside the leaking GC (#5981)
- internal/task: fix the project toggle on RV64, and align the stack whenever exiting a goroutine on x86 (#6344, #6422)
- internal/task: discover asyncify stacks through the GC, and halt conduit disagreement from stalling multicore GC (#6041)
- esp32xx: fix old timer reads, and set the TIMG update bit (#6395, #6702)
- esp32xx: portion exit and abort, and create numCPU the part center figure (#6407, #6610)
- esp32c3: unlock the timer watchdog archetypal (#6485)
- esp32s3: synchronize serial flushing alongside imprint output (#6244)
- fe310, k210: fix a misplaced timer wakeup in sleepTicks (#6542, #6620)
- rp2: evade heap allocation in resetSpinLocks (#6548)
- avr: scan byte-swapped words to discover saved registers, and come back from the GC stack scanner (#6358, #6216)
- atmega32u4: reset USB before enabling interrupts (#6714)
- interrupt: add a recollection clobber on xtensa and avr, fix a misplaced INTENABLE update on xtensa, and refuse out of range interrupts on esp32c3 (#6569, #6571, #6591, #6321)
- drop go:inline from chilly code, and tidy up runtime, interrupt and console records (#6135, #6408, #6411, #6518, #6534, #6539, #6544, #6550, #6567, #6570, #6582, #6584, #6592, #6593, #6594, #6596, #6597, #6601, #6604, #6605, #6608, #6614, #6616, #6622, #6628, #6629, #6630, #6657, #6774, #6615)
- machine
- add the machine/watchdog package, alongside watchdog assistance for esp32, esp32c3, esp32c6 and esp32s3 (#6710, #6742, #6741, #6304, #6680)
- add CPUReset for esp32xx and ResetReason, and use the watchdog for CPUReset on rp2 (#6678, #6679)
- add machine/touch capacitive contact sensor assistance for esp32 and esp32s3 (#6281, #6668)
- gate uart.go, spi.go, i2c.go, i2s.go and flash.go on device mark tags (#6406, #6434, #6442, #6465, #6743, #6759, #6761, #6775, #6779)
- esp32p4: add first ESP32-P4 support, alongside USB serial, PSRAM, GDMA, clock control, I2C, SPI, FPU and the cores scheduler (#6314, #6396, #6447, #6468, #6432, #6474, #6497)
- esp32p4: run the CPU at 360 MHz, and fix period operating at fractional speed (#6579, #6577)
- esp32: add PSRAM assistance for WROVER modules (#6188)
- esp32: add assistance for the cores scheduler (#6506)
- esp32: add GetRNG (#6430)
- esp32s3: add Octal PSRAM support, and portion PSRAM assistance between drivers (#6431, #6472)
- esp32s3: add CPUFrequency for all ESP32-S3 boards (#6263)
- esp32s3: fastener endpoint registers on USB reset, and do not rearm EP0 OUT during it is enabled (#6119, #6120)
- esp32c6: assistance the espradio WiFi controller (#6404)
- esp32c6: add PWM, SPI, machine.Flash and the true random figure generator (#6633, #6660, #6677, #6464)
- esp32xx: fix I2C bus recovery, zero-length writes, NACK finding and bus timing, and execute I2C SetBaudRate (#6315, #6482, #6484, #6479, #6736)
- esp32xx: fix the UART baud charge overflow and the ESP32-C6 UART clock, and refuse additional than 8 data bits (#6475, #6490)
- esp32xx: nexus in lone the UARTs that a program uses, and obtain UART0 default pins from the commission (#6526, #6417)
- esp32xx: add a CS setup period in SPI modes 1 and 3 (#6492)
- esp32xx: create the USB serial ReadByte neglect whenever bare (#6491)
- esp32xx: do not output in UART writes from an interrupt (#6116)
- esp32xx: portion UART, SPI, I2C, ADC and USB Serial/JTAG code between chips (#6425, #6429, #6446, #6448, #6462, #6480, #6483, #6486, #6487, #6493, #6494, #6503, #6504, #6562, #6760, #6337)
- rp2: add BOOTSEL clasp assistance for RP2040 and RP2350 (#5865)
- rp2: create UART SetFormat, SetBaudRate and Configure obey their arguments (#6527)
- rp2: speed up the SPI obtain loops, and shrink the I2C transfer loops (#6732, #6735)
- rp2: evade heap allocations during clock initialization (#6635)
- rp2040: authorize duty updates at PWM cover boundaries, and fix a suspend whenever USBDev.Detach is called (#6031, #6085)
- rp2350: add Pico Plus 2 PSRAM assistance (#6481)
- ra4m1: add a USB CDC controller (#6265, #6305)
- avr: fix I2C NACK detection, halt condition, final byte NACK, location probe, prescaler and pull-ups (#6707, #6709, #6764, #6729, #6683, #6765)
- avr: add I2C0 and create SPI0 activity on the ATmega1280, 2560 and 1284P (#6755, #6776)
- avr: set CPOL alternatively of CPHA for SPI Mode2, and create UART.Write 64 bytes smaller (#6740, #6704)
- stm32: maintain neighboring STM32F103 pin modes, and fix the STM32F1 ADC example period (#6053, #6118, #6115)
- mk66f18: fix UART clocks, interrupt allocation and writes, and the harbor E pin lookup (#6026, #6027, #6029, #6117)
- nrf: authorize nRF UARTs anywhere Serialer is required (#6068)
- usb/msc: ack OUT transfers during holding the fastener (#6325)
- use unsafe.Add for enroll pointer arithmetic (#6547, #6466)
- targets
- add Elecrow CrowPanel ESP32-P4 10.1 and Waveshare ESP32-P4-NANO (#6501, #6500)
- add Adafruit ESP32-S3 Feather TFT (#5857, #6598)
- add ESP32-S3-N16R8 devkit (#6472)
- add Waveshare ESP32-C6-LCD-1.47 (#6633)
- add Arduino Nano R4 (#6265)
- add stm32 vendor and family basis targets, and grade additional basis targets inheritable-only (#6398, #6634, #6647, #6656, #6734, #6737)
- add a tinygo.wasi build tag, and autumn build constraint conditions that are already implied (#6335, #6334, #6307)
- esp: put COMMON symbols in .bss, and run .text.iram.* sections from IRAM (#6302, #6461)
- esp32c6, esp32h2: put code and read-only data in one flash opening (#6498)
- esp32h2: halt the heap below ROM data (#6505)
- m5stamp-c3: add I2C, SPI and ADC pins (#6426)
- adafruit-esp32-feather-v2: fix the I2C pin names (#6623)
- pico-w, pico2-w: fix build tags (#6478)
- remove unused build tags (#6433, #6435)
- build/test
- make: test all Go bundle by default, oversee norm archive test skips in Go, and allow many additional norm archive tests (#6131, #6517, #6507, #6589, #6655, #6364, #6187, #6050, #6349, #6074, #6163)
- make: add a deadcode target, and inspect the NodeJS type on macOS (#6209, #6195)
- ci: shard the norm archive tests on Linux and Windows, and run cross-arch TestBuild in parallel (#6533, #6632, #6648)
- ci: run small macOS, Windows and Linux arm jobs on drag requests (#6553, #6555, #6556, #6470)
- ci: speed up checks, submodule checkouts, equipment document generation and caches (#6130, #6132, #6182, #6184, #6185, #6193, #6194, #6196, #6205, #6206, #6578, #6673, #6733)
- ci: create Windows CI faster and additional dependable (#6370, #6223, #6674)
- ci: neglect whenever regenerating aureate IR records would alter them, and skip the deadcode inspect following an before nonaccomplishment (#6202, #6224)
- ci: refuse commits co-authored by coding tools (#6260)
- ci: keep minimum-version jobs aligned alongside go.mod, run the nix test on ubuntu-24.04, and eliminate default LLVM steps from the homebrew-install job (#6087, #6126, #6078)
- ci: enhance binary size reports and tests (#6048, #6059, #6134, #6145, #6150, #6259, #6300, #6328, #6646, #6652, #6685, #6693, #6696)
- build: provision the fixed wasm-opt threads an 8MB stack (#6748)
- tests: divided main_test.go and run tests faster (#6061, #6066, #6107, #6113, #6128, #6157, #6159, #6186)
- tests: add scheduler, syscall and regression tests, and fix data races and go1.28 output (#5897, #6144, #6201, #6227, #6295, #6523, #6536, #6611, #6643, #6675, #6744, #6750, #6233, #6365)
- examples: add i2c-scan and a serial enroll REPL (#6428, #6708)