@wasmvision that's awesome!

@sunfish @yosh y'all might find this neat.

#wasmcomponents

This is insanely valuable work by @whitequark to compile #llvm to #webassembly #wasi and #wasmcomponents -- and THEN submit to upstream so that others can help AND enjoy that hard work: https://discourse.llvm.org/t/rfc-building-llvm-for-webassembly/79073/22

#RESPECT and #howcanihelp

[RFC] Building LLVM for WebAssembly

OK, for everyone who wants to try this out, I’ve added a horrifically cursed “compiler driver driver” that makes the Wasm Clang look like any other Clang by intercepting the output of -### and redirecting the (impossible in the Wasm sandbox) linker subprocess call. To use it, open a shell on a Linux machine with CMake, cURL, git, Python 3, and Wasmtime installed, and run: $ git clone https://github.com/YoWASP/clang yowasp-clang $ cd yowasp-clang $ ./build.sh ... wait about one hour... $ cat >te...

LLVM Discussion Forums

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.

https://github.com/dylibso/component-workbench

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

GitHub - dylibso/component-workbench: a workbench for experimenting with the component model

a workbench for experimenting with the component model - GitHub - dylibso/component-workbench: a workbench for experimenting with the component model

GitHub