Comment by AlienRobot 1 day ago With Zig, I can just import SDL.h and use it without writing a binding.Can I do that in C3 or Odin? 3 comments AlienRobot Reply pyrolistical 1 day ago And then you can get AI do a nicer port of SDL.zig and you get way better decls.Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of1. [*]T2. [:0]T3. ?T4. *TAnd these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier flumpcakes 1 day ago Odin has SDL built into the language (shipped as a vendored library). AlienRobot 1 day ago That's not what I mean...There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.
pyrolistical 1 day ago And then you can get AI do a nicer port of SDL.zig and you get way better decls.Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of1. [*]T2. [:0]T3. ?T4. *TAnd these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier
flumpcakes 1 day ago Odin has SDL built into the language (shipped as a vendored library). AlienRobot 1 day ago That's not what I mean...There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.
AlienRobot 1 day ago That's not what I mean...There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.
And then you can get AI do a nicer port of SDL.zig and you get way better decls.
Proper enums, proper tagged unions, and often reading the docs can allow the AI to distinguish T * to one of
1. [*]T
2. [:0]T
3. ?T
4. *T
And these are just the most common ones. If you know it’s a read only pointer/array then you can add the const modifier
Odin has SDL built into the language (shipped as a vendored library).
That's not what I mean...
There is a mountain of code written in C that you can simply include in Zig without a wrapper dependency and without having to create the wrapper yourself.