Ark Compiler

Ark Compiler
Developer(s)Huawei
Initial releaseAugust 9, 2019; 5 years ago (2019-08-09)
Written inArkTS, Cangjie, JS, C, C++
Operating systemEMUI (HMS Apk apps), HarmonyOS, OpenHarmony, Oniro OS
PlatformARM, RISC-V, x86, x64, LoongArch, Lingxi[1]
TypeCompiler, Runtime environment, Compiler front end, Toolchain
LicenseMixed: Proprietary (HarmonyOS), Apache License (OpenHarmony, Oniro OS, Android ArkCompiler)

Ark Compiler, also known as ArkCompiler, is a unified compilation and runtime platform that supports joint compilation and running across programming languages and chip platforms, also operating systems of open-source OpenHarmony, Oniro OS, alongside proprietary HarmonyOS with single core system HarmonyOS NEXT included on native APP in Event-driven programming in a unified development environment and formerly built for Android-based EMUI for Huawei smartphones and tablets with HMS-enabled apk apps on AppGallery that improves app performance.[2] It supports a variety of dynamic and static programming languages such as JS, TS, and ArkTS. It is the compilation and runtime base that enables OpenHarmony, Oniro OS alongside HarmonyOS NEXT to run on multiple device forms such as smart devices, mobile phones, PCs, tablets, TVs, automobiles, and wearables. ArkCompiler consists of two parts, compiler toolchain and runtime.[3]

Huawei initially open sourced Ark Compiler for Android platform on GitHub, on September 9, 2019, as they were transitioning away from the operating system via US sanctions.[4] Then the company, open sourced Ark Compiler with OpenArkCompiler as part of the Huawei Ark Compiler open source project (HACOSP) in early February 2022 [5] and ArkJS_runtime, in the previous year in September 2021 after two years of inception in August 2019.[6]

  1. ^ "OpenHarmony 3.0 successfully adapted Loongson 1C300B chip". Huawei Update. December 15, 2021. Retrieved December 15, 2021.
  2. ^ Siddiqui, Aamir (June 22, 2019). "Ark Compiler Explained: How Huawei's App Compiler May Improve Android App Performance". XDA Developers. Retrieved February 12, 2024.
  3. ^ "ArkCompiler Runtime". OpenAtom Gitee. Retrieved February 12, 2024.
  4. ^ Amit (September 9, 2019). "Huawei Ark compiler officially open source from GitHub for self-hosting". Huawei Update. Retrieved February 12, 2024.
  5. ^ Sarkar, Amy (February 9, 2022). "OpenArkCompiler 1.0 launched, Huawei Ark Compiler open source project (HACOSP)". HC Newsroom. Retrieved February 12, 2024.
  6. ^ Mishra, Yash (September 7, 2021). "Ark Compiler JS runtime became open source in Huawei HarmonyOS". HC Newsroom. Retrieved February 12, 2024.