Huawei: Cangjie Programming Language is Autonomous and Controllable, Not Based on Any Existing Programming Language Evolution

Huawei’s self-developed Cangjie programming language has officially been unveiled today and has launched the HarmonyOS NEXT Cangjie Language Developer Preview Beta Recruitment.

The Q&A page for the Cangjie programming language indicates that Cangjie is a next-generation application programming language designed for all-scenario intelligence, focusing on native intelligence, inherent all-scenario capabilities, high performance, and strong security, providing a good programming experience when combined with the HarmonyOS system.

For different business scenarios, the HarmonyOS ecosystem offers application developers the ability to develop in multiple languages, including Cangjie and ArkTS. Cangjie and ArkTS complement each other and form a mutually reinforcing relationship within the HarmonyOS ecosystem. Cangjie is more suitable for business scenarios that require high performance and concurrency. The goal of the Cangjie programming language is to create a competitive edge for HarmonyOS applications in typical scenarios such as task parallelism, data parallelism, high-frequency data interaction, and high memory consumption. Additionally, for future HarmonyOS AI native application development, Cangjie provides a full set of embedded Agent DSL programming frameworks for developers, facilitating efficient completion of HarmonyOS AI native application development.

The name Cangjie comes from the “Cangjie Invention of Characters.” The Xunzi・Jiebi states: “Many people love writing, but only Cangjie’s is uniquely passed down.” The name also represents the team’s hopes for the Cangjie programming language, wishing it to be loved by a wide range of developers and widely circulated. Cangjie is said to have “dragon-like features and four eyes, born with wisdom and virtue.” As the leader of a small tribe, he is also known as Emperor Cang. In historical legends, Cangjie is considered the creator of ancient Chinese pictographic characters. He played a significant role in the creation of Chinese characters and is revered as the “sage of character creation.”

Huawei states that the Cangjie programming language is a programming language designed and implemented by Huawei for all-scenario intelligence. From the formulation of the language specification to the realization and future language community, it will be autonomous and controllable, and the language is not based on any existing programming language evolution.

Applications already developed do not need to be redeveloped in the Cangjie version. The HarmonyOS operating system supports high-performance interoperability between the Cangjie language and the ArkTS language. In the future, developers can, based on the business scenario needs, choose to use the Cangjie programming language or ArkTS for incremental development for new business parts, depending on the specific scenario. It is recommended to prioritize the Cangjie language for scenarios with high throughput/high-frequency read-write data processing, high-frequency interaction high-load scenarios, and scenarios sensitive to startup latency.

In the future, the Cangjie language will establish the Cangjie community and gradually build an open-source community. Currently, some Huawei-developed applications have started to develop new business based on Cangjie, and some external partner users (such as the ICBC App and LeetCode App) have also begun to use the Cangjie language for development. In 2024, best development practices and cases will be provided for developers to reference.