God made the integers, all else is the work of man.

2021-04-04
cs61c introduction

Read More

2021-02-24
[Translation] Blocking IO Nonblocking IO and Epoll

In this post I want to explain exactly what happens when you use nonblocking I/O. In particular, I want to explain:

  • The semantics of setting O_NONBLOCK on a file descrpter using fcntl

  • How nonblocking I/O is different from asynchronous I/O

  • Why nonblocking I/O is frequently used in conjunction with I/O multiplexers like select, epoll, and kqueue

  • How nonblocking mode interacts with edge-triggered polling with epoll

在这篇博文中,我想解释当使用 非阻塞IO 时确切发生了什么。具体地,我想解释:

  • 在一个文件描述上使用 fcntl 为其设置 O_NONBLOCKING 标志的那些语义

  • 非阻塞IO 与 异步IO 如何不同

  • 为什么 非阻塞IO 经常和 IO复用,如select, epollkqueue 一起使用

  • 非阻塞模式如何与 epoll 边沿触发 (edge-trigered) 轮训方式交互

Read More

2021-02-08
[OEC] Friendship and Intimacy

Friendship and Intimacy

Introduction

Friendship clearly plays an important role in our life. However, people sometimes get confused and tired in an intimate relationship, and then even choose to stay far away from friendship. What’s your idea of friendship and intimacy? Let’s talk about them tonight!

Read More

2021-02-05
[OEC] Critical Thinking

Critical Thinking

Introduction

We all engage in the process of reasoning, but we donot always pay attention to whether we are doing it well. Not many people can easily

  • Identify flaws in arguments,

  • analyze the reasoning in newspaper articles, books and speeches,

  • assess the credibility of evidence and authorities,

  • make sound decisions and solve dilemmas,

  • approach any topic with the ability to reason and thinking critically.

And that is why we introduce critical thinking as our topic today, hoping we could think critically and be not confused about the situation we are in.

Read More

2021-02-04
[Paper] The Overview of Reading Paper

Introduction

Reading an academic paper is not an easy job, you may lose in the forest of trees. So methods are highly need to effectively tackle the issue. However, the key of them is to figure out the main ideas of the researchers, such as background, objective, method, results, and conclusion.

Read More