Why Ark compiler engage in 10 years? This amazing wave analysis

Yesterday Huawei officially open its ark compiler , for a time aroused heated debate. In the micro-channel group where the Ark of technical experts, JFinal author Zhan Bo for the analysis of Huawei's Ark compiler strategy is stunning.

Zhan Bo initial doubts is why the Ark compiler takes 10 years to achieve :

Decryption depth articles Ark compiled organ network showed the difficulty of making the Ark of the compiler is great. I understand the difficulty is likened to a C ++ compiler to be much much more, otherwise the compiler does not need to build the ark decade.

The difficulty of C ++ than Java complexity is high, why do a Java compiler will do far more C ++ compiler is much higher it?

Ark depth to decrypt the official website of the article did not explain where the core of the difficulty in penetrating.

Depth analysis on the Ark of the compiler, you can view: bye virtual machine, the full depth of decryption Huawei's Ark compiler .

Ark experts do not free to answer his doubts, he, first of all, when the idea of the ark Huawei did not choose C ++, because the domestic eco developers mainly Java / Kotlin based, but Java itself is a dynamic language, if you want to be able to server side to do static compilation, and dynamic capabilities who can not cut the language, you need to IR, operation, modification with the compiler and programming framework. It should also be considered complex compatibility issues, leading to difficulties in the selection of technical solutions .

Secondly, in order to improve fluency, need to improve memory efficiency, improve the efficiency of JNI, you need to find ways to control the dynamic binding effect on performance, the need for more accurate information on the profile, it is difficult on the system engineering .

The industry technology roadmap Kotlin fact, there are native, but on the one hand its streamlined language, on the other hand, with a lot of technical JVM low difficulty, value is also small.

Not busy that, in fact compiled binary is only a technical route, AOT also generate simple binary question the key is how to improve the efficiency of compiled code execution , which is currently the main difficulties. It can be difficult to make a work hard at making the world's top performance . "Oracle, Jetbrains and many overseas companies are trying to do similar, if not a big cattle station ...... our domestic pressure people to do IR design and small memory model, we also do not reuse the compiled program."

After make a point with Houzhan Bo, he believes Huawei has its own IR layer and the Ark, over IR layer can have various existing programming languages ecology and ecological app for Android ; under IR layer can access their own its own operating system and hardware .

He even bluntly "Ark + IR" class strategic nuclear weapons is : "under the control of the ecological situation of the core hardware and software is the comprehensive West, using this strategy, too clever, beyond the height of the market a variety of established ecological discussions. "

Do you think there is no reason Zhan Bo analysis, comments are welcome to explore.

Guess you like

Origin www.oschina.net/news/109511/what-does-ark-mean