4 ms·
Wait, I am a bit confused. Does Zig have more/better libraries than Rust? I thought it's a pretty new language. The most limiting thing for me with Rust was th
by csomar 3y ago
Wait, I am a bit confused. Does Zig have more/better libraries than Rust? I thought it's a pretty new language. The most limiting thing for me with Rust was the lack of libraries (vs. say Python or Node/JavaScript).
- Quekid5 3y agoIt interops seamlessly with C libraries.
- csomar 3y agoDepending on what seamlessly means, Rust can also interop with C libraries. I wrapped a bunch of them.
- hailruda 3y agoSeamlessly as in @cInclude("raylib.h")
- GuestHNUser 3y agoTruly seamless because the zig compiler is also a C compiler, so the type information and calling convention works across languages at a level above any other I've encountered.
- littlestymaar 3y agoTrue, but I think that the person you're responding argued that rust/C integration is also seamless. (In the general discussion I'd say they're right as C to Rust integration isn't much of an problem and you can use C libraries relatively easily in Rust as well, but at the same time when talking about Zig I don't think it's fair to put it on the same ground).
- Capricorn2481 3y agoIt's also an unfinished language. I agree Zig is promising, but it's not confidence inspiring when the creator is still making videos debugging the compiler.
- imtringued 3y agoIt is impossible to do C interop without a C compiler, by the way.
- littlestymaar 3y agoIt doesn't. The ecosystem is very immature and even the official tooling is very unstable. It has a bunch of interesting design ideas but at this point it's more of an experimental language than a production ready one by most metrics. (And unless it finds some kind of corporate backing, this is unlikely to ever change).
- kuon 3y agoWe shipped a few web apps backed by zig. It is absolutely in production.
- Capricorn2481 3y agoJust because you put it in production does not mean it's production ready.
- deleted 3y ago[deleted]