nowfound

Life & fun · June 13, 2023

WASI socket extensions for Go 1.21

The WASI preview 1 specification was missing socket APIs so some WebAssembly runtimes added extensions to allow applications to do more than basic file I/O. This package enables a large class of Go programs (almost any program doing networking) to run when compiled to WebAssembly using the WASI preview 1 spec. It exposes functions similar to net.Dial and net.Listen that can be used to leverage the socket extensions thanks to the new //go:wasmimport compiler directive. It also has a set of examples of how to use popular Go packages when compiling to GOOS=wasip1. Contributions…

WASI socket extensions for Go 1.21 launched on June 13, 2023 with 6 votes, #1,856 of 4,655 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 3 years on.

What it does

Go package implementing WASI socket extensions. Contribute to dispatchrun/net development by creating an account on GitHub.

In the maker’s words, at launch

The WASI preview 1 specification was missing socket APIs so some WebAssembly runtimes added extensions to allow applications to do more than basic file I/O. This package enables a large class of Go programs (almost any program doing networking) to run when compiled to WebAssembly using the WASI preview 1 spec.…

Does a similar job

all alternatives →
  • WebAssembly System Interface (WASI) with Sockets for Go2023 · github.com · ▲9

    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…

  • Firefox in WebAssemblyJul 2026 · developer.puter.com · ▲273

    This is the entire Firefox browser rendering to a element. Gecko, all UI components, and the Spidermonkey JS engine are all compiled and running in WebAssembly. Here are a few things you might find interesting: - This is fully end to end encrypted! We use the WISP protocol for TCP-over-websockets. - There is a novel WASM->JS JIT for experimental site speedup - This port cost over 25k in opus/fable tokens for debugging and JIT research This was just a fun experiment to push the boundaries of WebAssembly. For a more usable "browser in browser" experience, we also built…

  • Wasmer – A Go library for executing WebAssembly binaries2019 · github.com · ▲44

    🐹🕸️ WebAssembly runtime for Go. Contribute to wasmerio/wasmer-go development by creating an account on GitHub.

  • Wrote a tiny WebAssembly (wat2wasm) compiler in Go2022 · github.com · ▲75

    As a personal project I wrote a really tiny Wat 2 Wasm compiler in Go. Mainly for demonstrative and educational purposes. It was tough: I didn't know anything about WebAssembly internals and I'm a newbie with Go... so I tried to document it as much as I could for anyone that would like to approach the quest in the future! It misses a lot of features (that will be gradually implemented). Any feedback is welcomed!! Demo: https://luna-demo.vercel.app

  • I built a WASI playground for running CLI binaries in the browser2022 · runno.dev · ▲115

    Run WebAssembly made for outside the browser, inside the browser.

More life & fun this month

the category →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, June 2023

the whole month →
  • Heya HN, I've been working on a reddit-like platform as my primary side project for the last few years. Doing a (very) soft launch today, mainly because I want to use it to encourage discussion of alternatives. How non.io works: 1. Free to browse, paid to interact. 2. Minimum subscription is $2 (though you can choose more). I take $1 to run the servers, everything left gets split evenly between everything you upvote that month. It's a simple model, but I hope it's a better one than the freemium model we've been relying on for the last few years. Fundamentally I feel like any ad-supported…

    Commerce · 2023 · non.io

  • Sivi AI▲938

    Generative AI to magically turn text to visual designs

    AI · 2023 · sivi.ai

  • Effortlessly publish on Twitter and LinkedIn, now with AI

    Growth · 2023 · typefully.com

  • Olvy 2.0▲826

    Analyze user feedback 10x faster with AI

    AI · 2023 · olvy.co

  • SlashPage▲755

    Create websites in seconds to build your first 1K community

    Growth · 2023 · slashpage.com

  • Easy to use AI-powered, drag-and-drop website, SAAS landing, directory, and blog builder for startups, mobile apps, and SaaS. 100% no code, no design skills needed.

    AI · 2023 · unicornplatform.com