HN user

nitrobeast

71 karma
Posts7
Comments44
View on HN

Functions that return random results do not fit into the most common testing paradigms. I have seen people try to verify the distribution of random results, and even that could have concerns for theoretical flakiness. I wonder if the nature of the function contributed to the apparent lack of testing coverage here.

There seem to be at least two large factions in CCP when dealing with Ant Financial. In exaggerated terms: 1. The statists who want strict control over financial giants like Ant Financial. They created the new regulations. 2. The neo liberals who are much friendlier to capitalists. They helped rush through the IPO.

My guess is that neo liberals got wind of the impending regulations, which is the reason for the rushed IPO schedule and Jack Ma’s criticism of Chinese and international banking systems.

A few things I realized in the past few years:

1. Elite class does exist in the society, and they exert tight control on the flow of information in traditional media, e.g. TV, newspapaer etc. Their control is loosened in the Internet age initially, which led to the rise of Trump. Trying to correct this, a narrative of blaming "fake news" was used to pressure leading companies like Google, Facebook and Twitter to toe the elite line.

2. Censorship of "effective" speech, which is speech that can reach vast audience, always exists in any society. Just think back about the "mask is useless" than "everyone should wear mask" media campaigns in the in the past few months, on traditional media. Internet weakened the traditional guardians of "effective" speech. With the multiple challenges faced by the elites today, e.g. COVID, class and racial conflicts, disruption to internal orders, the elites are trying harder to take control of important nodes of Internet, so they can build consensus and move the society to a direction they desire.

One thing that surprised me in the US while applying for credit card: private companies can get access to my past addresses and many other personal info of me. I don’t ever want these information provided to profit companies, joined with facebook’s ad network etc. Having the government as the sole guardian of credit history and other related data might not be a bad idea.

I'm unfamiliar with marketing but I suspect the situation is much better now with all the tracking. And I can imagine for many APIs, people do know what most frequently used features are, and what typical users are like.

This statement seems very true, even to the point of “duh” for people who have designed and maintained semi-widely used API or applications. I wonder where the language design wisdom to the contray come from.

It has been said that other countries, including US, in fact have more rare earth deposits. If they choose to relax environmental laws and disregard patents held by Chinese corporations, more rare earth would be produced.

And if Europe develop a company that threatens US leading tech / surveillance companies like Facebook / Google, or becomes the leader of the next tech wave, be prepared for US government actions to take it down. See: Japanese semi conductor industry in the 80s, Alstim, Bombardier, Tiktok.

It is not clear expiration time per layer is much better than the commonly used strategy of compacting to a single layer periodically.

For KiWi, storing deletes separately could be interesting but I’m not sure about its exact disk layout and how the resorting works.

Slightly off topic. After the Covid-19 masks are not useful / we must wear masks fiasco, if you are willing to think it through, it is painful how most media are not independent at all. At best they are beholden to group thinks, parroting government officials. At worst they are just instruments of propaganda. I believe it is time for each person to control the information they receive, just like diet. AdBlockers are a good first step.

I thought the article was pretty explicit in comparing US against european countries that are still able to build?

Totally this. Covid-19 really opened my eye on how all governments basically lie to avoid “fear” in public.

This is an ok thing for some Americans to believe in, but at least Google encrypted all its traffic between data centers specifically to avoid NSA eavesdropping. And many people in the rest of the world don’t think US respects the rule of law as it advertizes.

It is presented here that name before type is easier to read as a matter of fact. I’m not so sure. In math or languages where type info is optional, we often write “x = 5”. When type info is required, it is natural to evolve to “int x = 5”. Readers would naturally focus on the latter part. When we write “x: int = 5”, the type info is in the middle. We cannot skip it even when we just want to focus on the name and value.