Go on Embedded Systems and WebAssembly
uticus
142 points
19 comments
April 03, 2026
Related Discussions
Found 5 related stories in 55.9ms across 3,471 title embeddings via pgvector HNSW
- Show HN: TinyOS – A minimalist RTOS for Cortex-M written in C hpscript · 95 pts · April 03, 2026 · 54% similar
- Espflash – Go CLI/library for flashing ESP8266/ESP32 with no dependencies deadprogram · 20 pts · March 05, 2026 · 54% similar
- Show HN: M68k assembly emulator that runs in the browser aldino97 · 13 pts · March 17, 2026 · 51% similar
- Edge.js: Run Node apps inside a WebAssembly sandbox syrusakbary · 122 pts · March 17, 2026 · 48% similar
- Show HN: Swarm – Program a colony of 200 ants using a custom assembly language armandhammer10 · 20 pts · March 06, 2026 · 46% similar
Discussion Highlights (7 comments)
nasretdinov
Tinygo made a lot of progress over the years -- e.g. they've recently introduced macOS support! It does indeed produce much smaller binaries, including for macOS. yuriy@MacBookAir ~/t/tinygo> time tinygo build -o test-tiny main.go ________________________________________________________ Executed in 1.06 secs fish external usr time 1.18 secs 0.31 millis 1.18 secs sys time 0.18 secs 1.50 millis 0.18 secs yuriy@MacBookAir ~/t/tinygo> time go build -o test-normal main.go ________________________________________________________ Executed in 75.79 millis fish external usr time 64.06 millis 0.41 millis 63.64 millis sys time 96.76 millis 1.75 millis 95.01 millis yuriy@MacBookAir ~/t/tinygo> ll total 5096 -rw-r--r--@ 1 yuriy staff 74B 3 Apr 19:17 main.go -rwxr-xr-x@ 1 yuriy staff 2.3M 3 Apr 19:18 test-normal* -rwxr-xr-x@ 1 yuriy staff 192K 3 Apr 19:18 test-tiny* yuriy@MacBookAir ~/t/tinygo> cat main.go package main import "fmt" func main() { fmt.Printf("Hello world!\n") }
tatjam
Writing embedded code with an async-aware programming language is wonderful (see Rust's embassy), but wonder how competitive this is when you need to push large quantities of data through a micro controller, I presume this is not suitable for real-time stuff?
carverauto
We're using TinyGo and the Wazero runtime for our WASM plugin system in ServiceRadar, highly recommend both if you're using golang.
mi_lk
What are the tradeoffs compared to standard Go?
pancsta
TinyGo doesnt have networking in WASI[0] and the WASM websocket module[1] was last updated 5 years ago. Go without stdlib is not Go. [0] https://github.com/tinygo-org/tinygo/issues/4880 [1] https://github.com/Nerzal/tinywebsocket
jackhalford
Could we compile tailscale with tinygo to run it on openwrt? Last time I checked tailscale was too large for 8MB flash routers
febed
Does it support ESP32