Hi, I thought this was pretty cool, and I need a bunch of posix-related functionality, so I just built something on this following your approach.
See https://www.npmjs.com/package/posix-zig
and the code is here:
https://github.com/sagemathinc/python-wasm/tree/main/packages/posix-zig#readme
The one interesting (to me) thing I did, which you'll see in the makefile and index.ts, is that I used zig to easily build binaries for all of the architectures I care about [x86_64/aarch64]-[linux/darwin]. To me it's ridiculously awesome that I can easily build binaries for these four platforms on any one of those platforms, since zig is so good at cross compilation.
I had to add some more functionality related to string handling, and also changed the code to ignore less errors. I happened to rename "translate.zig" to "node.zig".
Anyway, thanks!
Hi, I thought this was pretty cool, and I need a bunch of posix-related functionality, so I just built something on this following your approach.
See https://www.npmjs.com/package/posix-zig
and the code is here:
https://github.com/sagemathinc/python-wasm/tree/main/packages/posix-zig#readme
The one interesting (to me) thing I did, which you'll see in the makefile and index.ts, is that I used zig to easily build binaries for all of the architectures I care about [x86_64/aarch64]-[linux/darwin]. To me it's ridiculously awesome that I can easily build binaries for these four platforms on any one of those platforms, since zig is so good at cross compilation.
I had to add some more functionality related to string handling, and also changed the code to ignore less errors. I happened to rename "translate.zig" to "node.zig".
Anyway, thanks!