News for hackers. Stuff that matters.
Re:Box2D 3.0 Released by krapp on Monday August 12, 2024 @06:13AM (#41222909)
In C? Tons. Because arrays in C decay to simple pointers so at runtime there is no such thing as an "array" with "bounds" there's just "memory goes brrr" and it's up to you to implement bounds checking yourself on a case by case basis.

You can also do what I do and treat Lua as essentially a C framework and use Lua tables.

Re:Box2D 3.0 Released by sgt on Monday August 12, 2024 @09:16AM (#41224036)
That's an interesting idea. So you just link the Lua library, what is the added size (kB) ?
Re:Box2D 3.0 Released by krapp on Monday August 12, 2024 @07:10PM (#41230416)
Between 200kB and 500kB give or take depending on how you build it. Definitely not a lot.