3 ms·
Cool, I’m working on a FoundationDB C API wrapper and also a higher level set of abstractions over that, in Zig. It’s an absolute blast connecting C code to Zi
by ok_dad 4y ago
Cool, I’m working on a FoundationDB C API wrapper and also a higher level set of abstractions over that, in Zig.
It’s an absolute blast connecting C code to Zig because it’s so easy. It’s less like FFI and more like just importing a Zig module. In contrast, using not-specifically-designed C from Python is a nightmare and Lua is somewhere closer to Python than Zig. I haven’t tried Go FFI, but I hear it is pretty slow compared to pure Go. One downside is there are a lot of different pointers in Zig with C imports.
This article will help for sure when I get to the stage where I want to write a query parser, thanks for sharing!