3 ms·
Odin supports WASM and some people use it for games and other apps. For example Spall (https://gravitymoth.com/spall/spall.html https://gravitymoth.com/spall/sp
by jakubtomsu 3y ago
Odin supports WASM and some people use it for games and other apps. For example Spall (https://gravitymoth.com/spall/spall.html https://gravitymoth.com/spall/spall.html) is written 100% in Odin and runs in the browser.
Sokol is very nice indeed. I love it because it's so minimal, but it has all the features I need at the same time. Andre Weissflog (the author of Sokol) really knows what he's doing. I've written engines completely from scratch before, and also used high-level libraries like Raylib. IMO Sokol has something from both worlds. The "build your own engine on top" style really fits my style of making games
I think both Odin and Zig are good languages. But Zig is _far_ more complicated and ambitious project, and it's nowhere near finished. Odin on the other hand hasn't changed almost at all in the last 2-3 years, and the 1.0 is just a matter of polishing the compiler and writing an official spec.
Odin does everything I need from a C-like language really well, I don't think I'm going to switch to another language in the next couple years. But you're right it's more suited towards gamedev and graphics programming. If I was more worried about safety I might choose Zig...