X 归档 2024-04-30
The nice part about this is you can write nice functional code that iterates on collections (map, filter etc.) with hand-optimized-level performance.
Every time I use map/filter in JS instead of plain for loops I feel like voluntarily giving up performance. https://t.co/dJGY3ahr34
Every time I use map/filter in JS instead of plain for loops I feel like voluntarily giving up performance. https://t.co/dJGY3ahr34
这样做的妙处在于,你可以写出优雅的函数式代码来遍历集合(map、filter 等),同时获得手工优化级别的性能。
每当我在 JS 里用 map/filter 而不是朴素的 for 循环时,都感觉是在主动放弃性能。 https://t.co/dJGY3ahr34
每当我在 JS 里用 map/filter 而不是朴素的 for 循环时,都感觉是在主动放弃性能。 https://t.co/dJGY3ahr34
🎉The Compose compiler has been merged into the Kotlin repository since Kotlin 2.0.0-RC2. This helps smooth the migration to Kotlin 2.0, as the Compose compiler will ship simultaneously with Kotlin from now on and will always be compatible with Kotlin of the same version. https://t.co/0eFrYgoQ7p
🎉 从 Kotlin 2.0.0-RC2 起,Compose 编译器已合并进 Kotlin 仓库。这有助于平稳迁移到 Kotlin 2.0,因为从现在起 Compose 编译器将与 Kotlin 同步发布,并且始终与相同版本的 Kotlin 兼容。 https://t.co/0eFrYgoQ7p

