home.social

#componentmodel — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #componentmodel, aggregated by home.social.

  1. When I use cargo component new to build a CLI component for Rust/Wasm/Wit, the cargo component build step will automatically translate a main function to .e.g. wasi:cli/run or println! statements to the according stream functions from the wasi world. With wasm-tools component wit I can even inspect a generated with world, though none was supplied. I would llike to know more about the magic involved. Is that documented somewhere, is this something carfgo component does, or is it coming from wit-bindgen? Any help or pointers appreciated.

    #rust #wasm #wit #wasi #wasip2 #cargo #componentmodel

  2. As a complete aside: over the last few months, I've put together a little workbench repo to get myself conversant with the Wasm component model.

    github.com/dylibso/component-w

    It consists of a series of ".wat" files, some of which include an associated runner. Each file attempts to isolate one bit of syntax, building up to late-bound host functions.

    These files are intended for people to read and edit – change stuff and see what happens!

    #wasm #wasmcomponents #componentmodel

  3. Last month in Wasm - Python
    #python #wasm #componentmodel

    Brett Cannon (@brettcannon) from Microsoft has added a build script for building Python for WASI.
    github.com/python/cpython/blob
    github.com/python/cpython/blob

    Joel Dice from Fermyon and Peter Huene (@peterhuene) from Fastly have updated Componentize-Py from Wasmtime 13 up to 15 and are planning to be ready for Wasmtime 16 on release.
    github.com/bytecodealliance/co
    github.com/bytecodealliance/co

  4. Last month in Wasm - JavaScript
    #javascript #node #wasm #componentmodel

    Guy Bedford (@guybedford) from Fastly spoke at NodeConf EU last month talking about WebAssembly Components and JavaScript.
    nodeconf.eu/guy-bedford-webass

    JCO now passes 86 of the 97 test programs from Wasmtime and expects to pass all of them by end of year.

  5. Last month in Wasm - Go
    #golang #wasm #componentmodel

    Mossaka from Microsoft added support for resources to wit-bindgen/go.
    github.com/bytecodealliance/wi

    Johan Brandhorst-Satzkorn from Hashicorp's proposal to add a wasm32 target for golang has been acccepted.
    github.com/golang/go/issues/63

  6. Last month in Wasm - C# and .NET
    #csharp #dotnet #wasm #componentmodel

    # Microsoft exploring .NET + Wasm/WASI

    Richard Lander from Microsoft wrote a blog post on the future of Wasm + WASI with .NET in the cloud.
    devblogs.microsoft.com/dotnet/

    Also, Steve Sanderson from Microsoft created an Experimental SDK for using WASI/WIT in .NET.
    github.com/SteveSandersonMS/wa

  7. so, a few #wasm #componentmodel questions as I’ve started digging into this:

    1. As a provider of host functions that are intended to “mix into” other worlds, should I prefer to export interfaces that can be imported separately or a world that can included wholesale?

    2. re cargo-component: what is the difference between “package.metadata.component.dependencies” and “package.metadata.component. target.dependencies”?