Huawei’s self developed programming language Cangjie (CJ) could be coming later this month closer than expected

Getting your Trinity Audio player ready...

Cangjie language adapted in OpenHarmony recently as of April 27, 2024 where the engineers at Huawei added the Cangjie language to the open source via the added ffi bridge layer code to support Cangjie calling the ffi interface as mentioned in earlier article here.

A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call routines or make use of services written or compiled in another one. OpenHarmony and HarmonyOS NEXT getting it’s own version of C++, Cangjie, the most speculated programming language out of Huawei since 2020. This will play a role in the compiler, the runtime of Ark and the integrated development environment of DevEco Studio.

    Earlier this week I have been exploring the OpenHarmony source code in finding clues around Cangjie with CJ acronym being popped up on the “issues” sections of Gitee website where OpenHarmony main branch source code is officially hosted at, with the CJ Ability Stage, the main functions for OpenHarmony and HarmonyOS app development taking shape for developers to take advantage very sooner than we think as preparation for the SDK comes into play by next week on May 25th when OpenHarmony 5.0 Beta 1 comes out before HarmonyOS NEXT Beta in the following month, in June 21-23 2024 period at HDC with the critical keynote on the first day.

    This is interesting development, because it is part of the ecosystem of OpenHarmony, which aims to provide a unified framework for developing applications across different devices. The Ability part in the context of OpenHarmony is the smallest unit of an application that represents a functional component that can be independently scheduled and managed with Page Ability where you have these abilities as user interface and provide interactive capabilities for users. They are also responsible for displaying content and handling user interactions. With Service Ability, these abilities do not have a UI but provide background services. They can be used for tasks such as data processing, communication, or other non-UI components.

    You have other issues, issued on the OpenHarmony source code as Cangjie is shaping up the whole system around CJ Ability, the CJ base, ArkTS-CJ connectivity support to fill in the gaps and communicate with the main language as Cangjie takes the backend of the ArkTS applications with native components similar to how C, C++ functions in Native API which is an acronym for NAPI. These are interesting developments as time gets closer to these two critical events one from OpenAtom OpenHarmony event which begins on May 25th and HDC 2024, in the following month, on June 21-23 2024 dates.

    Another core component of CJ component base framework, this shows significant milestones as Cangjie (CJ) is coming out of completed development for mainstream commercial users for developers outside of Huawei’s domain as Huawei has inserted self development programming language into it’s newer evolving HarmonyOS NEXT system stack and later upgrades of OpenHarmony such as upcoming version 5.0.

    Source: Twitter/X and Weibo