Kotlin 1.8.0, an improve to the JetBrains-developed, statically typed language for multiplatform mobile, web, and native development, is obtainable in a beta launch. The brand new model introduces experimental features for the JVM.
The usual library in Kotlin 1.8.0 provides new experimental features for java.nio.file.path
that may recursively copy or delete listing content material. Experimental performance additionally has been added to TimeMarks
, permitting elapseNow
to learn from a number of TimeMarks
concurrently. Choose-in is required for each units of latest performance. Kotlin 1.8.0 additionally stabilizes extension features for java.util.Elective
.
Introduced November 23, Kotlin 1.8.0 additionally provides capabilities similar to Gradle 7.3 compatibility however subtracts assist of the previous JVM again finish, with the -Xuse-old-backend
compiler possibility not supported. Directions on updating to the beta might be discovered at kotlinlang.org.
Different new options and enhancements within the Kotlin 1.8.0 beta:
- Java 19 bytecode is supported for Kotlin/JVM.
- For Kotlin/JS, the IR (intermediate illustration) compiler has been stabilized and set incremental compilation is for use by default. The previous Kotlin/JS again finish has been deprecated.
- For Kotlin Multiplatform, an Android supply set structure was added that may be enabled within the Gradle plugin with
kotlin.mpp.androidSourceSetLayoutVersion=2
. Additionally, a brand new naming schema was added forKotlinSourceSet
entities. - For Kotlin Native, assist has been added for the Xcode 14 IDE for Apple improvement, in addition to for the
watchosDeviceArm64
goal. New annotations are supported to enhance Goal-C and Swift language interoperability.
The newest incremental launch of Kotlin, Kotlin 1.7.20, arrived in October.