News for hackers. Stuff that matters.
Re:Huawei unveils its own programming language the "Cangjie" by AYBABTME on Friday June 21, 2024 @02:45PM (#40752414)
Couldn't find the source or an example. Also I don't read Chinese so this doesn't help. Anyone has links?
Re:Huawei unveils its own programming language the "Cangjie" by haunter on Friday June 21, 2024 @02:49PM (#40752470)
Not much info is available

There is a product site but it's pretty empty https://developer.huawei.com/consumer/cn/cangjie/

Documentation is chinese only 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/cang...

Re:Huawei unveils its own programming language the "Cangjie" by luyu_wu on Friday June 21, 2024 @03:36PM (#40752889)
Unfortunately, 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.
Re:Huawei unveils its own programming language the "Cangjie" by mncharity on Friday June 21, 2024 @03:44PM (#40752992)
FWIW, to save duplication of effort, I observe the "Basic Concepts" page[1] appears blank on translate.google[2], baidu[3], and yandex.

Chromium browser's translate menu option works (but not on the language spec pdf?). As does cut and paste to translators from ToC and pages. And it seems most pages in the ToC are rich in examples for skimming (tnx to 3cats-in-a-coat for pointing this out).

[1] https://developer.huawei.com/consumer/cn/doc/openharmony-can... [2] https://developer-huawei-com.translate.goog/consumer/cn/doc/... [3] https://fanyi.baidu.com/mtpe-individual/transpage?query=http... TIL 宏 means Macro.

Re:Huawei unveils its own programming language the "Cangjie" by jauntywundrkind on Friday June 21, 2024 @03:00PM (#40752566)
In 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.

Re:Huawei unveils its own programming language the "Cangjie" by pessimizer on Friday June 21, 2024 @03:25PM (#40752781)
I 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.

Re:Huawei unveils its own programming language the "Cangjie" by jauntywundrkind on Friday June 21, 2024 @04:03PM (#40753229)
Non-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.

Re:Huawei unveils its own programming language the "Cangjie" by wumeow on Friday June 21, 2024 @04:28PM (#40753470)
> 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.

I love that they use English for all of the language’s keywords, base types, and source code examples.

Re:Huawei unveils its own programming language the "Cangjie" by bdcravens on Friday June 21, 2024 @02:57PM (#40752539)
Maybe sharing any of it would violate sanctions
Re:Huawei unveils its own programming language the "Cangjie" by 3cats-in-a-coat on Friday June 21, 2024 @03:01PM (#40752577)
Here it is: 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.

Re:Huawei unveils its own programming language the "Cangjie" by elmomle on Friday June 21, 2024 @03:21PM (#40752749)
This isn't meant as a judgment against China, but China openly wishes to lead an anti-US/anti-West economic and political coalition, has spun up its tech industry largely through espionage conducted against the West, and is increasingly militaristic and aggressive towards US allies (Phillipines, Taiwan) in the region. We can debate about the US approach to maintaining hegemony (the very idea may be fundamentally misguided), but it would be downright foolish for the United States to view China as anything like a friend.
Re:Huawei unveils its own programming language the "Cangjie" by another_poster on Friday June 21, 2024 @03:45PM (#40753010)
To play devil’s advocate, the US seems to have given up leadership in key areas, so it seems natural for China to play a bigger role in the world.

(1) Industry. Why did the US government aggressively pursue a “post-industrial” economy? China was essentially given the keys to the world’s industries by US leaders in politics and businesses. It’s natural for China, as an industrial leader, to have a bigger role in the world.

(2) Key technologies. Why did the US pursue a laissez-faire approach to high-value technologies, such as solar and battery-powered vehicles? “Let things happen” is an unrealistic economic policy for areas of the market that are winner-takes-all. It’s natural for China, as a leader in key technologies, to have a bigger world stage.

(3) Public education. Why has the US allowed high-quality, regional newspapers to implode? The public is being whipped up to ever greater frenzies by increasingly poor media, which has led to increasingly low-quality leaders, for example, in the Republican Party. It’s natural for countries with more well-informed governments, such as China, to have a larger role in the world.

Re:Huawei unveils its own programming language the "Cangjie" by pessimizer on Friday June 21, 2024 @03:31PM (#40752825)
The US regarded China as a friend since the mid-70s, and it led to prosperity for both countries. The problem is direct US military aggression, and in "maintaining hegemony" which is the neocon idea that regards Chinese prosperity as a threat in and of itself.

It would be wonderful for the US to stop threatening China. China is not threatening the US.

Re:Huawei unveils its own programming language the "Cangjie" by elmomle on Friday June 21, 2024 @03:55PM (#40753145)
But it's already well-known, in fact an official part of CCP doctrine, that the intention of economic cooperation was always to build strength while downplaying any notion of China as a threat until the conditions were propitious for China to act more aggressively.

And what of aggressive Chinese actions around the Spratly Islands, which are carried out in violation of a very clear 2016 UNCLOS ruling? What has the US done recently to violate Chinese territorial waters in any similar sort of way?

I actually think that actions by the West over the past ~200 years really set the stage for things that are happening today, but I don't think it's fair to paint China as an innocent actor with pure intentions; they're not.

Re:Huawei unveils its own programming language the "Cangjie" by mint2 on Friday June 21, 2024 @03:11PM (#40752665)
“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.

Re:Huawei unveils its own programming language the "Cangjie" by luyu_wu on Friday June 21, 2024 @03:42PM (#40752968)
Well, 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?
Re:Huawei unveils its own programming language the "Cangjie" by maest on Friday June 21, 2024 @03:14PM (#40752699)
I don't know much about this but how has the US treated Chinese IP?
Re:Huawei unveils its own programming language the "Cangjie" by zaphar on Friday June 21, 2024 @03:26PM (#40752788)
As far as I know we generally give Chinese companies the same protections we give US companies when it comes to IP. The same can most definitely not be said about China.
Re:Huawei unveils its own programming language the "Cangjie" by hapless on Friday June 21, 2024 @03:21PM (#40752752)
What Chinese IP?
Re:Huawei unveils its own programming language the "Cangjie" by mncharity on Friday June 21, 2024 @04:49PM (#40753660)
Thank you for your link to a page with code. I motivated me to explore the site further, try alternate translation options, and write an intro comment above.
Re:Huawei unveils its own programming language the "Cangjie" by ranger_danger on Saturday June 22, 2024 @12:14AM (#40756220)
translate buttons solved this years ago...