# Question concerning Kotlin native

**URL:** <https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875>\
**Category:** Language Design\
**Created:** [July 19, 2016, 8:14pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875 "2016-07-19T20:14:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Plohmann](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/oliver_plohmann/32/2398_2.png) [@Oliver\_Plohmann](https://discuss.kotlinlang.org/u/Oliver_Plohmann)\
**Post date:** [July 19, 2016, 8:14pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/1 "2016-07-19T20:14:53Z")

</div>

Hello,

I just skimmed through the blog post “[Kotlin Night in San Francisco Recordings](https://blog.jetbrains.com/kotlin/2016/06/kotlin-night-recordings/)”. It says on one slide:

New Targets:

- Native

- iOS
- Embedded
- server-side

In the [accompanying talk](https://blog.jetbrains.com/kotlin/2016/06/kotlin-night-recordings/) Andrey says at about position 9:38 that there are plans to run Kotlin without a JVM. That sparked my interest. Does that mean there will be a native executable one day for iOS or Linux or something? Sounds really cool!

Thanks, Oliver

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [July 20, 2016, 12:28pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/2 "2016-07-20T12:28:32Z")

</div>

Yes, we are going to start working on a non-JVM native compilation for Kotlin. The possible targets of interest are embedded devices (Linux-based, RTOS-based and no-OS), iOS, Linux and whatnot 🙂 What platforms get ready first/get more focus is not clear ATM

---

<div class="post-metadata">

**Author:** ![Oliver\_Plohmann](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/oliver_plohmann/32/2398_2.png) [@Oliver\_Plohmann](https://discuss.kotlinlang.org/u/Oliver_Plohmann)\
**Post date:** [July 20, 2016, 12:36pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/3 "2016-07-20T12:36:23Z")

</div>

Woohoo! This sounds cool :-). Does that mean you are going to develop your own GC and own runtime for the respective OS? LLVM?

---

<div class="post-metadata">

**Author:** ![takhion](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/takhion/32/1730_2.png) [@takhion](https://discuss.kotlinlang.org/u/takhion)\
**Post date:** [July 22, 2016, 9:48am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/4 "2016-07-22T09:48:58Z")

</div>

Being able to share business logic (in Kotlin) between Android/iOS is going to be HUGE… If done well this could be the holy grail for mobile development.

---

<div class="post-metadata">

**Author:** ![molchanoviv](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/molchanoviv/32/1846_2.png) [@molchanoviv](https://discuss.kotlinlang.org/u/molchanoviv)\
**Post date:** [July 22, 2016, 10:19am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/5 "2016-07-22T10:19:57Z")

</div>

If you want to write your business logic in kotlin for iOS you can use Multi OS Engine by Intel.

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [July 29, 2016, 4:46pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/6 "2016-07-29T16:46:31Z")

</div>

Yes, LLVM most likely, own GC and other parts of the runtime as well.

---

<div class="post-metadata">

**Author:** ![y2k](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/y2k/32/2315_2.png) [@y2k](https://discuss.kotlinlang.org/u/y2k)\
**Post date:** [July 31, 2016, 8:31am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/7 "2016-07-31T08:31:18Z")

</div>

LLVM it’s cool, but it distant future.  
What about Intel MOE or BugVM?

Will you cooperate with it for better support Kotlin (like with RoboVM)?

---

<div class="post-metadata">

**Author:** ![Oliver\_Plohmann](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/oliver_plohmann/32/2398_2.png) [@Oliver\_Plohmann](https://discuss.kotlinlang.org/u/Oliver_Plohmann)\
**Post date:** [August 10, 2016, 6:59am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/8 "2016-08-10T06:59:13Z")

</div>

This sounds really exciting. You guys are really up for something. Gonna rival Go/Delphi in the end …

---

<div class="post-metadata">

**Author:** ![abreslav](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/abreslav/32/8279_2.png) [@abreslav](https://discuss.kotlinlang.org/u/abreslav)\
**Post date:** [August 12, 2016, 1:38pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/9 "2016-08-12T13:38:57Z")

</div>

From what we know, Kotlin works on MOE and BugVM inherits to RoboVM, so we don’t expect issues there.

---

<div class="post-metadata">

**Author:** ![curtis.s.cooper](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@curtis.s.cooper](https://discuss.kotlinlang.org/u/curtis.s.cooper)\
**Post date:** [August 15, 2016, 6:46am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/10 "2016-08-15T06:46:43Z")

</div>

I’m excited about Kotlin as “a better Java” (much better), which is my interest in the language. I don’t see it competing nearly as effectively in the native-app space. I think modern C++ already has the features I need to write clear, concise code to model and implement systems of arbitrary complexity. It’s the Java interoperability, with support for Java’s amazing ecosystem, that makes Kotlin a compelling newcomer on the programming-language scene. Ameliorating Java’s weaknesses should continue to be the main focus. Just my 2 cents.

---

<div class="post-metadata">

**Author:** ![scellow](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@scellow](https://discuss.kotlinlang.org/u/scellow)\
**Post date:** [September 28, 2016, 10:33pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/11 "2016-09-28T22:33:15Z")

</div>

What if my kotlin project use some Java class that rely on JNI, will it still work ?

---

<div class="post-metadata">

**Author:** ![nimtiazm](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nimtiazm](https://discuss.kotlinlang.org/u/nimtiazm)\
**Post date:** [October 5, 2016, 10:50am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/12 "2016-10-05T10:50:29Z")

</div>

Being native and having GC doesn’t really cut it. That’s the reason why Swift and Rust are poised to succeed C++. Has there really been any consideration for auto memory management (other than GC)?

---

<div class="post-metadata">

**Author:** ![Nikolay.Igotti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/nikolay.igotti/32/2344_2.png) [@Nikolay.Igotti](https://discuss.kotlinlang.org/u/Nikolay.Igotti)\
**Post date:** [October 10, 2016, 8:08am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/13 "2016-10-10T08:08:05Z")

</div>

Our work on Kotlin Native relying on LLVM is still in progress, and we will try to provide smooth interop with regular native code written in C, along with native-friendly memory management scheme. More details to come later this year.

---

<div class="post-metadata">

**Author:** ![Oliver\_Plohmann](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/oliver_plohmann/32/2398_2.png) [@Oliver\_Plohmann](https://discuss.kotlinlang.org/u/Oliver_Plohmann)\
**Post date:** [October 11, 2016, 2:13pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/14 "2016-10-11T14:13:44Z")

</div>

Man, you are building on your language empire ;-).

---

<div class="post-metadata">

**Author:** ![sebdeleuze](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sebdeleuze/32/2196_2.png) [@sebdeleuze](https://discuss.kotlinlang.org/u/sebdeleuze)\
**Post date:** [November 10, 2016, 10:42am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/15 "2016-11-10T10:42:26Z")

</div>

Hey, is there any early preview of Kotlin native we can try and play with?

---

<div class="post-metadata">

**Author:** ![Nikolay.Igotti](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/nikolay.igotti/32/2344_2.png) [@Nikolay.Igotti](https://discuss.kotlinlang.org/u/Nikolay.Igotti)\
**Post date:** [November 14, 2016, 10:05am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/16 "2016-11-14T10:05:38Z")

</div>

Not yet, however we are very busy to make something for you soon.

---

<div class="post-metadata">

**Author:** ![spointeau](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@spointeau](https://discuss.kotlinlang.org/u/spointeau)\
**Post date:** [January 10, 2017, 10:43am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/17 "2017-01-10T10:43:03Z")

</div>

I am really excited to think about Kotlin native, that would be wonderful! I cannot wait to try it.

---

<div class="post-metadata">

**Author:** ![gulshanur](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/gulshanur/32/2272_2.png) [@gulshanur](https://discuss.kotlinlang.org/u/gulshanur)\
**Post date:** [January 10, 2017, 5:02pm UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/18 "2017-01-10T17:02:32Z")

</div>

If you port Kotlin to .net (core), I think there will be a LOT of developers jumping from C#. It just feels like what C# wants to be, but able to due to backward compatibility. What I have seen, native developers do not prefer GC and heavy runtime components. But .net devs are used to them. And coreCLR and coreFx are rich as gc and standard libraries. CoreCLR was recently provided as an optional gc for Python. Jetbrains are already in dotnet foundation. I’m not proposing to abandon porting Kotlin to native. But porting to .net will have a greater impact, IMHO.

---

<div class="post-metadata">

**Author:** ![geoand](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@geoand](https://discuss.kotlinlang.org/u/geoand)\
**Post date:** [March 15, 2017, 8:22am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/19 "2017-03-15T08:22:23Z")

</div>

It seems like Scala just released a first version of there LLVM compiler infrastructure! See [this](https://www.scala-lang.org/blog/2017/03/14/scala-native-0.1-is-here.html).

Is there anything new from our favorite language on the LLVM front?

---

<div class="post-metadata">

**Author:** ![fvasco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/fvasco/32/1961_2.png) [@fvasco](https://discuss.kotlinlang.org/u/fvasco)\
**Post date:** [March 15, 2017, 9:54am UTC](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875/20 "2017-03-15T09:54:38Z")

</div>

To deduce any decent considerations it is better to await the first stable version, this is valid for any technology.

The 0.1 version is an opportunity to learn, test and contribute to a project at the risk to throw away your code in any moment, same for Kotlin’s experimental features.

Kotlin LLVM is actually undisclosed but I hope that this kind of news don’t cause an hasty job.

By the way: we are interested to LLVM 4 release (with experimental coroutine support)?

[Next page](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875.md?page=2)
