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

doc: updates the latest Go toolchain dev on why TinyGo #446

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading