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


Pure Virtual C++ 2024 Sessions Announced
19/04/2024

Microsoft has announced the sessions for Pure Virtual C++ 2024, which is taking place on April 30th 15:00 UTC. People who sign up will get access to five sessions happening on the day, alongside a ran [ ... ]



The WinterJS Javascript Runtime Is Asking For Your Attention
11/04/2024

WinterJS is a brand new Javascript runtime by Wasmer which comes with the claim that it's the fastest of them all. Let's find out if that holds true.


More News

raspberry pi books

 

Comments




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

<ASIN:1871962536>

<ASIN:1871962544>

Last Updated ( Thursday, 06 August 2020 )