Passionategeekz On June 22, Huawei has now launched the “HongmengProgramming Language White Paper” V1.0 version, mainly focusing on Hongmeng Harmonyos The overall framework, applicable scenarios, evolution strategies, and future vision are explained in four major angles. Passionategeekz has a document access address (https://developer.huawei.com/consumer/cn/doc/guidebook/programming-language-0000002323920052)。
In terms of overall framework, Hongmeng supports three programming languages: ArkTS, Cangjie and C/C++.Among them, ArkTS is a dynamic type programming language, based on TypeScriptwith the characteristics of easy learning and easy to use, rich ecological and other qualities, suitable for efficient development scenarios;Cangjie is a static type programming languagehas high performance, strong security, cross-platform features, and is suitable for scenarios with high performance and security requirements; C/C++ is suitable for specific scenarios such as high performance computing, hardware acceleration, etc., and can be packaged as ArkTS and Cangjie extension modules through cross-language interoperability.
The official introduction to the interoperability of the corresponding languages, where ArkTS and C/C++ achieve interoperability through Node-API; Cangjie and C language realize inter-call function calls and cross-language data conversion; Cangjie and ArkTS achieve data conversion and function calls through inter-operation library.
In terms of applicable scenarios, ArkTS is compatible with TS efficient syntax, provides rich basic libraries and concurrency capabilities, supports declarative UI development, and can inherit the TS/JS language ecosystem. Its compilation runtime supports hybrid execution mode, optimizes module loading mechanism, provides an efficient concurrent programming model, and introduces features such as type systems at the language level, as well as providing additional security mechanisms during compilation toolchain and runtime.
Cangjie is based on static typing and static compilation optimization technology, and mainly uses static typing systems, automatic memory management, etc. to ensure program security. Supports static compilation to machine codes of different OS platforms, realizes cross-OS platform code sharing, supports multiple operating system platforms,It also provides technologies such as appearance obfuscation, data obfuscation, control flow obfuscation to ensure technical asset protection。
In terms of evolution strategies, Huawei will further define and improve the corresponding programming language specifications in the future, provide compiler implementation based on language specifications, introduce type information to optimize runtime performance, and at the same time deepen the integration with AI technology to promote the application of corresponding languages in more fields.
Advertising statement: The external redirect links (including, not limited to, hyperlinks, QR codes, passwords, etc.) contained in the article are used to convey more information and save selection time. The results are for reference only. All articles from Passionategeekz include this statement.
Discover more from PassionateGeekz
Subscribe to get the latest posts sent to your email.