OliverO2

Results 187 comments of OliverO2

The creation of `RAWDISK` output was guided by a number of factors: 1. the defined goal of creating a PBA for TCG OPAL-2-compliant self-encrypting disks, 2. the quality, comprehensibility, and...

@sandwwraith > There's no built-in way to do so, but you can write a custom serializer that uses getters and setters of the delegates. It seems that the compiler is...

Good to hear that surrogates worked for you. The downside of both approaches is boilerplate which we are all trying to avoid. If I'm not overlooking something, this could all...

Some thoughts on a possible implementation: As explained in the section [Delegated properties – Translation rules](https://kotlinlang.org/docs/delegated-properties.html#translation-rules), the compiler generates an auxiliary property for each delegated property like this: ```kotlin private...

They don't have to be. That could depend on the delegate class being annotated with `@Serializable`.

You might want to look at [Deriving external serializer for another Kotlin class (experimental)](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md#deriving-external-serializer-for-another-kotlin-class-experimental). However, it will often be unfeasible to serialize classes that were not designed with serialization in...

I think the original discussion about this started here on Slack: https://kotlinlang.slack.com/archives/C7A1U5PTM/p1628060200011800

Serializing delegate properties is actually much simpler. It is not even necessary to introduce an extra annotation. Almost everything pretty much works out of the box right now: The Kotlin...

I've looked into the serialization compiler plugin. The [point where it decides which properties to serialize](https://github.com/JetBrains/kotlin/blob/023def9d25081916fffcc0ab5342c93be7b4f418/plugins/kotlin-serialization/kotlin-serialization-compiler/src/org/jetbrains/kotlinx/serialization/compiler/resolve/SerializableProperties.kt#L48) seems to be the compiler's frontend (resolving) phase. At that time, the plugin sees...

Thanks for reporting and the reproducer! What [happens here](https://github.com/wfhartford/kotest-hang-3759/blob/651ffdcd34bc47b23a9cea84b07be404881998c9/src/test/kotlin/ca/cutterslade/kotesthang/KotestHangSpec.kt#L16-L17) is the following: ```kotlin val parentJob = checkNotNull(Job(currentCoroutineContext()[Job])) { "No parent job" } job = GlobalScope.launch(parentJob) { delay(Duration.INFINITE) } ``` This...