bee icon indicating copy to clipboard operation
bee copied to clipboard

tinygo support

Open v1rtl opened this issue 5 months ago • 0 comments

Summary

Bee should be compilable with tinygo. tinygo produces much smaller binaries than the Go standard compiler, at the cost of making programs single-threaded. This is OK for environments that expect single-thread anyway, such as web and EFI.

Motivation

Smaller binary size for web/wasm.

Implementation

GOOS=js GOARCH=wasm tinygo build -o dist/bee_tiny.wasm ./cmd/bee

Currently blocked by https://github.com/tinygo-org/tinygo/issues/4186, waiting for https://github.com/tinygo-org/net/pull/39 to be merged and released

Drawbacks

Would require compilation separation logic to avoid unsupported stuff to break compilation for tinygo

v1rtl avatar Aug 02 '25 14:08 v1rtl