Hacker News Viewer

Go on Embedded Systems and WebAssembly

by uticus on 4/3/2026, 4:57:09 PM

https://tinygo.org/

Comments

by: nasretdinov

Tinygo made a lot of progress over the years -- e.g. they&#x27;ve recently introduced macOS support!<p>It does indeed produce much smaller binaries, including for macOS.<p><pre><code> yuriy@MacBookAir ~&#x2F;t&#x2F;tinygo&gt; 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 ~&#x2F;t&#x2F;tinygo&gt; 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 ~&#x2F;t&#x2F;tinygo&gt; 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 ~&#x2F;t&#x2F;tinygo&gt; cat main.go package main import &quot;fmt&quot; func main() { fmt.Printf(&quot;Hello world!\n&quot;) }</code></pre>

4/3/2026, 6:21:02 PM


by: tatjam

Writing embedded code with an async-aware programming language is wonderful (see Rust&#x27;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?

4/3/2026, 6:48:05 PM