The original link: mp.weixin.qq.com/s/zXVlcDaRf…

The opening

Things have no form and no rules when they are not done. When someone does something, they have form and rules. To do things well, we should not cling to existing forms and rules.

At 18:18 on September 10, 2020, Huawei officially opened source HONGmeng OS 2.0 version:

The open source project: www.openatom.org/openharmony

Code repository: openHarmony.gitee.com/

I, too, like so many technophiles who can’t sleep, give it a gentle, deep wank while it’s hot

01 # Open Source timeline #

Teacher’s Day on September 10 was just the beginning, with the release of an open source system for 128KB to 128MB memory terminals. An open source system for 128MB-4GB devices will be released in April 2021 and for all devices with 4GB or more in October 2021.

Several things can be learned from the above picture:

1. Open source gradually according to the device memory capacity;

2. For 128KB-128MB memory terminal devices, that is, from 18:18 on September 10, Internet of Things manufacturers can start to use Hongmeng OS to develop small intelligent devices;

3. In April 2021, the open source system will be oriented to mobile terminals such as mobile phones and tablets;

4. After October 2021, the open source system will be oriented to PC, smart screen and server.

Maybe, at this point, some people will ask, is the phone memory 4G enough? My mobile phone is stored 6G, 8G!!

Maybe someone will laugh and be a server? Don’t be silly!!

02 # Open source system composition #

From the figure above, we can see 6 parts, 4 of which are key to the system, respectively:

1. Kernel_liteos_a (lightweight kernel);

2. Communication_services_softbus_lite (IO and network transmission);

3. Ace_lite_jsfwk (Application interface development);

4. Distributedschedule_services_samgr_lite (underlying system, driver, etc.);

Students of different technologies take their seats and pay attention to the source code in their own technical field.

I do the application layer, I will not pay too much attention to the underlying content.

03 # Application interface development #

React Native(RN) is the latest version of firefox OS. Good technology worth learning, continue to see the official profile!

The JS application development framework provides a set of cross-platform web-like application development framework. Through Toolkit, HML, CSS and JS files compiled by developers are compiled and packaged into JS bundles, and then the JS Bundle is parsed and run into View components of C++ native UI for rendering. By supporting three-party developers to use declarative API for application development, data-driven view changes can avoid a lot of view operations, greatly reduce the difficulty of application development, and improve the development experience of developers.

After reading it, I saw that I was moved. I can only say that HongmengOS came with sincerity:

1. Extremely low development threshold HML(Harmony Mark Language), in fact, is similar to Html Web development Language, other CSS and JS need not say much;

2. Look at the JS Bundle. It is no longer a component that calls Android like RN, but a View component that is parsed into a super-high performance C++ native UI for rendering, which means that there is no Java virtual machine in hongmon OS.

3. Of course, to deeply customize UI components, optimize UI performance, preferably proficient in C++ oh;

At this point, I believe that in the future, Hongmeng OS can really compete with Apple IOS steel, and even surpass it, because it is extremely friendly to developers. There is no shortage of front-end engineers and architects in China, and it can quickly build an application ecosystem. Furthermore, after the system is removed from the Java virtual machine, the system performance is excellent, it no longer costs 1 to 2G to run the virtual machine, as long as 4G memory, the mobile phone carrying Hongmeng OS really can teng cloud ten thousand miles!!

Attached is a JS application framework module architecture diagram:

04 # Distributed Communication Subsystem #

Take a look at the distributed communication subsystem featured from the beginning of Hongmeng OS:

1. Service release: After the service is released, peripheral devices can discover and use the service;

2. Data transmission: Establish a session based on the service name and device ID to realize the transmission function between services.

3. Security: provide encryption capability of communication data;

4. Speed: Distributed file systems are up to four times faster than the industry’s best Samba minimum.

Guess: Installed HongMeng own heartbeat detection between multiple servers in the system, provide natural distributed services, with SessionID session control let business controllability is higher, can solve some difficult points of the existing distributed service architecture and pain points, and can quickly switch to slave servers directly, also the expansion of the server, provide a convenient solution, It is even comparable to HDFS, the big data architecture of Hadoop.

05 # Last #

Hongmeng is a mass of vitality at the beginning of heaven and earth, the origin of mythology, the basis for the survival of all living beings, and the educator of brilliant wisdom and civilization. The selection of Hongmeng 2.0 on Teachers’ Day shows the determination to break through the technological blockade of the United States, and is the due attitude of technology of a major country!

Hongmeng, the future is possible!!

Conclusion: after writing, tears, the article is just some of my shallow reading after the point of view and guess, if there is wrong, please correct in time, god do not spray; This article material part of the source network, if there is infringement, please contact rectification.