Connect with us

Technology

ARK Compiler: Huawei’s self-developed Android application compiler – Explained

Published

on


“ARK Compiler” is a big bet for Huawei’s App management system, the company introduced it with the launch of P30 series and in a recent media briefing, the Huawei gave in-depth information of this new technology and its future in Huawei device ecosystem.

Simple definition:
Ark compiler can improve Android system operation fluency by 24%, response speed by 44%, and the smoothness of the third-party application up to 60%.

EMUI 9.1 Review: This should be EMUI 10



Now it’s time to dive deep into this subject:

During the EMUI software communication meeting in China, Dr. Wang Chenglu, President of Huawei Consumer BG Software Division, said this new technology is a breakthrough for Huawei and designed to work alongside EMUI. The official explained the details about this new revolutionary technology from the following.

Advertisement

To learn more about ARK compiler we’ve to understand what really the compilation process is:

Most of the Android platform applications are written in Java, but at the bottom what really makes the computer understand and execute the code is the machine language, which is a binary code consisting of “0” and “1”. Therefore, to run the program the high-level language (Java) must be transformed into machine language (Binary Code).

Generally, there are two ways to compile the language:

1. Introduce an interpreter to translate: which works by understanding a Java statement and translating it into machine code, letting the hardware execute it freely and called – Interpreting execution or Interpreter. This process does not filter the code, and the execution efficiency is very low + takes time.

2. The direct translation of high-level languages into machine language: There are two methods into this process:

A. AOT (Ahead of time) Compilation: Compiles the languages before running the program.

Advertisement

B. JIT (Just in time) Compilation: Compiles the languages in the run time or in real time.

Prior to Android 5.0, Android used high-level language code to interpreting execution + JIT but the provided very low efficiency while running a program. In the process of development, with the launch of Android 6.0, Android introduced Android Runtime (ART) virtual environment.

Currently, Android uses a comprehensive model compilation process with the combination of interpreting execution + JIT + AOT.



Advertisement

So, What is a Compiler?

A compiler is a tool or software that translate source code from a high-level programming language to a machine executable language and creates a single executable program out of all of the language files/resources.

How “ARK Compiler” is different from a regular compiler

APK Compiled with ARK Compiler directly translates high-level languages in the form of Machine Language, that runs into the phone without even the need of a virtual machine or the need a bridge to translate it for the phone. This saves a huge amount of resources during interpretation or switching between high to low-level languages and provides a high-performance boost to the application.

We can understand this whole process in two simple steps:

First of all, the compilation process of the ARK compiler supported program is completed on the developer side, in the process of program development, the developer directly compiles different programming languages into machine code, and creates an executable APK (Android Application).

Advertisement

When the app installed in the Operating system, it can directly identify and perform required actions without taking extra time and storage to interact and interpret language conversation with the virtual machine, providing a boost to the overall speed of the application.

Secondly, Ark compiler uses the memory recycling process that is used to recycle unused memory and restores it back to the system without even suspending the current background application, this helps a lot in app resuming and improves memory management. This could be taken as a way to bypass Android’s traditional virtual machine.

All of this process improves system operation fluency by 24% and the system response speed by 44%, as well as third-party application performance by up to 60%.

What are the difficulties for Huawei?

Dr. Wang Cheglu explains Compiler development requires a long-term research and development process, at the same times the developers of the compiler needs to be expert in high-level languages, familiar with various language frameworks as well as machine language.

Advertisement

Google has acquired such professionals for a long time and on a very large scale, that’s why there are many frameworks and applications developed by the firm. If you want to recreate a compiler from scratch that can adopt Google’s software ecosystem, the workload of that compiler has been to very huge, the Wang said.



How ARK compiler came alive?

According to Dr. Wang, Huawei’s interest in compiler development started in 2009, when its research and development program was originally initiated. It has inspired the first batch of the researcher in China and abroad to join and create a compilation group.

In 2013, Huawei self-developed and launched its first compiler for base stations, which is the official proposal of the Huawei compiler framework and the predecessor of ARK compiler.

Advertisement

In 2014, chief scientist of Huawei compiler technology established the main architecture of ARK compiler. In 2015, Huawei launched its own programming language. In 2016, the compiler and programming language lab was established. In 2019, Huawei officially launched the Ark compiler.

This whole development process took ten years and hundreds of researchers as well as hundreds of millions of dollars investment.

Dr. Wang said that the Android system optimized with Ark compiler is close to Apple’ IOS terminology. The next step of Huawei is to promote this new compiler into the Android ecosystem and to constantly update it to allow users to use more pure Android programmes.

Dr. Wang also announced that The Huawei Ark Compiler will be fully open sourced around November 2019, and invited the entire industry to work together to improve and enhance the Android performance experience.

Advertisement

Amy is our firmware and software specialist, she keeps her eagle eyes open for new software rollouts, beta programs, and other software related activities as well as new smartphone launch.

Technology

Huawei launches ‘Digital Bus’ project to level up education sector in Thailand

Published

on

Huawei launches 'Digital Bus' project to level up education sector in Thailand

Huawei launched a new project entitled ‘Digital Bus’ to turn the education sector towards technology in Thailand. The company took this step to enhance the knowledge of digitalization and new techs among the Thailand citizens.

Purposely, the Chinese manufacturer aims to spread the digital as well as technical skills equally around the education centers. Consequently, this step will also add growth to the digital providence of the region. Huawei has launched the ‘Digital Bus’ Project at Singhapahu Prasanmit Aupatham education center in Thailand.

Huawei’s Contribution to Thailand

Huawei acknowledged the hard work and efforts of the Thailand authorities to elevate the technology development as well as a digital fund in the country. To help out, the company associated with its companion in the region to locate 20,000 5G stations.

As a result, in a short time, the 5G users crossed 4.2 million which is 2.6 times bigger in comparison to other ASEAN nations. However, challenges are part of a journey and so happened with Thailand. Lack of digital skills and talent lapse the country’s growth.

Advertisement

Huawei launches 'Digital Bus' project to level up education sector in Thailand

Hence, Huawei Technologies in Thailand decided to become an aid for the region to build their talent pool. Apart from the knowledge, the company provides excellent career opportunities to the Thai citizens and the learning generation as well.

Words of Huawei on the Project

The Board Director of Huawei Technologies in Thailand, Mr. Edison Xu, expressed his thoughts on the project:

“Huawei plans to deploy the ‘Digital Bus’ to provide digital training, free of charge, in 10 provinces, covering more than 40 remote communities and 1,500 students in Thailand. And we will continuously work with the government and schools to enrich people’s lives with digital and open a new window of opportunities for Thai people and bridge the digital divide gap”

Thailand is putting efforts into developing itself as a sustainable ASEAN digital hub. Thus this project could prove to be a benefit for the region.

Advertisement

(Source)

Continue Reading

Technology

Huawei added UEFI mirror memory function support to Linux AArch 64

Published

on

Huawei UEFI mirror memory

Linux Kernel is the main component of the Linux operating system as well as the core interface between a system’s hardware and its processes. Since 2015, the Linux kernel has supported UEFI mirrored memory functionality of x86/x86-64.

In the latest edition, Huawei engineers developed and added the UEFI mirror memory function Linux AArch 64. Recently, Huawei engineer Wupeng Ma released the latest patches working on this UEFI mirror memory support for Linux AArch64 hardware.

UEFI:

The UEFI allows setting up address range-based partial memory mirroring that has been going around all the way back to the UEFI 2.5 spec. This UEFI memory mirroring can be used for redundancy and reliability purposes on the servers.

Huawei UEFI mirror memory

More information:

Following the platform settings, the servers can normally provide a full mirror up to 50% (reserved for mirroring) or partial mirroring usually 10~20%, if it is below or above 4GB or even be left up to the OS for determining the memory address ranges for mirroring.

Advertisement

However, AArch64 hardware meeting the UEFI spec can support it too, but the Linux kernel support on AArch64/ARM64 hadn’t been set up until now.

Linux Kernel:

Linux kernel is a free, open-source, monolithic, modular, and Unix-like operating system kernel. The main component of the Linux operating system (OS) is Kernel and is the core interface between the computer’s hardware and its processes.

The Linux kernel is used by Linux distributions alongside GNU tools and libraries. This combination is sometimes referred to as GNU/Linux. For your information, the Popular Linux distributions platform are Ubuntu, Fedora, and Arch Linux.

(Via: Phoronix)

Advertisement
Continue Reading

Technology

Huawei Router AX6 with Wi-Fi 6+ and 7200 Mbps speed launched

Published

on

Huawei Router AX6 launched

During the Spring Press Conference, Richard Yu, CEO of Huawei Consumer Business Group has launched the new Huawei Whole House Smart Solution but also the new Router AX6.

Huawei Router AX6 has launched with dual-band Wi-Fi 6+ 7200Mbps, 8 signal amplifiers, which can easily cope with internet issues and enjoy a stable high-speed network while remaining connected to the internet.

According to the information, Huawei’s Wi-Fi 6+ has been fully upgraded with a fast 7200 Mbps network that makes it easy to download high-definition movies or large files and experience smoother 4K live broadcasts. Also, Huawei’s self-developed Al anti-jamming technology can intelligently avoid Wi-Fi co-channel interference, and the whole house can enjoy a stable high-speed network.

Huawei Router AX6 launched

With the HarmonyOS interactive features, you can easily manage Internet devices by easy drag and drop. Further, the Huawei GameTurbo 2.0 technology intelligently identifies popular mobile games and joins the fast lane, reducing the delay and packet loss rate by 20%.

Advertisement

It provides a smooth gaming experience and supports the time and behavior management of children’s Internet devices, and can also block bad websites, effectively preventing children from being addicted to the Internet. Through the Huawei Smart Life App, you can easily grasp the network status of the whole family and can detect as well as solve network problems with a few taps.

(Via)

Continue Reading