Sat 05 May 2018

Filed under Gentoo

Tags gentoo linux virtualization

The story

After struggling with HiDPI issues on native GNU/Linux and battery life issues on macOS, I resorted to using Windows 10 as the main operating system on my laptop. Though there's WSL, it's not running Gentoo and has a severely degraded performance. As crossdev is really easy to …

Read More

Fri 04 May 2018

Filed under Gentoo

Tags android gentoo gsoc

Preface

Chrooting is usually a key part in installing a GNU/Linux system, and there's no difference here in my GSoC 2018 work. In this article we'll build a Gentoo chroot with CHOST=aarch64-unknown-linux-gnu, set up ssh connection to it, and install some necessary tools.

Preparation work

First of all …

Read More

Fri 04 May 2018

Filed under GSoC 2018

Tags android gentoo gsoc linux

Preface

This week was about getting the Gentoo stage3 to work on Android (as a subsystem of Android currently), and replacing init located in the initramfs, which was part of the boot.img that was used to boot the system. To ease the process of compiling for a different architecture …

Read More

Mon 30 April 2018

Filed under GSoC 2018

Tags android gentoo gsoc

Preface

According to the schedule in the proposal, this week was about getting familiar with Lineage OS building process and installing it on the development device. This blog post summarizes the work I've done and the problems I ran into (and successfully fixed) in the process, and makes a brief …

Read More

Sat 17 March 2018

Filed under C++

Tags c++ language

The story

Consider the following code snippet:

#include <iostream>

class A;

class B { 
    public: 
        B() {} 

        B(A &) { // conversion constructor that takes cv-unqualified A
            std::cout << "called B's conversion constructor" << std::endl; 
        } 
};

class A { 
    public: 
        operator B() const { // conversion operator that takes cv-qualified A
            std::cout << "called A's conversion …
Read More

Pengcheng Xu's Place © Pengcheng Xu Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More