


After 5 years of research and development, Huawei's next-generation programming language 'Cangjie” has officially launched its preview
According to news from this site on June 21, at the HDC 2024 Huawei Developer Conference this afternoon, Gong Ti, President of Huawei Terminal BG Software Department, officially announced Huawei’s self-developed Cangjie programming language and released a developer preview of HarmonyOS NEXT Cangjie language. Version. This is the first time Huawei has publicly released the Cangjie programming language.

Gong Ti said: "In 2019, the Cangjie programming language project was born at Huawei. After 5 years of research and development and a lot of R&D investment, it finally meets global developers today. Cangjie programming language adopts modern language features Integration, comprehensive compilation optimization and runtime implementation, and out-of-the-box IDE tool chain support create a friendly development experience and excellent program performance for developers.”
According to reports, Cangjie programming language is a universal programming language. A new generation of scenario-intelligent programming language that focuses on "native intelligence, natural all-scenario, high performance, and strong security." Integrate into the Hongmeng ecosystem to provide developers with a good programming experience.Native intelligenceEmbedded AgentDSL programming framework, organic integration of natural language & programming language; multi-Agent collaboration, simplified symbolic expression, free combination of patterns, supporting the development of various intelligent applications.Cangjie programming language is a modern programming language for all-scenario application development. Its specific features are:Born with full scenariosLightweight and scalable runtime, modular layered design, no matter how small the memory is, it can be installed; full-scenario domain expansion, meta-programming and eDSL technology, supports domain-oriented declarative style development. High performanceThe first fully concurrent GC for terminal scenarios, the application thread is smoother and the response is faster. Lightweight threads, better concurrency performance and less overhead. Strong SecuritySecurity DNA is integrated into the language design to help developers focus on business logic and avoid investing too much energy in defensive programming. Coding is safe, and vulnerabilities are nowhere to be hidden.
Efficient programming: Cangjie is a multi-paradigm programming language that supports functional programming , imperative and object-oriented paradigms, including features such as 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 annotation on developers; various syntax sugar and macro capabilities built into the language support developers to quickly develop domain-specific languages (DSL) and build domain abstractions based on Cangjie . Safe and reliable: As a modern programming language, Cangjie pursues coding as safety, and ensures the type safety and null safety of the program through static type system and automatic memory management. At the same time, Cangjie also provides various runtime checks, Including array subscript out-of-bounds check, type conversion check, numerical calculation overflow check, and string encoding legality check, etc., which can promptly detect errors in program operation; in addition, code scanning tools, obfuscation tools, and sterilizers are also used to further provide Support for cross-language interoperability security and code asset protection. Easy concurrency: Cangjie language implements lightweight user-space threads and concurrent object libraries, using the user-space thread model. Each Cangjie thread is an extremely lightweight execution entity, with an independent execution context but shared memory. For developers, the use of user-mode threads is consistent with the use of traditional system threads and does not bring additional burdens; from a running-state perspective, thread management is completed by the runtime and does not rely on the thread management of the operating system. , so thread creation, scheduling, and destruction operations are more efficient and occupy less resources than system threads. In order to avoid data competition, Cangjie language provides a concurrent object library. The methods of concurrent objects are thread-safe, so calling these methods in multi-threads is no different from serial programming. Developers of application logic do not need to worry about concurrency management. For some core libraries, Cangjie also provides lock-free or fine-grained lock algorithm implementations, which can further reduce thread blocking and improve concurrency.Excellent performance:
The Cangjie compiler and runtime optimize compilation from the full stack, including the compiler front-end based on CHIR (Cangjie HighLevel IR) high-level compilation optimization (such as semantic-aware loop optimization, semantic-aware back-end collaborative optimization, etc. ), back-end-based compilation optimization (such as SLP vectorization, Intrinsic optimization, InlineCache, inter-procedural pointer optimization, Barrier optimization, etc.), runtime-based optimization (such as lightweight locks, distributed marking, concurrent tracing optimization, etc.).
In addition, Cangjie language has a native lightweight design for the runtime. Through the modular and hierarchical design of the runtime, it defines the Cangjie public object model and the common basic components of the runtime. Based on the public object model, it implements runtime memory management and recall. Basic capabilities such as stack, exception handling, and cross-language calling significantly reduce redundant object design among multiple capabilities and streamline runtime volume. At the same time, through the on-demand loading technology of packages, the memory overhead of redundant packages started by Cangjie applications is reduced. Therefore, for resource-sensitive devices, it takes up less resources and is more friendly to support.
In addition, Cangjie also supports a series of tool chains for application development, including language services (highlighting, association), debugging (cross-language debugging, thread-level visual debugging), static inspection, performance analysis, and package management , document generation, Mock tools, testing frameworks, coverage tools, Fuzz tools and intelligent auxiliary programming tools.

Huawei HarmonyOS NEXT Cangjie Language Developer Preview Beta is now officially open for recruitment. Interested friends of this site can sign up to experience it:
https://developer.huawei.com/consumer/cn /activityDetail/cangjie-beta/
Huawei HDC 2024 Developer Conference Special Topic
The above is the detailed content of After 5 years of research and development, Huawei's next-generation programming language 'Cangjie” has officially launched its preview. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

According to news from this site on June 24, at the keynote speech of the HDC2024 Huawei Developer Conference on June 21, Gong Ti, President of Huawei Terminal BG Software Department, officially announced Huawei’s self-developed Cangjie programming language. This language has been developed for 5 years and is now available for developer preview. Huawei's official developer website has now launched the official introductory tutorial video of Cangjie programming language to facilitate developers to get started and understand it. This tutorial will take users to experience Cangjie, learn Cangjie, and apply Cangjie, including using Cangjie language to estimate pi, calculate the stem and branch rules for each month of 2024, see N ways of expressing binary trees in Cangjie language, and use enumeration types to implement Algebraic calculations, signal system simulation using interfaces and extensions, and new syntax using Cangjie macros, etc. This site has tutorial access address: ht

This site reported on June 21 that at the HDC2024 Huawei Developer Conference this afternoon, Gong Ti, President of Huawei Terminal BG Software Department, officially announced Huawei’s self-developed Cangjie programming language and released a developer preview version of HarmonyOSNEXT Cangjie language. This is the first time Huawei has publicly released the Cangjie programming language. Gong Ti said: "In 2019, the Cangjie programming language project was born at Huawei. After 5 years of R&D accumulation and heavy R&D investment, it finally meets global developers today. Cangjie programming language integrates modern language features, comprehensive compilation optimization and Runtime implementation and out-of-the-box IDE tool chain support create a friendly development experience and excellent program performance for developers. "According to reports, Cangjie programming language is an all-scenario intelligence tool.

According to news from this site on June 21, Huawei’s self-developed Cangjie programming language was officially unveiled today, and the official announced the launch of HarmonyOSNEXT Cangjie language developer preview version Beta recruitment. This upgrade is an early adopter upgrade to the developer preview version, which provides Cangjie language SDK, developer guides and related DevEcoStudio plug-ins for developers to use Cangjie language to develop, debug and run HarmonyOSNext applications. Registration period: June 21, 2024 - October 21, 2024 Application requirements: This HarmonyOSNEXT Cangjie Language Developer Preview Beta recruitment event is only open to the following developers: 1) Real names have been completed in the Huawei Developer Alliance Certification; 2) Complete H

According to news from this site on June 22, Huawei yesterday introduced Huawei’s self-developed programming language-Cangjie to developers around the world. This is the first public appearance of Cangjie programming language. According to inquiries on this site, Tianjin University and Beijing University of Aeronautics and Astronautics were deeply involved in the research and development of Huawei’s “Cangjie”. Tianjin University: Cangjie Programming Language Compiler The software engineering team of the Department of Intelligence and Computing of Tianjin University joined hands with the Huawei Cangjie team to deeply participate in the quality assurance research of the Cangjie programming language compiler. According to reports, the Cangjie compiler is the basic software that is symbiotic with the Cangjie programming language. In the preparatory stage of the Cangjie programming language, a high-quality compiler that matches it became one of the core goals. As the Cangjie programming language evolves, the Cangjie compiler is constantly being upgraded and improved. In the past five years, Tianjin University

According to news from this site on June 21, at the Huawei HDC2024 Developer Conference held today, Huawei Managing Director and Huawei Cloud CEO Zhang Pingan announced that Pangu Large Model 5.0 was officially released, achieving full series, multi-modal, and strong thinking. upgrade. Full series: Pangu Large Model 5.0 includes models with different parameter specifications to adapt to different business scenarios. Multi-modality: Pangu Large Model 5.0 can better and more accurately understand the physical world, including text, pictures, videos, radar, infrared, remote sensing and other modalities. In terms of generation, Pangu 5.0 can generate multi-modal content that conforms to the laws of the physical world, allowing innovation to be arbitrary. Strong thinking: Complex logical reasoning is the key for large models to become industry assistants. Pangu Large Model 5.0 combines thinking chain technology and strategy

According to news from this site on June 21, before the HDC2024 Huawei Developer Conference, Huawei’s self-developed Cangjie programming language was officially unveiled, and the Cangjie official website is now online. The official website introduction shows that Cangjie programming language is a new generation programming language for all-scenario intelligence, focusing on "native intelligence, natural all-scenarios, high performance, and strong security." Integrate into the Hongmeng ecosystem to provide developers with a good programming experience. The official website attached to this site introduces as follows: Native intelligent programming framework embedded with AgentDSL, organic integration of natural language & programming language; multi-Agent collaboration, simplified symbolic expression, free combination of patterns, supporting the development of various intelligent applications. Innately lightweight and scalable runtime for all scenes, modular layered design, no matter how small the memory is, it can be accommodated; all-scenario domain expansion

A comparison of the advantages and disadvantages of C++ with other modern programming languages is: C++ advantages: high performance, low-level control, rich library ecosystem. C++ disadvantages: steep learning curve, manual memory management, limited portability. Python advantages: smooth learning curve, extensive library support, interpreted language. Advantages of Java: platform independent, automatic memory management, wide application. Advantages of JavaScript: essential for front-end development, lightweight, dynamic type.

Recently, many friends have asked the editor what to do if the Microsoft Edge browser does not display images. Next, let us learn how to solve the problem of Microsoft Edge browser not displaying images. I hope it can help everyone. 1. First click on the lower left corner to start, and right-click on "Microsoft Edge Browser", as shown in the figure below. 2. Then select "More" and click "App Settings", as shown in the figure below. 3. Then scroll down to find "Pictures", as shown in the picture below. 4. Finally, turn on the switch below the picture, as shown in the picture below. The above is all the content that the editor brings to you on what to do if the Microsoft Edge browser does not display pictures. I hope it can be helpful to you.
