Kotlin 1.4 Improves Node.JS Support
Written by Mike James   
Thursday, 06 August 2020

The latest version of Kotlin has reached release candidate status. Version 1.4 has a preview of extra support for Node.JS and improved IDE support.

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

This release builds on the significant improvements made to the IDE support for Gradle Kotlin DSL scripts in Kotlin 1.3.7 with better error reporting and the ability to load script configuration explicitly for better performance.

In the previous release, when you added a new plugin to the buildscript or plugins block, the new script configuration was loaded automatically in the background, even if this had a negative impact on performance. You now need to explicitly apply changes to the configurations by clicking Load Gradle Changes or by reimporting the Gradle project.

The improved error reporting means you now see errors from the Gradle Daemon in the Build tool window rather than in a separate log file.

kotlinerror

Dukat support is improved with more fine-grained control in Dukat integration with te Kotlin/JS Gradle plugin. Dukat is a tool for automatically converting TypeScript declaration files (.d.ts) into Kotlin external declarations. You now have two different ways to select if and when Dukat should generate declarations.

The other main improvement to Kotlin 1.4 is a preview of bindings for Node.js APIs. You could already target Node.js with Kotlin, but the developers say the full potential of the target is unlocked when you have typesafe access to its API. 

 

kotlinlogo

 

More Information

Kotlin Home Page

Related Articles

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

Kotlin Begins Its Takeover Of Android

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.

Banner


Azul Outperforms OpenJDK By Up To 37%
23/10/2024

Azul has announced that its Azul Platform Prime outperforms comparable OpenJDK distributions by as much as 37%. The company has also launched the Azul Java Performance Engineering Lab (JPEL) aimed at  [ ... ]



The Feds Want Us To Move On From C/C++
13/11/2024

The clamour for safe programming languages seems to be growing and becoming official. We have known for a while that C and C++ are dangerous languages so why has it become such an issue now and is it  [ ... ]


More News

espbook

 

Comments




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

<ASIN:1871962536>

<ASIN:1871962544>

Last Updated ( Thursday, 06 August 2020 )