Home
Miigon's blog
Cancel

[mit6.s081] 笔记 Lab4: Traps | 中断陷阱

这是我自学 MIT6.S081 操作系统课程的 lab 代码笔记第四篇:Traps。此 lab 大致耗时:8小时。 课程地址:https://pdos.csail.mit.edu/6.S081/2020/schedule.html Lab 地址:https://pdos.csail.mit.edu/6.S081/2020/labs/traps.html 我的代码地址:https:...

[mit6.s081] 笔记 Lab3: Page tables | 页表

这是我自学 MIT6.S081 操作系统课程的 lab 代码笔记第三篇:Page tables。此 lab 大致耗时:19小时。 课程地址:https://pdos.csail.mit.edu/6.S081/2020/schedule.html Lab 地址:https://pdos.csail.mit.edu/6.S081/2020/labs/pgtbl.html 我的代码地址...

[mit6.s081] 笔记 Lab2: System calls | 系统调用

这是我自学 MIT6.S081 操作系统课程的 lab 代码笔记第二篇:System calls。此 lab 大致耗时:4小时。 课程地址:https://pdos.csail.mit.edu/6.S081/2020/schedule.html Lab 地址:https://pdos.csail.mit.edu/6.S081/2020/labs/syscall.html 我的代码...

[mit6.s081] 笔记 Lab1: Unix utilities | Unix 实用工具

这是我自学 MIT6.S081 操作系统课程的 lab 代码笔记第一篇:Unix utilities。此 lab 大致耗时:4小时。 课程地址:https://pdos.csail.mit.edu/6.S081/2020/schedule.html Lab 地址:https://pdos.csail.mit.edu/6.S081/2020/labs/util.html 我的代码地...

[StackOverflow] Difference between synchronous and asynchorous gRPC API

This is from one of my answers on StackOverflow. Original question: I am working on a service based on gRPC, which requires high throughput. But currently my program suffers low throughp...

[StackOverflow] C++ gRPC 异步 API 实例与优势

转自 我的一个 StackOverflow 回答。因为答案比较长,而且感觉比较有意义,就翻译成了中文发了出来。 原问题: 我正在用 gRPC 构建一个要求高吞吐量的服务。但是我现在用 C++ 同步式 gRPC 编写的程序的吞吐量并不高。 我已经读过了 gRPC 文档,但是我并没有找到对于同步/异步 API 的区别的清晰解释。我只知道异步 API 可以控制完成队列(...

在 PostgreSQL 中解码 Django Session

原文地址:Decoding Django Sessions in PostgreSQL 原文作者:Daniel Lifflander 译文出自:掘金翻译计划 本文永久链接:https://github.com/xitu/gold-miner/blob/master/article/2021/Decoding-Django-Sessions-in-Pos...

Node.js 与 Python:为你的项目选择哪一个?

原文地址:Node.js vs. Python: Which One to Choose for Your Project? 原文作者:Saul Gallegos 译文出自:掘金翻译计划 本文永久链接:https://github.com/xitu/gold-miner/blob/master/article/2021/node-js-vs-pytho...

Natural Sort: How to sort file names naturally

What’s the problem? When a programmer is given the task of sorting file names in a list, it might be tempting to sort using something like std::sort(). The problem with that is: std::sort() sorts ...

关于 IEEE 754 浮点数一些设计细节的疑问解释

计算机系统课程上讲到的 IEEE 754 32位浮点数一些规则细节的个人理解与解释。 老师在课上已经把各个细节都大致讲过了,这篇文章是给课后对这些细节还感兴趣的同学,做补充解释和扩展。 这篇文章不会采用晦涩的引用或者证明,而是尝试让同学能直观理解 IEEE 754 的一些设计选择。 2021-03-31: 最近有比较多的同学看到了这篇文章,这篇文章的本意是回答几个课上遇到的...

问题分析:ios_base::fixed 导致输出精度丢失?

这篇文章是来自我在 0xffff.one 上的一个帖子 https://0xffff.one/d/911/ 的回复。 原帖内容: 百度说是这行代码的作用是使用定点输出,同时输出小数点后6位(我试了好多数,仍然表示很迷) 为什么有这行代码有时候求两个数加减乘除的结果就不对,没有这行代码就对呢 比如55.25+11.17有上面那行代码结果是66.419998,没有就是66...

原理分析:使用 dd 跳过开头若干字节快速拷贝文件

这篇文章是来自我在 0xffff.one 上的一个帖子 https://0xffff.one/d/900 的回复。 原帖内容: 在折腾一个超大的备份文件,需要把它的前 41 个字节删除掉,没有 WinHEX,想着用 dd 命令来实现 一开始这么干,发现速度奇慢,5分钟过去才复制40MB… dd if=input.bak bs=1 skip=41 > result....

MongoDB 高性能最佳实践: 事务,读取关心程度与写入关心程度

本文章为翻译作品,原作者为 Mat Keep 与 Henrik Ingo 原文章发布日期 2020年02月25日 原文标题:Performance Best Practices: Transactions and Read / Write Concerns 原文链接:https://www.mongodb.com/blog/post/performance-best-practices...

Golang Project: Tic Tac Toe

In this article, I’ll go through my process of writing a simple Tic-Tac-Toe game in Golang. Error handling, closures, iota as well as other golang features are used to create the game. Before...

Announcement | 公告

What? Here’s my personal blog on which I may post stuffs like what I am learning recently, what I found fascinating and want to talk about, or just random thoughts. Why? I have been learning pr...