Fundamentals 4 min read

Introducing Huawei's Cangjie Programming Language: Features, Syntax, and Beginner Tutorial

Huawei unveiled its self‑developed Cangjie programming language at the 2024 Developer Conference, detailing its .cj file extension, native‑intelligence features, HarmonyOS integration, and providing a step‑by‑step beginner tutorial covering identifiers, variables, types, expressions, concurrency, and more, with sample code output.

Architecture Digest
Architecture Digest
Architecture Digest
Introducing Huawei's Cangjie Programming Language: Features, Syntax, and Beginner Tutorial

At the Huawei Developer Conference on June 21, 2024, Huawei announced the launch of its self‑developed Cangjie programming language, releasing a developer preview for HarmonyOS NEXT.

The language uses the file suffix .cj and its name derives from the legendary figure Cangjie, the purported creator of Chinese characters.

Its first introductory code prints 你好,仓颉 , demonstrating basic output functionality.

Cangjie is positioned as a next‑generation language for all‑scenario intelligent development, emphasizing native intelligence, cross‑scenario applicability, high performance, and strong security.

The language integrates modern language features, comprehensive compilation optimizations, runtime implementations, and an out‑of‑the‑box IDE toolchain, aiming to provide a friendly development experience and excellent program performance within the HarmonyOS ecosystem.

The tutorial section walks beginners through core concepts such as identifiers, variables, types, expressions, structures, classes, interfaces, concurrency, cross‑language interoperability, macros, and more, illustrated with a series of instructional images.

Reference materials include the official Cangjie programming site, an introductory course, and a white‑paper, all linked for further study.

programming languagetutorialSyntaxCangjieHuawei
Architecture Digest
Written by

Architecture Digest

Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.