Kotlin 1.6.0 debuts memory manager

Kotlin 1.6.0 the latest release of JetBrains trendy speech for JVM web and mobile outgrowth has been released with a new remembrance director for indigenous outgrowth quiet in an experimental phase.

The remembrance director for Kotlin/Native which compiles code to indigenous binaries brings the speech closer to providing a congruous outgrowth experience. The remembrance director lifts existing restrictions on object sharing between threads and offers leak-free concurrent programming primitives that are safe and do not demand particular treatment or explanations.

The remembrance director headlines a long list of capabilities in Kotlin 1.6.0 which was described as primarily a stabilization release and published on November 16. Features previously billed as experimental in Kotlin now are useful by lapse in Kotlin 1.6.0. Installation instructions for the release can be establish at blog.jetbrains.com. Users of the JetBrains IntelliJ Idea or Android Studio IDEs can update automatically.

Other components in Kotlin 1.6.0 include:

  • For Kotlin/Native the LLVM dependency has been reworked bringing the LLVM rendering to 11.1.0 along with decreased dependency size and other benefits.
  • Sealed when statements exhibit a compiler caution if a when statement is not exhaustive. This component now in a firm state behind being previewed in Kotlin 1.5.30 makes code safer without the need for developers to present their own offices.
  • Support is stabilized for implementing attach officeal types as super interfaces. This had been missing from the Kotlin coroutines design. Also the conrendering from customary to attaching officeal types is stabilized. Developers now can pass any countenance of a suitable customary officeal type where attaching is expected as a parameter. The compiler will automatically accomplish the conrendering. This component fixes an inconsistency between customary and attaching offices in Kotlin.
  • The compilers type deduction for general types has been improved.
  • typeof has been stabilized and can be used on any Kotlin platform. It had been useful on the JVM in an experimental form.
  • The Duration API has been stabilized.
  • For the measure library the following stdlib offices have been promoted to firm: assembly builders bit turn operators on integers and the regex office for splitting a string into a following.
  • For measure input new offices are granted for reading from the relieve.
  • The Kover Gradle plug-in now in an experimental stage measures coverage for Kotlin code built with the JVM compiler.
  • For Kotlin/JVM the repeatable explanations cleverness is consistent with Java; @kotlin.explanation.Repeatable now accepts any retention and makes the explanation repeatable in both Kotlin and Java.
  • For Kotlin/JS developers edifice on a server without internet connectivity can disable downloading of Node.js and Yarn for Kotlin/JS projects and use instances already in locate on the host.