Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

The best practices described in this document demonstrate the functions of each tool of the Kunpeng DevKit. You can refer to these best practices when analyzing and optimizing your development projects in the Kunpeng DevKit. See Table 1.

Table 1 Best practices

Feature

Working Mode

Best Practice

Description

Source Code Porting

CLI, WebUI, VS Code

Practice 1: Porting Open Source Software smartdenovo-master

SMARTdenovo is a de novo sequence assembler for PacBio or Oxford Nanopore. It is open source software written in the C language.

Use the Kunpeng DevKit Porting Advisor to analyze the SmartDenovo source package, helping to port applications.

WebUI, VS Code

Practice 2: Porting Megahit Source Code

Megahit is an ultra-fast and memory-efficient NGS assembler optimized for metagenomes.

Use the Kunpeng DevKit Porting Advisor to analyze the Megahit source package, helping to port applications.

System Migration

WebUI

Practice 1: Migrating the Open Source Java Project RuoYi

The System Migration feature enables wizard-driven, automatic migration across databases, middleware, and applications.

This practice illustrates how to migrate the open source Java project RuoYi. In this practice, you can experience automatic migration of MySQL, Nginx, and Tomcat, and manually perform data migration and SQL reconstruction.

WebUI

Practice 2: Migrating the Nginx Middleware

The DevKit System Migration feature can package and upload source components and migrate the middleware. In this practice, the open source Nginx middleware is migrated. During the practice, the Nginx configuration on the source server is automatically applied to the Nginx configuration file on the target server.

WebUI

Practice 3: Porting Decompiled Java Applications Without Source Code

The DevKit System Migration feature can decompile applications whose source code is not available, and provide compilation guidance and application deployment capabilities. This practice provides guidance for identifying configuration items that need to be modified, decompiling Java class files to generate readable Java code, and migrating SQL statements within the application.

Software Porting Assessment

CLI, WebUI, VS Code

Practice 1: Scanning and Analyzing netty-all-4.1.34.Final

Netty is an NIO-based client and server programming framework.

Use the Kunpeng DevKit Porting Advisor for assessment before porting the Netty software package.

WebUI, VS Code

Practice 2: Assessing CMake Software Porting - Analyzing Software Packages

CMake is an open source, cross-platform family of tools designed to build, test, and package software.

Use the Porting Advisor for assessment before porting the CMake source package.

WebUI, VS Code

Practice 3: Assessing Ragel Software Porting - Analyzing Installed Software

Ragel is a finite-state machine compiler. It compiles regular expression–based state machines into parsers of traditional programming languages such as C, C++, D, Java, and Ruby.

Use the Porting Advisor to assess installed Ragel software, helping to port installed applications.