Im using IntelliJ IDEA 2022.2.3 (Community Edition), and have updated my `plugins Kotlin("jvm") version "1.7.20"`, and added the `kotlinOptions.languageVersion="1.8"`, and the compiler is complaining about the generic parameter on the `HighQuality` value class. Is it possible to post this project to a github to see what Im missing here?
Looks like i had to also update the Kotlin version in the "tools-->Kotlin->Configure kotlin plugin updates" and download the 1.7.20 stable version and restart the IDE.
In the video a custom data class will be wrapped in an inline class, but in the documentation explicitly primitive values will be mentioned - why are both allowed and what sense does wrapping the custom class with potentially multiple properties make?
Primitive wrapped by normal class: 1 stack allocation + 1 object allocation Primitive wrapped by inline class : 1 stack allocation class with no fields wrapped by normal class: 2 object allocations class with no fields wrapped by inline class: 1 object allocation Class with 1 primitive field wrapped by normal class: 1 stack allocation + 2 object allocations Class with 1 primitive field wrapped by inline class: 1 stack allocation + 1 object allocation Class with 5 primitive fields wrapped by normal class: 5 stack allocations + 2 object allocations Class with 5 primitive fields wrapped by inline class: 5 stack allocations + 1 object allocation Inline classes remove the overhead of creating an object in all cases.
Hey, I Sebastian, I just wanted to say that you look great.
Im using IntelliJ IDEA 2022.2.3 (Community Edition), and have updated my `plugins Kotlin("jvm") version "1.7.20"`, and added the `kotlinOptions.languageVersion="1.8"`, and the compiler is complaining about the generic parameter on the `HighQuality` value class.
Is it possible to post this project to a github to see what Im missing here?
Looks like i had to also update the Kotlin version in the "tools-->Kotlin->Configure kotlin plugin updates" and download the 1.7.20 stable version and restart the IDE.
In the video a custom data class will be wrapped in an inline class, but in the documentation explicitly primitive values will be mentioned - why are both allowed and what sense does wrapping the custom class with potentially multiple properties make?
Primitive wrapped by normal class: 1 stack allocation + 1 object allocation
Primitive wrapped by inline class : 1 stack allocation
class with no fields wrapped by normal class: 2 object allocations
class with no fields wrapped by inline class: 1 object allocation
Class with 1 primitive field wrapped by normal class: 1 stack allocation + 2 object allocations
Class with 1 primitive field wrapped by inline class: 1 stack allocation + 1 object allocation
Class with 5 primitive fields wrapped by normal class: 5 stack allocations + 2 object allocations
Class with 5 primitive fields wrapped by inline class: 5 stack allocations + 1 object allocation
Inline classes remove the overhead of creating an object in all cases.
Why does IDEA look so much different on Mac
i'd love to know what theme he's using for the sidebars
it's not mac specific, it's the new ui available as a preview
@@Oeoaea I thought it's their new Fleet text editor
wow dude i love u, it really works!
another extra key word value? Happy refactoring...
So, if I start using generic inline classes from java, I could still get runtime error, because we will have `Object foo` in some cases, right?
If your runtime cast fails, then yes.
Dönerliebe
Amazing toturials! Thanks!
Anyways, you look different :)