Go
Writing WebAssembly Programs in Go
· ☕ 6 min read
1. Introduction to WebAssembly Cross-platform: it can run on any platform that supports WebAssembly, including web browsers, servers, and mobile devices High performance: it uses a compact binary format that can be loaded and parsed quickly in the browser, improving application performance Security: it uses a sandbox model that isolates the code running inside it, protecting the system from malicious code

Developing an Istio WasmPlugin with TinyGo
· ☕ 3 min read
wasme only supports up to Istio 1.9, while I am using Istio 1.14, so this post goes straight to tinygo for verification and learning. 1. Installing tinygo Requirements Go v1.18+ Install tinygo 1 2 brew tap tinygo-org/tools brew install tinygo Check the version 1 2 3 tinygo version tinygo version 0.

Time and Time Zones in Go
· ☕ 7 min read
1. Time and Time Zones 1.1 Time Standards UTC, Coordinated Universal Time, is the current time standard, counted by atomic time. GMT, Greenwich Mean Time, is the older time standard, which defines the moment the sun passes over the Royal Observatory in Greenwich, on the outskirts of London, as 12 noon.

Building and Using Go Private Packages
· ☕ 3 min read
1. Create a Go Modules Project Create the directory 1 2 mkdir go-test cd go-test Initialize the package 1 2 3 4 5 go mod init gitlab.private.com/shaowenchen/go-test go: creating new go.mod: module gitlab.private.com/shaowenchen/go-test go: to add module requirements and sums: go mod tidy Add the business code main.go 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 package main import ( "github.

A Practical Algorithm: Bloom Filter
· ☕ 6 min read
1. What Is Bloom Filter A Bloom Filter is a data structure proposed by Bloom in 1970. It maps elements (x, y, z) through a series of functions into a binary vector (a 0101 sequence), and is used to quickly determine whether an element w is in a set. As shown below (from Wikipedia):