Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Add Support For Kotlin Native #12

Open
@napperley

Description

@napperley

Although this runtime (runtime-kotlin) supports Kotlin JVM there is a case to be made for adding support for Kotlin Native. As you might be aware the JVM isn't optimised/designed for Serverless applications due to their performance characteristics/requirements:

  • Quick start up time
  • Low memory usage
  • Small code size
  • Minimal software dependencies
  • Quick response time

All points listed above are also applicable to CLI applications which is another area the JVM isn't optimised/designed for. There is a technical presentation that provides a overview of Kotlin Native, including its performance aspects.

The Serverless performance issues with the JVM become clear when looking at some Serverless benchmarks comparing Kotlin JVM to Go. With the way the JVM is progressing developing Serverless applications that rely on the JVM is untenable (not feasible for the long term). Already some organisations like Pivotal (heavy adopter of Kotlin for server-side development) are exploring the use of Kotlin Native over Kotlin JVM as the preferred/best way to develop Serverless applications for the "long term".

Since Kotlin Native is LLVM based it would likely not require IBM to do a lot of work (IBM Cloud Functions already supports Swift which is also LLVM based) in order to add support. Kotlin Native already works on Open Whisk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions