Kym Vector Types #25

Closed
opened 2023-07-15 16:55:43 +02:00 by kayomn · 0 comments
Owner

Providing built-in 2-component and 3-component vector types in Ona script would be useful in catering to common math types used in interactive multi-media software development like games.

The alternative would be to implement them as a library feature that Ona binds to Ona script via the native runtime interface but that would make them heap-allocated objects, which for such a frequently used data type would be detrimental to overall application performance.

Further, we're already paying the cost for ~16 byte value types across the whole VM (much like stock Lua), so using of the space in the aligned memory of values we're already paying for would be advantageous.

Providing built-in 2-component and 3-component vector types in Ona script would be useful in catering to common math types used in interactive multi-media software development like games. The alternative would be to implement them as a library feature that Ona binds to Ona script via the native runtime interface but that would make them heap-allocated objects, which for such a frequently used data type would be detrimental to overall application performance. Further, we're already paying the cost for ~16 byte value types across the whole VM (much like stock Lua), so using of the space in the aligned memory of values we're already paying for would be advantageous.
kayomn added this to the (deleted) milestone 2023-07-15 16:55:43 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kayomn/ona#25
No description provided.