wazero
wazero copied to clipboard
Add Zig example
Close https://github.com/tetratelabs/wazero/issues/738
@codefromthecrypt @mathetake I've addressed all the comments.
Fantastic collaboration. @Luukdegram you're the best!
Thank you so much @Luukdegram! 🙌
Thank you, @codefromthecrypt @mathetake! Also, I'm so honored to have learned that much from @Luukdegram though I'm new to Zig. I really appreciate it. As we had some discussion about WASI, adding a Zig WASI example might also be useful.
Glad I could help! Feel free to message me anytime in the future :)
@knqyf263 you feel up to adding a wasi example in zig? no issues on our side if you have time. Zig is well loved by us.
@codefromthecrypt I won't have time until the first half of next week. If you are not in hurry, I can add the WASI example later next week.
no hurry at all, thanks!
@knqyf263 once you have the WASI example up, I'll offer to put together a zig page like these. https://wazero.io/languages/
Nice. I'm sorry to be late. I came up with an idea for Go plugin system over WebAssembly and had been developing that in my spare time 😄 It uses wazero under the food. You define proto files for Protocol Buffers and my protoc plugin generates TinyGo Wasm SDK like this. The proto file would be as below.
service Greeter {
// Sends a greeting
rpc Greet(GreetRequest) returns (GreetReply) {}
}
// The request message containing the user's name.
message GreetRequest {
string name = 1;
}
// The response message containing the greetings
message GreetReply { string message = 1; }
Hopefully, I will wrap it up this week and move back to the Zig work.
You define proto files for Protocol Buffers and my protoc plugin generates TinyGo Wasm SDK ...
heh that sounds great!
It's out😎 https://github.com/knqyf263/go-plugin
hey, I have updated the Zig section on the wazero website here, please do chime in https://github.com/tetratelabs/wazero/pull/1051