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
olonho
07/08/2018, 7:22 PM
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
sksk
07/08/2018, 8:26 PM
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)
sksk
07/08/2018, 8:26 PM
and passing structs to opengl directly
sksk
07/08/2018, 8:31 PM
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