3 ms·
Odin Homepage: https://odin-lang.org/ https://odin-lang.org/ (I was curious) I can't see this being generally successful unless it can interoperate with existi
by fake-name 4y ago
Odin Homepage: https://odin-lang.org/ https://odin-lang.org/ (I was curious)
I can't see this being generally successful unless it can interoperate with existing C code without much effort. Update: It appears it can: https://odin-lang.org/docs/overview/#foreign-system https://odin-lang.org/docs/overview/#foreign-system
It apparently targets LLVM.
- flohofwoe 4y agoI recently wrote a bindings generator to Odin for my C libraries, and the FFI is very well thought out, down to defining things like linker dependencies in the code. For instance see here: https://github.com/floooh/sokol-odin/blob/main/sokol/gfx/gfx.odin https://github.com/floooh/sokol-odin/blob/main/sokol/gfx/gfx... The only minor downside (compared to Zig) is that Odin still requires a separate C/C++ toolchain to actually build the C dependencies. But I guess that's a typical 1st-world-problem ;) (however AFAIK Odin's FFI system isn't in any way related or depending on LLVM).