Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
doc: updates the latest Go toolchain dev on why TinyGo (#446)
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored Jun 1, 2024
1 parent 9456a1b commit 4452a62
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions doc/OVERVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ This document explains the things you should know when writing programs with thi

# TinyGo vs the official Go compiler

This SDK relies on the TinyGo, a compiler implementation of Go programming language specification. So first of all, we answer the question "Why not the official Go?".

There are several reasons why we cannot use the official Go compiler. Tl;dr is that as of this writing, the official compiler cannot produce Wasm binary which can run outside web browsers, and therefore cannot produce Proxy-Wasm compatible binaries.

For those who are insterested in the detail, please refer to the related issues in the Go repository:
- https://github.com/golang/go/issues/25612
- https://github.com/golang/go/issues/31105
- https://github.com/golang/go/issues/38248
This SDK relies on the TinyGo, a compiler implementation of Go programming language specification.
So first of all, we answer the question "Why not the official Go?".
As of this writing, the official compiler cannot produce Proxy-Wasm compatible binaries since the exported functions are not supported in the official Go compiler yet.
Please refer to the [discussion](https://github.com/golang/go/issues/65199), which has already been accepted as a proposal.

# Wasm VM, Plugin and Envoy configuration

Expand Down

0 comments on commit 4452a62

Please sign in to comment.