JetBrains to Roll Out Ktor Framework

Framework is suitable for writing back-end projects and microservices in the Kotlin language
20 November 2018   185

JetBrains developers told about the release of the stable version of the Ktor 1.0 framework. It helps to create asynchronous servers and clients in related systems. According to the creators, the framework is suitable for writing back-end projects and microservices in the Kotlin language. Documentation and project generator are published on the official website.

First of all, it is worth noting that this is an open source project that is distributed under the Apache 2 license. The main components are:

  • HTTP server running on a virtual machine. It works on Netty, Jetty, and server-side Java programs. It can be placed in a container, embedded in desktop or Android applications, as well as run on Tomcat. Moreover, it corresponds to the paradigm of the application of twelve factors.
  • Multiplatform HTTP client. Although asynchronous, it uses the same coroutines and I / O elements that control the server.

Tools will help the developer to customize the main components of the application.

The Kotlin / Native project supports Ktor, starting with version 0.8. In this case, the working version of Kotlin / Native 0.9 was released in early September 2018. In it, developers added support for unsigned types and interoperability with C, Objective-C / Swift.

JetBrains to Roll Out Kotlin 1.3

The language is now supported by the Google Cloud Platform, the Spring framework and the Gradle system
30 October 2018   233

JetBrains has announced the release of Kotlin version 1.3. The developers stabilized the coroutine’s work and introduced the Kotlin / Native beta. The language is now supported by the Google Cloud Platform, the Spring framework and the Gradle system.

Let's find out what's new:

  • The release of the library kotlinx.coroutines version 1.0 for working with coroutines.
  • The Kotlin / Native beta release - an LLVM backend for compiling the Kotlin's source code into separate binaries. The new version provides fully automated memory management and can interact with C, Objective-C and Swift. In addition, the Kotlin / Native runtime promotes the use of immutable data and prevents any attempts to share unprotected changeable code in threads.
  • New libraries to support multiplatform projects. In addition to kotlinx.coroutines for coroutines, the JetBrains team presented libraries for handling HTTP requests and serialization. You can create such a tool yourself by adding dependencies specific to the platform to the public API.
  • Support for innovations introduced in Kotlin 1.3 in three IDEs: IntelliJ IDEA Community Edition, IntelliJ IDEA Ultimate and Android Studio.
  • The implementation of the “contracts” presented in the release candidate version on KotlinConf 2018.
  • Experimental support for inline classes and four subspecies of the unsigned integer type.
  • The possibility of nested ads in annotation classes.
  • Inclusion in the standard support library Kotlin / Native and Kotlin / JS.