Jason Cai (@acecxf) header
Jason Cai (@acecxf) profile picture
Joined July 2010
Smart People Don't Chase Goals; They Create Limits joanwestenberg.com/smart-peo…
18
Jason Cai retweeted
I like this image by @lehoho248.
87
602
40
6,963
595,741
Jason Cai retweeted
What do you want to create next?
1,030
1,411
822
13,800
7,106,138
付航决赛封神之作,现场又笑又哭一片混乱
90
161
16
794
325,818
Jason Cai retweeted
My @Google colleague and longtime @UCBerkeley faculty member David Patterson has a great essay out in this month's Communications of the ACM (@TheOfficialACM):🎉 "Life Lessons from the First Half-Century of My Career Sharing 16 life lessons, and nine magic words." I saw an early draft when it was only 10 lessons 😀. The lessons are generally useful to people in a wide variety of fields, not just CS. cacm.acm.org/opinion/life-le…
19
330
31
1,653
199,879
Jason Cai retweeted
Excited to see more people agreeing with me that sequentially consistent memory ordering is actually *not* a good default. From page 12 of accu.org/journals/overload/3…:
13
33
258
18,805
Great news! In-person registration for LPC 2024 is reopened! lpc.events/blog/current/inde… #linuxplumbers
3
1
12
1,587
Jason Cai retweeted
After re-implementing my Rust scheduler in eBPF, I ran some benchmarks from the @phoronix test suite, getting interesting results. In my experience, prototyping a scheduler in Rust and rewriting it in BPF has proven to be an effective workflow. See also: arighi.blogspot.com/2024/08/…
1
26
115
8,316
Jason Cai retweeted
新的博客文章《AI 编程助手测评:GitHub Copilot vs 豆包 MarsCode》。ruanyifeng.com/blog/2024/07/… 我测评了两款 AI 编程助手,看看孰强孰弱,顺便也作为一个入门教程,向还没用过的同学,展示它们的用法。
4
39
2
149
31,387
"Realizing the AMD Exascale Heterogeneous Processor Vision" - presented at ISCA 2024: drive.google.com/file/d/1J9t… This paper details the journey at AMD from architectural concepts and research (supported by DOE) to the APU product @RunBaconHockey
1
29
3
92
10,955
What our society has become
972
19,030
1,383
72,407
9,463,174
Jason Cai retweeted
Useful collection of notes for learning operating system and Linux kernel internals linux-kernel-labs.github.io/… #Linux #operatingsystems
4
99
373
47,984
A fascinating talk on managing page faults in Linux and some of the developments going on by the kernel team. The talk starts claiming that linked lists are an immoral data structure and if you are using them for anything for which you care about performance, you are committing sin. That's obviously because of the cache misses that a linked list will suffer. And yet Linux VMAs were based on linked lists only till 1995. See the attached slide from the talk (Looking up a VMA) on the evolution of VMA storage from linked list in 1992 to the Maple Tree in 2022. And that brings us to the best part of the talk .. The best part of the talk is the discussion on Maple Trees, a new data structure for managing VMA (Virtual Memory Area). Mathew describes Maple trees as an in memory RCU-safe B-tree (slide from the talk - Maple Tree). The first time I saw a discussion of using B-tree as a in-memory collection was in a blog post from ScyllaDB [1]. And here, we have a great argument in the context of the newer cache lines based CPU architectures - (paraphrasing from the talk) "B-Tree was originally invented to store stuff on disk, but memory is now far enough away from CPU (1600+ instructions for an L3 cache miss) it’s worth using storage data structures to access stuff in memory." I looked up on the internet and found a few more articles that discuss Maple Trees [2, 3, 4]. Looks like some good reading materials for the coming weekend .. The talk contains many other interesting details of managing the VMA, something called large folios. The basic idea is that we shouldn't be managing memory in chunks of 4 KB, but much more, may be in chunks of 16 KB or 64 KB, which ensures that we have much lesser sized lists of chunks to manage. A great talk .. here's the link .. Faster and Fewer Page Faults (youtu.be/TEHRMzZ01nE?si=FoMC…) [1] The Taming of the B-Trees (scylladb.com/2021/11/23/the-…) [2] Introducing maple trees (lwn.net/Articles/845507/) [3] Maple Tree (docs.kernel.org/core-api/map…) [4] The Maple Tree, A Modern Data Structure for a Complex Problem (blogs.oracle.com/linux/post/…)
39
2
176
41,930
The exercise on Pandas in Learn Python the Hard Way 5th Edition is going to actually teach how to study "programmer docs." You know what I mean. Everything is clearly described, but nothing makes sense because it's all described in isolation. Here's my explanation.
24
43
11
261
31,536
In case you don't know this document exists. #golang github.com/golang/go/blob/ma…
1
19
1
124
14,025
best way to describe pointers
146
2,801
214
17,091
960,368
The slides and video for my "Cautionary Tales on Implementing the Software That People Want" to GSTS 2023 is now up! It starts at 00:56:23 in the first video here: huawei-events.de/en/gsts-202…
1
2
1
16
1,740
🤣🤣 Who did this? I’m crying #gamedev #retrogame #indiedev
159
2,834
445
9,179
974,235