Kotlin 1.8 Beta Adds New JVM Functions
Written by Mike James   
Wednesday, 07 December 2022

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.

kotlinlogo

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. Xcode, is of course,  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 runs on most things. 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 some that have preceded it, but that is to be expected of a language that has already evolved to be really useful. It is nice to know that it is still pushing forward.

kotlinlogo

 

 

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?

 

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.

Banner


The Experience AI Challenge
28/03/2024

The Raspberry Pi Foundation in collaboration with Google DeepMind has announced the Experience AI Challenge. Its intention is to guide young people under the age of 18, and their mentors, through [ ... ]



Excel Spreadsheet - A Joke?
01/04/2024

No this isn't an April Fool's although in places it seems like one. It's a true account of how Williams Racing has suffered through reliance on an overgrown and outdated Microsoft Excel spreadsheet, l [ ... ]


More News

raspberry pi books

 

Comments




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

<ASIN:1871962544>

<ASIN:1871962706>

Last Updated ( Wednesday, 07 December 2022 )