1,017 karma · joined April 3, 2021
[1] https://chromium.googlesource.com/v8/v8/+/refs/heads/chromiu...
Given GP never hears about forced labor, GP may want to express that the percentage of people who are being forced to labor is low, or nearly impossible. "sth doesn't exists" is somewhat extreme.
https://m.youtube.com/watch?v=4d95fnGrSy8
I remember it contains two use cases other than AWS RDS.
1. for j = 1..i-1, we're trying to "insert" a[i] into a[1..i-1]. Try simulating it yourself. I believe you will find out it's insertion sort.
2. for j = i..n, we're replacing a[i] with the smallest element among a[i..n].
Why it works: either (1) or (2) alone CAN DO THE SORTING. They do not conflict with each other.
Therefore, we can "optimize" this algorithm in at least two ways.
BTW, hope future powerful compilers can do this :)
I guess some protesters are peaceful, but some are not. Some police are calm but some are violent. Different countries apply different filters in order to get their expected views of Hong Kong.
Supposing you are going to write nontrivial concurrent programs like toy Raft, I believe that looking through RPC logs will be the most painful thing.
In contrast, on a single core, gdb is good enough. And there are also advanced examples like VMware's fault-tolerant VM and FundationDB's deterministic simulation. If we can debug concurrent programs without dirty tricks, just like single-threaded ones, I guess utilizing concurrency will be as handy as calling a function.
https://github.com/oceanbase/oceanbase/commit/e0126ff4ef328d...
By the way, should GitHub send an email to the owner if any workflow has been delayed for an unreasonable time?
"Divide and conquer" in CP world seems to be specific to those problems whose subproblems are not overlapping (therefore completely "divided"), e.g. merge sort, segment trees.
Considering the classic problem "Tower of Hanoi", is it "divide and conquer"? No to CP people, and even Wikipedia [0] does not explicitly regard it as "divide and conquer".
MIPS is dead, and Loongson was not commercially successful in the past ten years. But I do admire their work on developing CPUs with good performance independently. It seems to be necessary for China, especially after US sanctions. Hope they'll finally get on the right way.
> Think about the official upgrade of 8GB of memory to 16GB, you need 1500 soft sister coins.
"soft sister coins" seems to be RMB (人民币). When I put those Chinese characters into Google Translator, it gives me the phrase "soft sister coin".