Cangjie (CJ) is a new open-source, statically typed, compiled general-purpose language developed at Huawei's Edinburgh Research Centre. It targets the same space as Java, Kotlin, and Swift, compiling to native machine code across Linux, macOS, Windows, Android, iOS, and HarmonyOS. Its standout academic feature is native support for effect handlers, which generalize exceptions and enable dynamic binding through new `perform` and `resume` keywords. Effect handlers can model nondeterminism, scheduling, memoization, dependency injection, and logging without requiring complex boilerplate. The language also supports algebraic data types, pattern matching, concurrent garbage collection, and metaprogramming. Cangjie is already taught at 80+ universities in China, though effect handlers remain experimental.
Sort: