We

WebAssembly System Interface (WASI) with Sockets for Go

Hacker News

WebAssembly System Interface (WASI) with Sockets for Go

Go v1.21, scheduled for release in August 2023, adds experimental support for the WebAssembly System Interface (WASI). It'll be possible to natively compile server-side WebAssembly applications with Go, making Go a first-class citizen along with C/C++, Rust and Zig. GOOS=wasip1 GOARCH=wasm go build ... WASI is still in preview and is missing some key features, e.g. the ability to create sockets. Some WebAssembly runtimes have taken the initiative to extend the WASI preview, enabling a wider range of applications to run as WebAssembly modules. Today, we're open sourcing our WASI library and sockets extension for the Wazero WebAssembly runtime ( https://wazero.io ). https://github.com/stealthrocket/wasi-go The WASI library includes a wasirun command that can be used to run server-side WebAssembly applications compiled with Go: ~ $ cat << EOF > hello.go package main import "fmt" func main() { fmt.Println("Hello, World!") } EOF ~ $ GOOS=wasip1 GOARCH=wasm gotip build -o hello.wasm hello.go ~ $ wasirun hello.wasm Hello, World! Non-blocking I/O and basic networking is also supported when compiling apps from Go, e.g. see https://gist.github.com/chriso/6c71e968ef1002981a6ff46ceaa39... . Until Go v1.21 is released in August, you can use gotip ( https://pkg.go.dev/golang.org/dl/gotip ) to try GOOS=wasip1 features. The provided sockets extension is compatible with the WasmEdge ( https://wasmedge.org ) runtime, allowing wasirun to run more complicated server-side applications compiled from C/C++/Rust/Zig for WasmEdge. We have many exciting use cases for WebAssembly and WASI planned and can't wait to share them with you.

Share card

Actual performance

9points
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: compatible · Missing: supports, reddit linkedin, podcasting
82%82% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: apps, open · Missing: mac, agents, macos
81%81% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
68%68% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
45%45% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps · Missing: mobile apps, ios, personal
40%40% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Pe
Perl interface to Osram Lightify lighting system43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Perl interface to Osram Lightify lighting system

Hacker News3
A
A gopher interface to IPFS59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A gopher interface to IPFS

Hacker News1
A
A WebAssembly System Interface Implementation for Deno57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A WebAssembly System Interface Implementation for Deno

Hacker News90
Co
Collage Interface for Stable Diffusion62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Collage Interface for Stable Diffusion

Hacker News3
A
A UNIX-ey Interface to GPT362%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A UNIX-ey Interface to GPT3

Hacker News34
Me
Memcached/Couchbase NodeJS Interface with Promises24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Memcached/Couchbase NodeJS Interface with Promises

Hacker News1
Go
Golang, cache interface for you webapps42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Golang, cache interface for you webapps

Hacker News4
Go
Go GDB/MI interface43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Go GDB/MI interface

Hacker News1
Finbox
Finbox35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The interface between accountant and enterpreneur

Indie Hackers1b2b
An
An online guestbook interface that accepts drawings80%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An online guestbook interface that accepts drawings

Hacker News11