Wednesday October 18th I will give a talk at Bologna JS, a Meetup focused on backend JavaScript.
I will first introduce Zig to a JavaScript / TypeScript audience, and then I will show how to create a Node.js native addon using the Node-API and zig, and a WebAssembly module that can be consumed by the Node.js wasi module.
The talk will be in Italian. Slides and other material will be in English.
Wow, this is pretty good, nice work! I’ve only skimmed through it, noticed one detail which I don’t think is correct, namely, the two error handling tips contradict each other.
I believe that omitting the error set is exactly the same as specifying anyerror global error set in the error union. We’ve discussed a few points about anyerrorhere. I’ll link it just for context.
Yeah, Zig definitely infers the error set, but I guess I’m not entirely sure even from reading the langref whether the inferred error set is minimal or global. I wish you were right and I got it wrong! It actually now kind of seems to me that you are. Hopefully, someone with more knowledge can settle this.