Re:The Odin Programming Language
by Touche on Friday January 31, 2020 @02:54PM
(#22204974)
I can't speak for Odin but Zig (also a niche language) is compatible with all C libraries so the ecosystem side is very good.
[ Parent
| on HN ]
That makes sense. I guess I assumed the interop story would necessarily be arduous and crufty, but if both languages are native I can see how you might get more of it "for free".
Odin requires writing bindings (for the moment, this will likely be automated with third-party tooling), Zig actually has full first-class C importation.
In both cases the interoperability is excellent imo.
I can't speak to Zig as much, but Odin's type system makes working with C APIs much more of a pleasure than doing so in C itself.