![]() So if we do not want to write directly using JavaScript we still have to transpile to JavaScript because that is the only language available on the browser. To support development on the browser we have to use JavaScript. Two examples are: the browser and embedded systems. The problem is that there are also specific environments that cannot be supported by a virtual machine because of their constraints. This is the approach that Kotlin adopts by running on the JVM, which in turns can run almost everywhere. So the existing compiler and/or virtual machines can be reused. The language you write is compiled or transpiled to a different language. Some languages saves development costs relying on a existing intermediate language or platform. How Kotlin Supports Multiple Environments You will probably try to use it everywhere. ![]() This expression is quite useful and a good example of the pragmatic approach of Kotlin. We are also going to learn and use the awesome when expression of Kotlin. We are going to see the simplest way to setup a project that use existing JavaScript libraries. This article is a tutorial and introduction to run Kotlin on the browser, by compiling Kotlin to JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |