bee
bee copied to clipboard
tinygo support
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