- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 231字
- 2021-07-02 21:50:10
Go native strategy
The Kotlin developers figured that the same strategy that is used on the JVM platform could be used on other platforms too. Consider the following illustration:

On no platform does Kotlin disrupt the platform's existing technology:
- The JVM works with the Java bytecode and Kotlin gives an alternative to Java to generate the same bytecode (By no means is Kotlin the first alternative as there are already 200+ languages that work with JVM, but it is the most elegant one for all the reasons that we have seen previously).
- On modern browsers where JavaScript is the de facto standard, Kotlin can work by transpiling to JavaScript. Again, this means that Kotlin is friendly with existing browsers without making any special effort.
- On the Node.js platform where JavaScript is used on the server side, your Kotlin code transpiles into JavaScript, and hence there are no changes needed in the Node.js framework for Kotlin to run.
- In a similar way, Kotlin/Native plans to work with other technologies in a native way. As we will see in Chapter 7, CSV Reader in Kotlin Native, Kotlin/Native will be used to generate Native code.
Since the platform's technology is not disrupted, there are zero changes needed at the platform level to adopt Kotlin. Kotlin's compatibility with a given platform can be taken for granted from day one. This eliminates a big business risk.
推薦閱讀
- Rust編程:入門、實戰與進階
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- Python計算機視覺編程
- 秒懂設計模式
- Mastering LibGDX Game Development
- Learning AndEngine
- 手把手教你學C語言
- Python機器學習算法與實戰
- D3.js 4.x Data Visualization(Third Edition)
- RabbitMQ Essentials
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- Android應用案例開發大全(第二版)
- Julia 1.0 Programming Complete Reference Guide
- Qlik Sense? Cookbook
- Python預測分析實戰