Slackbot
07/15/2025, 3:15 PMDmitry Nekrasov
07/15/2025, 3:20 PMkotlinx.collections.immutable
library. Do you use immutable collections in your codebase - whether in pure Kotlin, Android, or Compose Multiplatform projects? If yes, how do you apply them in your workflow (e.g., state management, thread safety, etc.), and what use cases or patterns have you found most effective? Have you encountered any nuances, challenges, or limitations, and do you have any suggestions or feature requests for the library?
If you don’t use immutable collections, we’d love to know why - do they not match your typical scenarios, or do you find them inconvenient or unnecessary for your use cases?
Your feedback will help us understand real-world adoption and shape the evolution of Kotlin libraries. Thanks for sharing your experience!Dan Rusu
07/15/2025, 4:17 PMPHondogo
07/15/2025, 4:18 PMEric Eilebrecht
07/15/2025, 4:39 PMkotlinx.collections.immutable
, but needed different implementation performance tradeoffs for our application (the Certora Prover). We ended up making "treap"-based persistent data structures based on the Kotlin interfaces (with extensions), which are better optimized for our use cases. See: Certora/collections: Memory-effficient immutable collection types for KotlinStefan Oltmann
07/15/2025, 4:51 PM