Connect with us

Huawei

Huawei Cangjie Programming language officially introduced: check details 

Published

on

Huawei Cangjie programming launguage

Huawei recently introduced the Cangjie programming language on its official website, it is a new gen of programming language for all scenario intelligence, featuring native intelligence, natural all-scenarios, high performance, and strong security.

One more thing that makes it special and valuable is that it integrates with the HarmonyOS ecosystem to provide developers with good programming. Its agenda is

Join us on Telegram

  • Native intelligence
  • Born full scene
  • High performance
  • Strong security 

Below you can check the official documentary:

With the advent of the Internet of Everything and the intelligent era, the form of software will undergo tremendous changes. On the one hand, the fields of mobile applications and mobile Internet still strongly drive innovations in the directions of human-computer interaction, device collaboration, intelligence, and security.

On the other hand, artificial intelligence also drives the evolution of software towards intelligence, cloud collaboration, and other directions. The development of application software under new technologies and new scenarios has raised new demands and challenges for programming languages.

As a modern programming language for full-scenario application development, Cangjie programming language creates a friendly development experience and excellent program performance for developers through the integration of modern language features, comprehensive compilation optimization and runtime implementation, and a ready-to-use IDE. tool chain holder. Its specific characteristics are the following:

Huawei Cangjie programming launguage

Efficient programming: For application development, we hope that the language will be easy to learn and use, reduce the entry threshold for developers and mental load during the development process, support various development paradigms and common programming modes, and allow developers express various business logics concisely and efficiently.

Cangjie is a multi-paradigm programming language that supports multiple paradigms such as functional, imperative, and object-oriented, including value types, classes and interfaces, generics, algebraic data types, pattern matching, and higher-order functions.

In addition, Cangjie also supports type inference, which can reduce the burden of type annotations on developers; through a series of concise and efficient syntaxes, it can reduce redundant writing and improve development efficiency.

The various syntax sugars and macro capabilities built into the language help developers quickly develop Cangjie-based domain-specific languages ​​(DSLs) and create domain abstractions.

Safe and reliable: As a modern programming language, Cangjie pursues coding security and ensures type safety and program memory safety such as null safety through static type systems and automatic memory management.

At the same time, Cangjie also provides various runtime checks, including array subscript out-of-bounds checks, type conversion checks, numerical calculation overflow checks, and string encoding legality checks, which can quickly detect errors. in the operation of the program;

Additionally, it also provides multi-language interoperability security and code asset protection support through code scanning tools, obfuscation tools, and sanitizers.

Easy concurrency: Concurrent and asynchronous programming can effectively improve processor utilization and ensure the response speed of programs in interactive applications, which are essential capabilities in application development.

The Cangjie language implements lightweight user-mode threading and concurrent object libraries, facilitating efficient concurrency. The Cangjie language adopts the user-mode threading model. Each Cangjie thread is an extremely lightweight execution entity with independent execution context but shared memory.

For developers, the use of user-mode threads is consistent with the use of traditional system threads, without imposing additional burden; From the perspective of execution state, thread management is completed by runtime and does not depend on thread management of the operating system. Therefore, thread creation, scheduling, and destruction operations are more efficient and occupy fewer resources than system threads.

In order to avoid data competition, the Cangjie language provides a concurrent object library. Concurrent object methods are thread-safe. Therefore, calling these methods in multiple threads is no different from serial programming.

Application logic developers do not need to pay special attention to concurrent management. For some core libraries, Cangjie also provides implementations of fine-grained or lock-free locking algorithms, which can further reduce thread blocking and improve concurrency.

Source: Huawei officials 

Shizuka is a developer, she is the creative mind behind most latest news and update blogs. She likes to listen to classical songs and dance. She used to live a very simple and dedicated life toward animals and poor people, she has her own animal welfare organization in the country.