# Generating native binaries indirectly with transpiler

**URL:** <https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085>\
**Category:** Uncategorized\
**Created:** [November 8, 2016, 7:05pm UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085 "2016-11-08T19:05:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkc](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@pkc](https://discuss.kotlinlang.org/u/pkc)\
**Post date:** [November 8, 2016, 7:05pm UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085/1 "2016-11-08T19:05:06Z")

</div>

In the early days of of Scala there was .NET support in addition to Java. Is it feasible to use the transpiler work done with javascript to implement targeting golang? Attempts at creating native binaries for java never panned out so I’m wondering if transpiling to golang is feasible both technically and from the licensing perspective. This may be wishful thinking but I would love to use one language for everything and sometimes creating a native binary is a requirement. Using the go language tool chain is a modern way to create executables with garbage collection.

---

<div class="post-metadata">

**Author:** ![elizarov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/elizarov/32/2164_2.png) [@elizarov](https://discuss.kotlinlang.org/u/elizarov)\
**Post date:** [November 8, 2016, 7:39pm UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085/2 "2016-11-08T19:39:29Z")

</div>

I’d recommend to consider waiting for Kotlin Native, see [Question concerning Kotlin native](https://discuss.kotlinlang.org/t/question-concerning-kotlin-native/1875) for some details.

---

<div class="post-metadata">

**Author:** ![pkc](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@pkc](https://discuss.kotlinlang.org/u/pkc)\
**Post date:** [November 8, 2016, 9:14pm UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085/3 "2016-11-08T21:14:54Z")

</div>

Kotlin native sounds good if it can get started soon. Golang is slowly gaining momentum even though it is far from elegant.

---

<div class="post-metadata">

**Author:** ![elizarov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/elizarov/32/2164_2.png) [@elizarov](https://discuss.kotlinlang.org/u/elizarov)\
**Post date:** [November 9, 2016, 8:56am UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085/4 "2016-11-09T08:56:42Z")

</div>

It would be extremely helpful if you could find some time and elaborate in this thread your use-cases and motivation for native binaries and how existing solutions in JVM world like Java Packager Tool and Excelsior Jet do not address your needs. It would be really appreciated.

---

<div class="post-metadata">

**Author:** ![pkc](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@pkc](https://discuss.kotlinlang.org/u/pkc)\
**Post date:** [November 9, 2016, 2:36pm UTC](https://discuss.kotlinlang.org/t/generating-native-binaries-indirectly-with-transpiler/2085/5 "2016-11-09T14:36:06Z")

</div>

Writing Nagios or Icinga2 stateless plugins that do quick tasks and exit is not practical with a JVM since they get launched so frequently. Also when writing utilities that do specific one-time tasks remotely via Ansible or Puppet, sometimes it is faster and more secure to push a binary over ssh rather than a script or utility app requiring a specific version of Java, Groovy, Python, etc…

I have never used Excelsior but can say devops people usually have little say in purchasing third party software for one-off projects so they are much more inclined to find a free opensource solution.

Seems the [Docker team motivations](https://www.quora.com/Why-was-Docker-written-in-Go) for choosing Go would also apply to Kotlin native. Of course Kotlin would have to be better than Go in a lot of ways to get traction since everyone likes to jump on the Google bandwagon.
