Introducing ArkTS, Huawei’s Next-Generation Development Language

8 points by janus


near

The diagram at the beginning is wrong, no? It implies JavaScript ⊂ TypeScript ⊂ ArkTS, but the article describes how not all TypeScript programs are valid ArkTS programs (e.g. by restricting + to addition, and using something else for string concatenation).

One of TypeScript's selling points was incremental adoption, where you could slowly introduce it into existing codebases and leave other existing code untouched. And this article claims that you could do the same with ArkTS? I'm confused, to me it sounds like that shouldn't be possible. Or is it just that some optimizations won't be possible then?

patryk

I know some people who were (and still probably are) porting React Native on harmonyOS and boy oh boy, it's a hot mess under the hood and about a year ago there was barely any documentation in english (everything was in chinese, not sure how it looks currently)

hwj

Despite its name this doesn't seem to be based on ATS (https://www.cs.bu.edu/~hwxi/atslangweb/)...