Introducing ArkTS, Huawei’s Next-Generation Development Language

Lobsters Hottest Tools

Summary

Huawei introduces ArkTS, a next-generation development language built on TypeScript with mandatory static types and optimizations for HarmonyOS, aiming to improve performance, security, and developer experience for mobile app development.

<p><a href="https://lobste.rs/s/ae6wd0/introducing_arkts_huawei_s_next">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 05/21/26, 08:18 PM

# Introducing ArkTS, Huawei’s Next-Generation Development Language Source: [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7) [Read the original article:Introducing ArkTS, Huawei’s Next\-Generation Development Language](https://forums.developer.huawei.com/forumPortal/en/topic/0203190033426165054?fid=0102647487706140266?ha_source=dev-shequ&ha_sourceId=89000192) [![](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgabbvg6jiq96kzlh0xoi.png)](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgabbvg6jiq96kzlh0xoi.png) Hello, in this article, I will introduce Huawei’s next\-generation development language, ArkTS, and we will discuss the innovations it offers and how it enhances the developer experience\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#introduction](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#introduction)Introduction Huawei continues to revolutionize not only hardware but also the software ecosystem\. With its own operating system HarmonyOS Next, Huawei offers a powerful alternative in the mobile technology world, and with the new programming language ArkTS, it elevates the process of software development, making it more efficient, secure, and modern\. Built on the foundations of TypeScript, ArkTS provides developers with a familiar syntax while introducing additional features and optimizations tailored to the needs of HarmonyOS\. In this article, we will explore the core differences of ArkTS and Huawei’s vision for app development with examples\. [![](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9m45sevorbb71uaj349.png)](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9m45sevorbb71uaj349.png) ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#why-did-huawei-develop-arkts](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#why-did-huawei-develop-arkts)Why Did Huawei Develop ArkTS? Huawei is not just pushing the boundaries in hardware but also ensuring seamless integration of software with its HarmonyOS, enhancing the interconnectedness between devices\. To achieve this vision, achieving the highest standards in performance, security, and sustainability is essential\. This is where ArkTS shines as a high\-performance, optimized language for building applications on HarmonyOS\. ArkTS is not just a programming language; it is a representation of Huawei’s new approach to software engineering\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#arkts-vs-typescript-key-differences](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#arkts-vs-typescript-key-differences)ArkTS vs\. TypeScript: Key Differences While ArkTS offers a syntax similar to TypeScript, it stands out with its mobile app optimizations and a more performance\-focused structure: ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#mandatory-static-types](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#mandatory-static-types)Mandatory Static Types In TypeScript, type annotations are optional, but in ArkTS, they are mandatory\. This ensures more stable and secure applications by catching errors during compile time\. ``` // TypeScript let name = "Huawei"; // TypeScript infers 'name' as type string name = 123; //Error in strict mode: "Type 'number' is not assignable to type 'string'" // ArkTS let name: string = "Huawei"; // Type must be explicitly declared name = 123; // Compilation error: "Type 'number' is not assignable to type 'string'" ``` Enter fullscreen modeExit fullscreen mode Unlike TypeScript, which allows structural typing \(accepting different types as long as they have the same properties\), ArkTS does not support this feature\. This strengthens type safety and ensures clearer, more predictable behavior\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#object-memory-layout-is-immutable](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#object-memory-layout-is-immutable)Object Memory Layout is Immutable ArkTS does not allow changes to the object memory layout at runtime\. This decision ensures better performance and more predictable behavior, particularly in memory\-intensive operations\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#operator-semantics-are-restricted](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#operator-semantics-are-restricted)Operator Semantics Are Restricted For example, the “\+” operator in ArkTS can only be used with numbers, requiring specific methods for string concatenation\. This makes the language more explicit and predictable in its behavior\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#arkts-and-arkui-strong-ui-integration](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#arkts-and-arkui-strong-ui-integration)ArkTS and ArkUI: Strong UI Integration Huawei doesn’t position ArkTS merely as a backend language; instead, it integrates deeply with ArkUI, the declarative UI framework of HarmonyOS\. This integration enables developers to create interactive, component\-based UIs with ease\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#declarative-ui-development](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#declarative-ui-development)Declarative UI Development ``` @Component struct HelloWorld { @State message: string = "Hello ArkTS!" build() { Column() { Text(this.message) .fontSize(20) .onClick(() => { this.message = "Clicked!"; }) } .width('100%') .height('100%') } } ``` Enter fullscreen modeExit fullscreen mode ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#state-management-state-prop-link](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#state-management-state-prop-link)State Management: @State,[@prop](https://dev.to/prop),[@link](https://dev.to/link) ``` @Component struct ParentComponent { @State parentMessage: string = "Parent Component Message" build() { Column() { ChildComponent({ childMessage: this.parentMessage }) Button("Change Message") .onClick(() => { this.parentMessage = "New Message!"; }) } } } @Component struct ChildComponent { @Prop childMessage: string build() { Text(this.childMessage) } } ``` Enter fullscreen modeExit fullscreen mode ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#dynamic-ui-conditional-rendering-and-lists](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#dynamic-ui-conditional-rendering-and-lists)Dynamic UI: Conditional Rendering and Lists ``` @Component struct UserList { @State users: string[] = ["Ali", "Ayşe", "Mehmet"] build() { List() { ForEach(this.users, (user: string) => { ListItem() { Text(user) } }) } } } ``` Enter fullscreen modeExit fullscreen mode ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#compatibility-with-javascript-and-typescript](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#compatibility-with-javascript-and-typescript)Compatibility with JavaScript and TypeScript Thanks to Huawei's developer\-friendly approach, you can easily integrate existing JavaScript/TypeScript modules within ArkTS\. ``` // utils.js export function add(a, b) { return a + b; } // Usage in ArkTS import { add } from './utils'; let result = add(5, 3); // 8 ``` Enter fullscreen modeExit fullscreen mode ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#a-new-era-of-development-with-huawei](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#a-new-era-of-development-with-huawei)A New Era of Development with Huawei Huawei is transforming the world of software development with HarmonyOS, and ArkTS stands at the heart of this transformation\. It offers a powerful, high\-performance tool tailored to modern development needs while maintaining the core advantages of TypeScript\. If you’re already familiar with TypeScript, transitioning to ArkTS will be a seamless process\. However, ArkTS’s strict type controls, performance optimizations, strong UI integration, and security advantages provide a whole new level of development experience\. **Joining the growing HarmonyOS ecosystem with Huawei is not just about staying ahead; it’s about investing in the future of technology\.** 📚 For more information, visit the Huawei Developer portal\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#result](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#result)Result With ArkTS, Huawei is not just introducing a new programming language — it is empowering developers to build more robust, high\-performance, and secure applications\. Built on top of TypeScript, ArkTS enhances the development process with strict type rules, restricted and predictable behaviors, and a focus on performance and reliability\. Its deep integration with ArkUI enables developers to build user interfaces more easily and effectively, making it a powerful tool especially for those working within the HarmonyOS ecosystem\. Prioritizing developer experience, ArkTS represents a modern approach to software engineering\. If you are already familiar with TypeScript, transitioning to ArkTS will be smooth — but with the innovations ArkTS offers, your development process will reach a whole new level of quality\. Joining Huawei’s HarmonyOS vision means not just keeping up with today’s technology, but investing in the future\. ## [https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#references](https://dev.to/harmonyos/introducing-arkts-huaweis-next-generation-development-language-jg7#references)References [Getting Started with ArkTS](https://developer.huawei.com/consumer/en/doc/harmonyos-guides/arkts-get-started?source=post_page-----a79b9c87e6c0---------------------------------------) [Learning ArkTS](https://developer.huawei.com/consumer/en/doc/harmonyos-guides/introduction-to-arkts?source=post_page-----a79b9c87e6c0---------------------------------------) [ArkTS Coding Style Guide](https://developer.huawei.com/consumer/en/doc/harmonyos-guides/arkts-coding-style-guide?source=post_page-----a79b9c87e6c0---------------------------------------) [https://forums\.developer\.huawei\.com/forumPortal/en/topic/0203190033426165054?fid=0102647487706140266](https://forums.developer.huawei.com/forumPortal/en/topic/0203190033426165054?fid=0102647487706140266) Written by Baris Tuzemen

Similar Articles

Tsrs: A Port of TypeScript to Rust

Hacker News Top

Cloudflare and VoidZero team up with Max Schwenk to incubate tsrs, a faithful Rust port of the TypeScript compiler within the Oxc toolchain, claiming up to 8x faster speeds and ~70% less memory than TypeScript 7.0 while leaving language design fully under the TypeScript team's control.

tile-ai/tilelang

GitHub Trending (daily)

TileLang is an open-source domain-specific language and compiler built on TVM for writing high-performance GPU/CPU/NPU kernels such as GEMM and FlashAttention, with recent additions including Huawei Ascend 950 support, an LSP, and multi-backend dialects for CUDA, ROCm, and Metal.

Why Is Every AI Agent Written in TypeScript?

Reddit r/AI_Agents

The article explores why TypeScript has become the dominant language for building AI agents and agent frameworks, questioning why alternatives like Rust or C++ aren't more prevalent.

microsoft/TypeScript

GitHub Trending (daily)

TypeScript is a language for application-scale JavaScript that adds optional types. The repository hosts the TypeScript compiler and tooling.

Aristotle Expands into Rust

Hacker News Top

Harmonic announced that its formal verification tool Aristotle now supports Rust, allowing developers to mathematically prove their code (including unsafe blocks) matches its specification before shipping. The company also announced a partnership with the Solana Foundation to help verify smart contracts, with case studies on Manifest and Project 0 already catching real bugs.