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…
What it does
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. 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 and feedback are welcome, give it a try and let us know what you think!
Does the same job
all alternatives →- WSWebAssembly 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…
- WAWasmer – A Go library for executing WebAssembly binaries2019 · github.com · ▲44
- GSGoJava – Server/desktop Java bindings to Go packages2016 · github.com · ▲52
- AGA golang websocket server you can pipe to2013 · github.com · ▲45

More life & fun this month
the category →- TL
Life & fun · 10d ago · louisabraham.github.io

Photosynthesis fires two of your iPhone
Life & fun · 28d ago · photosynthesis.camera
SoloUno▲310Take control of hair pulling, nail biting & skin picking
Life & fun · 28d ago · solouno.io

Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.
Life & fun · 26d ago · everycube.alen.is


Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…
Life & fun · 27d ago · baselashraf81.github.io
Launched alongside, June 2023
the whole month →- NI
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

Typefully 2.0▲931Effortlessly publish on Twitter and LinkedIn, now with AI
Growth · 2023 · typefully.com

SlashPage▲760Create websites in seconds to build your first 1K community
Growth · 2023 · slashpage.com
