Repository navigation
Releases
gogo v0.2.0
The first release meant for people other than its author. Website and book: https://gogovm.dev/
Install
curl -fsSL https://raw.githubusercontent.com/c4pt0r/gogo/main/install.sh | sh # gogo and gogovm, macOS and Linux
gogo setup # an M5StickS3 or Cardputer ADV over USBWindows: take gogo-windows-<arch>.exe below. gogo setup now keeps a board's firmware when it already runs this version (-reflash to force).
What is new since v0.1.0
Language. Floats (float32, float64, gogo/math); sized integers (int8 .. uint64); methods, interfaces, error, panic and defer; arrays and struct embedding; pointers; maps (ranged in key order); closures that share the variables they capture; read-only package-level variables; gogo/fmt (output identical to Go's); your own packages and a GOGOPATH; single-file programs and #! scripts; sys.Args.
Distributed actors (gogo/node, book chapter 20). Boards join a server node — a computer running gogovm --host-net — over TCP; Send, Call, Monitor and Link work on remote PIDs, and a lost node reaches watchers as NoConnection. Every frame carries an HMAC; a server serves 512 boards by default (about 930 with raised caps). Links are authenticated but not encrypted yet.
Embedding. libgogo.a with a versioned C ABI (gogo.h), a Go binding (gogotools/embed) and the compiler as a library for Go and C hosts (libgogoc.a).
Tools. gogo push, info, device info|stats|scan|format-flash; gogo config import/export; one flag parser and documented exit codes; the website and the book online (gogovm.dev), editor support for .gg files (VS Code, Vim, Emacs).
Smaller VM. The VM core is 33.9 KB of linked firmware code (now measured as linked, with the firmware's flags) — about 11% smaller than at the start of this release cycle, with distributed actors added. An idle actor still costs about 150 bytes.
Breaking changes
Image format 15.7; older firmware refuses images that need something it lacks (it says what), and images built for 15.0–15.6 keep running.
actor.Callreturns(reply any, err error)—errors.Timeout,errors.NoProcorerrors.NoConnection— instead of(reply, ok bool).actor.Registerreturnserror(Exists,NoProc).actor.SendAfter(to, msg, ms): the delay moved last, as inCall.port.Openreturns(PID, error);gogo/node'sListen,Connect,RegisterandWhereisreturn errors.- One shared error code space (
gogo/errors);fs.Errandcode.Errare aliases oferrors.Code. gogo configrefuses to guess: with no board or several boards connected it fails instead of writing the local file; use-port, or-localfor this computer's store.- Compiled images are
.ggb(were.gmodfor modules).
The full list, with how to migrate, is the "Breaking" section of docs/known-issues.md.
Files
gogo-<os>-<arch> (the command), gogovm-<os>-<arch> (the host VM for macOS and Linux: put it next to gogo, named gogovm), sticks3-* and cardputer-* (firmware; gogo setup picks the right one), and SHA256SUMS.
gogo v0.1.0
Install: download gogo for your system, install esptool, run gogo setup. See docs/book/02-getting-started.md.