sksk
06/12/2019, 7:14 PMbloder
06/12/2019, 7:16 PMMyInlineClass(1, 2)
? What kind of value unwrapping are u expecting from that? š¤karelpeeters
06/12/2019, 7:16 PMsksk
06/12/2019, 7:17 PMRuckus
06/12/2019, 7:17 PMkarelpeeters
06/12/2019, 7:19 PMRuckus
06/12/2019, 7:20 PMbloder
06/12/2019, 7:21 PMvar (x, y) = MyInlineClass(1, 2)
karelpeeters
06/12/2019, 7:21 PMsksk
06/12/2019, 7:24 PMinline class Something(val a: Int, val b: Int)
but i guess i'm just asking for value types šsksk
06/12/2019, 7:25 PMkarelpeeters
06/12/2019, 7:25 PMsksk
06/12/2019, 7:26 PMsksk
06/12/2019, 7:27 PMgildor
06/13/2019, 2:24 AMgildor
06/13/2019, 2:32 AMthe best solution is to do the right thing for the platformYes, and the right thing is wait for proper value types support on the most popular part of the platform: JVM
sksk
06/13/2019, 9:37 AMsksk
06/13/2019, 9:37 AMsksk
06/13/2019, 9:38 AMgildor
06/13/2019, 10:15 AMgildor
06/13/2019, 10:15 AMforced to wait foreverNot forever, but until JVM will get value types at least
sksk
06/13/2019, 10:16 AMgildor
06/13/2019, 10:17 AMgildor
06/13/2019, 10:17 AMsksk
06/13/2019, 10:17 AMsksk
06/13/2019, 10:18 AMgildor
06/13/2019, 10:18 AMgildor
06/13/2019, 10:18 AMsksk
06/13/2019, 10:19 AMgildor
06/13/2019, 10:21 AMsksk
06/13/2019, 10:22 AMgildor
06/13/2019, 10:22 AMgildor
06/13/2019, 10:28 AMsksk
06/15/2019, 2:07 PMgildor
06/16/2019, 3:03 AMyou need as much performance as possibleSure, but there are tradeoffs. If you would worry only about performance (especially for games, for example backend is different story) and donāt care about anything else you would probably use ASM/C/C++
this is why games sucks on android compared to iOSNot sure what you mean. But most of games are native and written using C/C++ cores and should have mostly the same memory consumption. And only native games allows to compare game performance directly, but in this case you usually compare GPU, CPU, driver performance Sure, managed runtimes consume more memory than native in general (and itās also true for C#), tradeoffs are everywhere, but if you really compare iOS and Android itās not true. Modern iPhones has the same amount of memory as Android (for example Pixel 3 has 4Gb and iPhone XS has 4Gb) and I donāt think that memory consumption on Android is 2 times more, but if you have another data would be interesting to see Also itās very strange to compare low end Android decvices with non-existing iOS low end devices Iām not really into game dev, but usual application on Android donāt have any problems with memory allocation or GC, of course better to avoid it in really hot parts of the code, but itās true for any other technologies, you should just optimize bottlenecks if you try to save allocation of a few dozen of objects you definitely do something wrong #enumsmatter
gildor
06/16/2019, 4:08 AM