首页|期刊导航|Journal of Computer Science & Technology|An Overview of Cangjie Programming Language

An Overview of Cangjie Programming LanguageOA

中文摘要

Cangjie is a modern programming language designed for application-level software development.It is statically typed and statically compiled,utilizing a tracing garbage collector(GC)for automated memory management.The language’s design strives to balance simplicity,safety,extensibility,and performance.Cangjie supports multi-paradigm programming with a concise syntax.With a strong emphasis on extensibility,it features type extension,macro programming,and a simple,efficient C Foreign Function Interfaces(C-FFI).The compiler frontend leverages modern techniques to support robust type inference and introduces a language-specific high-level intermediate representation,Cangjie high-level intermediate representation(CHIR),to facilitate efficient analysis and semantics-aware optimization.Additionally,the language runtime and LLVM-based backend implement lightweight user-mode threads and a concurrent compacting GC.The standard LLVM backend has been extended with GC-specific intrinsics and custom compilation passes for Cangjie-specific optimizations.Preliminary experimental results demonstrate that Cangjie achieves performance competitive with other application-level languages.

Xin-Yu Feng;Rong-Xiao Fu;Lei Shi;Le Tu;Yong-Yong Yang

State Key Laboratory of Novel Software Technology,Nanjing University,Nanjing 210023,China Huawei Central Software Institute,Hangzhou 310000,ChinaHuawei Central Software Institute,Hangzhou 310000,ChinaHuawei Central Software Institute,Hangzhou 310000,ChinaHuawei Central Software Institute,Hangzhou 310000,ChinaHuawei Central Software Institute,Hangzhou 310000,China

信息技术与安全科学

programming language design and implementationmulti-paradigm programminghigh-level intermediate representationcompiler optimizationlanguage runtime

《Journal of Computer Science & Technology》 2026 (1)

P.217-244,28

10.1007/s11390-025-5978-7

评论