5 ms·
Huawei unveils its own programming language the "Cangjie"
- AYBABTME 2y agoCouldn't find the source or an example. Also I don't read Chinese so this doesn't help. Anyone has links?
- haunter 2y agoNot much info is available There is a product site but it's pretty empty https://developer.huawei.com/consumer/cn/cangjie/ https://developer.huawei.com/consumer/cn/cangjie/ Documentation is chinese only https://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/basic https://developer.huawei.com/consumer/cn/doc/openharmony-can... You can register for beta but you probably need a chinese ID card for that ("real name authentication") https://developer.huawei.com/consumer/cn/activityDetail/cangjie-beta/ https://developer.huawei.com/consumer/cn/activityDetail/cang...
- luyu_wu 2y agoUnfortunately, Huawei's efforts with english documentation fell off severely after the sanctions... A symptom of their loss of interest in the foreign markets (look at EMUI for instance). That being said, there'll probably be more details in English ina few weeks, afterall it just launched today.
- bdcravens 2y agoMaybe sharing any of it would violate sanctions
- jauntywundrkind 2y agoIn general i think Huawei is in places doing really excellent & promising work. Their DSoftBus architecture in particular is an excitingly ambitious attempt to make software and devices distributed by default, and they have big and small/embedded efforts that smartly support the idea. Their ArkUI is reasonably smartly cut from good modern familiar typescript practices. But man... the ability to cooperate & share & build a healthy growing technical ecosystem around their stuff seems sooo weak. If you want to even start to play with their (basically re-forked/re-proprietary-ized) HarmonyOS, you need to send them a government id, and their recommended getting started paths are all using some cloud workstation & cloud device testing setups. The barriers to "hello world" are enormous. It's also super sad seeing what looked like the right thing being done then walked back on. I have a hard time reading the tea leaves, doing the Kremlinology on this, but it sure looks like in 2020 a wonderful OpenAtom OpenHarmony organization was spawned to create a less controlled more openly governed and hence much more enticing community for Harmony. They're still very active & doing great things, but Huawei went & created HarmonyNEXT & seems to have (as previously mentioned) re-forked their own Harmony & are taking it very different directions. There's so little clear information about Harmony in general that it's hard to determine how big this rift/schism really is, so maybe it's not this bad, but it sure looks wild! I wish Harmony the best. It's be lovely to see Chinese software industry start to tap into some of the socialization of software that's lead to such a blooming of possibilities around the world. I thought OpenHarmony was an excellent first step, and I hope that can be a growing and innovative and supported community & space for these interesting efforts to advance & be seen & be something 3rd parties & lone developers can securely participate in.
- pessimizer 2y agoI think it's understandable. If they allow any dependence on a community that includes the West, it will be snatched away simply for the sake of damaging China. Western governments have openly stated that their enemy is Chinese prosperity. Huawei has been enemy #1, simply for being successful. I think the question would be if through China's closer alliances with other BRICS and the global South, would they feel comfortable opening up to developers outside the NATOsphere? They may have just soured on FOSS altogether, seeing as it doesn't allow them to accrue any advantage, and the West will simply ban any sharing in China's direction if US demagogues feel that it might hurt. > you need to send them a government id, and their recommended getting started paths are all using some cloud workstation & cloud device testing setups. The barriers to "hello world" are enormous. This seems like they're going to attempt to control things by keeping it on Chinese infrastructure, and only letting allies onto that infrastructure. Maybe that tactic might ultimately lead to China becoming a feasible alternative to US infrastructure in the rest of the world. They will probably have to understand that other people won't tolerate the sort of control they extend over their own citizens' network usage to do that. They'll either have to partition their infrastructure for export, or loosen up domestically. Chinese people are generally patriotic and know what they're up against, they don't have to be watched like children. As the Western internet goes in the direction of the Chinese internet, maybe China can turn around and go in the other direction. aside: I love that they didn't give this language an English name, or even a name that an English speaker would have a clue of how to pronounce.
- jauntywundrkind 2y agoNon-open source development seems incredibly hard to pull off. Apple is basically the one and only company that's not suffering too badly for doing their own thing. > If they allow any dependence on a community that includes the West, it will be snatched away simply for the sake of damaging China. I don't think the West cares, at all. In this issue in specific & in general. I'm in DC. We don't have jobs or openings to go screw with China here. Yeah, we go help our ally the Philippines when for example China is sending dudes with swords to attack resupply missions, and yeah there's some politics & optics, but the West would, I believe, love to see a successful & prosperous & healthy China rise, if it could do so without having to exploit or aggress to do so. The jobs in DC are to try to plan for & work towards a civil world. We don't have troll farms here. We don't have giant disinformation machines (well, to be fair we have Fox News & other machinery in the pockets of the ultra capitalists). It's really hard for me to imagine what HarmonyOS sabotage would like. It's hard for me to imagine Apple or Google or Salesforce or Shopify or whomever going out of their way to go screw with a competing OS. I don't see the CIA or NSA or whomever taking action. I do think there probably is a bit of a fear/control based response Huawei is going through, but the risk of becoming ungovernable seems very low to me. You can still own and moderate an open source project, an open community. You can still steer your own open source effort. It's so hard for me to imagine the kind of organic growth that leads to lasting success happening, if Huawei stays on such a narrow productized track for their OS. There's such a deep irony to me that the Western socialization of software has served us so so well, but so few other places seem to be able to recreate those values & get that same engagement & organic growth.
- 3cats-in-a-coat 2y agoHere it is: https://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/program_structure https://developer.huawei.com/consumer/cn/doc/openharmony-can... It's still using English keywords, and is very similar to a mix of Python and JavaScript, touch of Java. It's a typical modern language, but they needed their own fork to clean-up some concepts, semantics, and be independent of western platforms, for the unfortunate reason that the US and China are increasingly hostile lately. Well, mostly the US towards China.
- mint2 2y ago“Us and China are increasingly hostile. We’ll, mostly the US towards China” 2+ decades of IP theft and product dumping, USA finally starts reacting, gets accused of being hostile.
- maest 2y agoI don't know much about this but how has the US treated Chinese IP?
- luyu_wu 2y agoWell, I think it's reactions are definetly "hostile" to be fair. Could you cite some sources by the way? Huawei, iirc, has/had one of the largest R&D funding among companies worldwide? I also thought the US banned them on grounds of National Security, not IP theft?
- elmomle 2y ago
- deleted 2y ago[deleted]
- ranger_danger 2y agotranslate buttons solved this years ago...
- kstrauser 2y ago> Huawei is a brand known for its great tech innovations. Pardon me while I wipe the coffee spray off my screen. A whole lot of phone makers' dev teams just shouted in glee and gave each other fist bumps that Huawei is likely taking an expensive and doomed-to-failure detour.
- ecshafer 2y agoThe Huawei phones I have seen in China have been very impressive and are least better than Samsung.
- b112 2y agoExisting "Western" coding languages might have democratic ideas. (I am wondering if this is the thought process, of the PRC appointed, unskilled person pushing this change.) https://machinelearningmastery.com/voting-ensembles-with-python/ https://machinelearningmastery.com/voting-ensembles-with-pyt... Oh no! Voting!
- 3cats-in-a-coat 2y agoI think you've seen a few cheap Huawei phones and you don't know even 1/10 of their products. Don't be so dismissive and don't underestimate China.
- slothtrop 2y agoOk, can you make the case they've been innovative?
- hnthrowaway0328 2y agohttps://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/basic https://developer.huawei.com/consumer/cn/doc/openharmony-can... Only in Chinese.
- ranger_danger 2y agoTranslate buttons work well.
- Rygian 2y ago"Reflections on Trusting Trust" comes to mind as particularly relevant especially with the planned integration with HarmonyOS.
- imiric 2y agoTrusting software at any level only becomes relevant after trust in hardware is established. In the case of Huawei, I distrust any hardware that they produce, so it doesn't matter what they run on top of it.
- activitypea 2y agoIs there any modern hardware that doesn't have privacy issues?
- Mathnerd314 2y ago> multi-paradigm and supports functional, imperative, and object-oriented programming styles No logic programming, not as good as Verse
- sufimalang 2y ago[flagged]
- deleted 2y ago[deleted]
- mncharity 2y agoThe language docs[1] are CN. Chromium's (and Chrome's?) Translate menu option works well. Alternately, most pages in the table of contents have code for skimming untranslated. One can also cut and paste to translation sites, but giving urls to translate.google (and baidu, yandex) yield blank pages. There is a language spec pdf, as a link and inline, on page [2]. It's readable, being code dense, but also CN. I don't know how to easily translate it - chromium browser translation, and translate.google, don't seem to. [1] https://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/cj-wp-abstract https://developer.huawei.com/consumer/cn/doc/openharmony-can... [2] https://developer.huawei.com/consumer/cn/doc/openharmony-cangjie/cj-lan-spec https://developer.huawei.com/consumer/cn/doc/openharmony-can...
- throwaway4good 2y agoIt looks like a modern statically typed multi-paradigm language with OO, exceptions, higher order functions, pattern matching, annotations, concurrency primitives etc. sitting on top of LLVM and something called CVJM. I guess it is in family with modern C# and perhaps Swift - has kinda a similar syntax to Swift. There are also some instructions for running it on Ubuntu in the pdf.
- link89 2y agoThis programming language reminds me of a lot of meta-language (ML) styles: function overloading based on pattern matching, immutable variables, and using `spawn` keyword for lightweight threads – a practice also employed by Erlang. Perhaps owing to Huawei's origins as a telecommunications equipment company, where many within the organization are familiar with Erlang, this new language exhibits numerous resemblances to Erlang.
- dgellow 2y ago> here are some key features of Huawei’s programming language: Native intelligence, full scene capabilities, high performance and strong security. Is it a translation issue? That’s non sensical
- jabbany 2y agoYeah, classic MTL. It should be closer to "*built-in* (support for) AI" (basically integrations for LLM prompting) and "*multi-purpose* by design" (basically a grab bag of support for modular code, functional and declarative programming etc.)
- firen777 2y agoTotally not gonna cause any kind of confusion with that name: https://en.wikipedia.org/wiki/Cangjie_input_method https://en.wikipedia.org/wiki/Cangjie_input_method