eygraber
12/30/2020, 4:02 PMArkadii Ivanov
12/30/2020, 4:59 PMHankG
12/30/2020, 6:06 PMkpgalligan
12/30/2020, 8:51 PMeygraber
12/30/2020, 10:47 PMkpgalligan
12/30/2020, 10:50 PMkpgalligan
12/30/2020, 10:51 PMfreeze()
very often, basically.kpgalligan
12/30/2020, 10:53 PMkpgalligan
12/30/2020, 10:54 PMensureNeverFrozen
if we wanted to. That's all the changes it would need.eygraber
12/30/2020, 11:14 PMKamilH
12/31/2020, 7:24 AMAtomicReference
calls from the app? I mean instead of doing this:
class Class {
private val list: IsoMutableList<String> = IsoMutableList()
private val variable: AtomicReference<String> = AtomicReference("")
}
do this:
class Class {
private val list: MutableList<String> = mutableListOf()
private var variable: String = ""
}
If so then I can’t wait the new memory model 🙂
(The pattern with Stately types is not something very bad for me to be honest, but if we could avoid it it would make code a little bit more clear)kpgalligan
12/31/2020, 3:02 PMClass
from possibly more than one thread, the second example is very risky. You'll need to synchronize that data somehow. They're not thread safe (on the JVM).