Why engage in 10 years? Ark compiler expert First Response

Yesterday Huawei officially open its ark compiler , for a time aroused heated debate. In the micro-channel group where the Ark of technical experts, the question of why the need to develop a 10-year ark was first to respond.

JFinal author Zhan Bo wondering 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 .

不闲表示,其实二进制编译也只是一种技术路线,简单的 AOT 也是生成二进制,问题的关键是如何提升编译后的代码执行效率,这是当前的主要困难。做出一个可以工作的不难,难在做出世界顶尖性能。“甲骨文、Jetbrains 等很多海外公司都在做类似尝试,如果不是有大牛压台……我们国内能做 IR 设计和内存模型的人很少,大家也都不再用汇编编程了。”

欢迎留言探讨。

Guess you like

Origin www.oschina.net/news/109512/why-10-years-arkcompiler