Kotlin 1.8 Beta Adds New JVM Functions

A beta release of Kotlin 1.8 is available with improvements support for Xcode 14, compatibility with Gradle 7.3, and new experimental functions for JVM.

Kotlin is the open source language originated by JetBrains and promoted by Google as a first class language for Android to replace or supplement Java. It makes Android programming easier by reducing the need for long chunks of boilerplate code that the average programmer just doesn’t get, or perhaps more accurately doesn’t bother understanding at a deep level.


While Kotlin started out having a special relationship with Android it has widened its appeal on several fronts, one being iOS development. The new release adds support for Xcode 14 and for the watchosDeviceArm64 target. xx??Xcode is Apple’s integrated development environment for macOS that can also be used to develop apps for iOS, iPadOS, watchOS, and tvOS.

The beta also includes support for new annotations to improve Objective-C and Swift interoperability. Developers can now use @ObjCName, @HiddenFromObjC, and @ShouldRefineInSwift. The CocoaPods Gradle plugin has also been improved so that registered Kotlin frameworks are now dynamically linked by default.

Kotlin multiplatform developers get a new Android source set layout that can be enabled in the Gradle plugin, and a new naming schema for KotlinSourceSet entities.

**Kotlin isn’t just good for mobile apps. As a JVM langauge it????? In terms of the JVM, the old backend has been removed, and support has been added for Java 19 bytecode. The new experimental extension functions for JVM add the ability to recursively copy or delete directory content. The Kotlin team says that opt-in is required, and you should use them only for evaluation purposes.

Kotlin/JS developers will see a more stable IR compiler, and incremental compilation set to be used by default. There are also additional reporting options for when yarn.lock is updated during the CI process.

**Kotlin 1.8 isn’t as big an update as somethat have preceeded it, but that is to be expected of a langauge that has already evolved to be a really useful 




More Information

Kotlin Home Page

What’s New In Kotlin 1.8.1 Beta

Related Articles

Kotlin 1.7 Unveils New Compiler

Kotlin 1.5 – Mature But Still Growing

Why Do Android Devs Convert To Kotlin?

Kotlin Versus Java – A Developer’s Rosetta Stone

Kotlin 1.3 Adds Duration And Time API

Kotlin Enters RedMonk’s Top 20

Kotlin Gains A Foundation and A Portal

Kotlin 1.2 Released With Cross Platform Support

The Programmers Guide To Kotlin – Type

Android Studio 3.0 Released

Kotlin Begins Its Takeover Of Android

New Kotlin Style Guides Unveiled

Kotlin – New Language For Android


To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.






or email your comment to: comments@i-programmer.info

Source link


Leave a Reply

Your email address will not be published. Required fields are marked *