The magic of Kotlin/Native: Part 1

Vivek Singh
Nov 20, 2018 · 4 min read

Kotlin/Native Series

1. The Magic of Kotlin Native: Part 1 ( You are here)

2. The Magic of Kotlin Native: Part 2

3. The Magic of Kotlin Native: Part 3


What is Kotlin/Native ?

Clearly these guys have not heard of CSS/JavaScript

The Setup

New Project Snapshot
cmake_minimum_required(VERSION 3.8)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/KotlinCMakeModule)

project(vivek Kotlin)

konanc_executable(
NAME HelloWorld
SOURCES hello.kt
)
import platform.posix.getpid
fun main(args: Array<String>) {
println("Hello, The pid is ${getpid()}")
}
Hello, The pid is 8301

AndroIDIOTS

An android developer publication to stay updated with whats…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store