i am evaluating different languages for my game en...
# kotlin-native
s
i am evaluating different languages for my game engine, and currently KN doesn't fit, boxing issue + no value type makes it unusable, if only Swift was supported on windows i'd pick it.. there is C# and D left but i wish i could use KN instead
o
why do you believe that value types are critical for a game engine? Generally, Int, Float and similar primitive types are special purpose value types, and so one could build truly perf critical parts of an API around those
s
I think having a way to create custom value type is important, fast iteration over items, low memory footprint and stackallocated small structs that doesn't create garbage is really helpfull (vector math for ex)
and passing structs to opengl directly
i'm not a compiler guy, or a low level guy, but in c#, in some cases using struct over classes makes a HUGE difference with performance