X
Business

Programming language Kotlin 1.4 is out: This is how it's improved quality and performance

Kotlin gains new debugging tools and the beginnings of improved multi-platform support.
Written by Liam Tung, Contributing Writer

Developer tools maker JetBrains has released version 1.4 of Kotlin, the increasingly popular programming language promoted by Google for Android app development. 

Kotlin has become one of the fastest-growing languages on GitHub and now ranks as one of the top five most-loved languages by developers who use Stack Overflow, while ranking 19th on RedMonk's list of most popular languages

While it is popular among Android app developers, JetBrains points out that Kotlin is also used for server-side development, and for targeting iOS, the web, Windows, macOS and Linux. 

SEE: Hiring Kit: Python developer (TechRepublic Premium)    

It also says 5.8 million people have edited Kotlin code over the past year, up from 3.5 million people a year earlier.  

Kotlin 1.4, released this week, addresses over 60 performance issues that were causing integrated development environment (IDE) problems.

Developers should notice autocomplete suggestions appearing significantly faster, though these require JetBrain's IDE IntelliJ IDEA 2020.1+ and Android Studio 4.1+, which is co-developed by Google and JetBrains. 

It also introduces a new coroutine debugger tab in the Debug Tool Window to help developers check the state of coroutines, and a new Kotlin Project Wizard for creating and configuring different types of Kotlin projects. 

JetBrains is also working on a new Kotlin compiler that aims to eventually unify all platforms that Kotlin supports, but in 1.4 the compiler starts with a new type-inference algorithm that was available in Kotlin 1.3 and is now used by default. 

There's also new Java Virtual Machine (JVM) and JavaScript (JS) backends in 1.4, which are available in Alpha mode now but will become the default after being stabilized. 

These backends – Kotlin/JVM and Kotlin/JS – are being migrated to the same internal representation (IR) for Kotlin code as the Kotlin/Native backend is. The outcome is that all three backends share a common background infrastructure, which should make it easier to implement bug fixes and features once for all platforms. 

SEE: Chrome for Android to label 'Fast page' sites as Google clamps down on mixed forms

Kotlin/Native also gains performance improvements to Kotlin/Native compilation and execution, as well as improved interoperability between it and Swift and Objective C for iOS and macOS development.   

Finally, Kotlin Multiplatform is an early-stage project that aims to help save effort when maintaining the same code for different platforms. 

There's a new hierarchical project structure that allows developers to share code between a subset of similar targets, like iOS Arm64 devices and an x86 simulator target. This offers developers more flexibility than the current ability to share code on all platforms.  

More on Kotlin and programming languages

  • Developer jobs: Demand for programming language Python falls amid pandemic  
  • Programming language Julia version 1.5 is out: Lots of new features, better performance  
  • Programming language popularity: Python overtakes Java – as Rust reaches top 20  
  • Programming languages: Julia touts its speed edge over Python and R  
  • Programming language Julia: Version 1.4 is even faster and brings these new features  
  • Top programming languages: Python still rules but old Cobol gets a pandemic bump  
  • Kotlin programming language: How Google is using it to squash the code bugs that cause most crashes  
  • Microsoft: We're pulling the plug on Windows builds of programming language PHP  
  • Kotlin programming language: Google offers free course for Android development  
  • Programming languages: Now Rust project looks for a way into the Linux kernel  
  • Programming language rankings: R makes a comeback but there's debate about its rise  
  • Programming languages: Julia touts its speed edge over Python and R  
  • Microsoft lead engineer: Programming language TypeScript took off thanks to Google's Angular  
  • JavaScript creator Eich: My take on 20 years of the world's top programming language  
  • Programming languages: Java still rules over Python and JavaScript as primary language  
  • Julia programming language: Users reveal what they love and hate the most about it    
  • Mozilla is funding a way to support Julia in Firefox
  • MIT: We're building on Julia programming language to open up AI coding to novices
  • Is Julia fastest-growing new programming language? Stats chart rapid rise in 2018
  • Python vs R for data science: Professor rates programming language rivals
  • Is Julia the next big programming language? MIT thinks so, as version 1.0 lands TechRepublic
  • Mozilla's radical open-source move helped rewrite rules of tech CNET
  • Editorial standards