nowfound

Dev tools · May 30, 2023

WS

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…

What it does

In the maker’s words, at launch

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&#x2F;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:&#x2F;&#x2F;wazero.io). https:&#x2F;&#x2F;github.com&#x2F;stealthrocket&#x2F;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&#x2F;O and basic networking is also supported when compiling apps from Go, e.g. see https:&#x2F;&#x2F;gist.github.com&#x2F;chriso&#x2F;6c71e968ef1002981a6ff46ceaa39.... Until Go v1.21 is released in August, you can use gotip (https:&#x2F;&#x2F;pkg.go.dev&#x2F;golang.org&#x2F;dl&#x2F;gotip) to try GOOS=wasip1 features. The provided sockets extension is compatible with the WasmEdge (https:&#x2F;&#x2F;wasmedge.org) runtime, allowing wasirun to run more complicated server-side applications compiled from C&#x2F;C++&#x2F;Rust&#x2F;Zig for WasmEdge. We have many exciting use cases for WebAssembly and WASI planned and can't wait to share them with you.

Does the same job

all alternatives →

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, May 2023

the whole month →
  • Sidekick1,343

    An AI-powered accessibility assistant in Stark

    AI · 2023 · getstark.co

  • BR

    In today's world, catchy headlines and articles often distract readers from the facts and relevant information. By utilizing OpenAI's language models, Boring Report processes sensationalist news articles, transforms them into the content you see, and helps readers focus on the essential details. We recently updated our iOS app experience, so any and all feedback would be appreciated. App Link: https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;boring-report-news-by-ai&#x2F;id644...

    AI · 2023 · boringreport.org

  • Generating powerful websites, one prompt at a time

    AI · 2023

  • Unlock a new level productivity with AI, Cloud Sync and more

    AI · 2023 · raycast.com

  • AudioPen888

    The easiest way to convert messy thoughts into clear text

    AI · 2023 · audiopen.ai

  • Launch your website in seconds, get users in minutes

    Dev tools · 2023 · page.mmntm.build