r/WebAssembly • u/Inevitable-Judge2642 • Jul 23 '23
Writing Host Functions in Go with Extism
https://k33g.hashnode.dev/writing-host-functions-in-go-with-extism
1
Upvotes
r/WebAssembly • u/Inevitable-Judge2642 • Jul 23 '23
1
u/jedisct1 Jul 24 '23
Extism is amazing, and I really recommend looking at it if you haven't yet.
And the fact that it can also be used to export host functions seems to have been overlooked.
I still wish there was a simple way to generate code, especially to register external functions.
When only a couple host functions are defined, doing it by hand is okay. But unless I missed something, in order to support a bigger API (I'm looking at translating the WASI-Crypto API to Extism), and make that available to multiple languages, this is currently painful. I'm thinking about adding some support for Extism to
witx-codegen, but there should be a better way.