HNHacker News
TopNewBestAskShowJobs

huahaiy

351 karma · joined November 7, 2011

I am a technologist, with an academic background in psychology and computer science.
submissionscomments
huahaiy··on History of China's Nine-Dash Line
Taking glance at the map is exactly the wrong way to look at this. If that works, how would you explain Hawaii and Alaska? What about taking a glance at the map of Greece vs Turkey, with Greeks taking all the islands offshore Turkey? Guess what, you will probably invoke history for that. Once you do that, the Chinese claim does not sound that absurd, isn't it?
huahaiy··on [dead]
I think he has a point.
huahaiy··on China issues demolition order on world’s largest religious town in Tibet
This is the thing. With the same background and education, I am a nobody when I am Han, and I am speaking for myself, not representing anyone. That would not be the case when I am Tibetan. I would be given a platform to broadcast my dissatisfaction with Chinese government, so on and so forth.

What does this tell you?

huahaiy··on China issues demolition order on world’s largest religious town in Tibet
If I were a Tibetan and had earned a Ph.D. in US. I probably would have been a member of the Tibetan elite, I would not be writing in the HN comments section here, but in the NYT opinion section to condemn the Chinese government by now. Wouldn't that be more realistic?

I am sure my cousin in law would not agree with whatever I could have written in NYT as a member of the Tibetan elite though.

What I am saying is that the elite may not represents the best interests of the people they claim to represent.

huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Nah, if Tibetan Buddhism is willing to reform itself, or reforms under pressure (like Catholics did in the face of Protestant), it will still be there for thousands of years. In that land, it is just hard not to believe in something supernatural.

On the other hand, theocracy is never a good thing. Separation of state and religion is.

huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Of course we were told how those rebellions were subdued in the end, because the evidence was in plain sight. There was a ruin on the mountain across the river where we lived. I was told that it used to be a monastery. Some rebellious monks held up there for a long time and the army wasn't able to take it after suffered heavy losses, so they used heavy artillery to bombard it to the ground. When we played in the hills, it's not uncommon to pick up spent shells, etc.

As to cultural revolution, there's nothing special in Tibet. Fired up populace did all the damages. At that time, Tibetan common people were equally zealous about Chairman Mao, if not more so.

huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Not really. Chinese in Korean is in a foreign land as a minority. Tibetan carries weapons on their own land as a majority, minority Han there do not carry weapon on their body (but they do keep firearms at home, especially officials).
huahaiy··on China issues demolition order on world’s largest religious town in Tibet
It should be obvious that I am Han. I agree that this analogy would give some people an impression that I considered Tibetans savages. But no, that's not how I saw it. The way I saw them is not unlike the way Jon Snow saw the free folks. Tibetan and Han actually share the same ancestry. We happened to be separated by a natural barrier (unlike the wall in GOT that is man made) only a couple thousands years ago. We are basically the same people.
huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Nah, I grow up there. I knew the people. Using a Game of Throne analogy, Tibetan people are like free folks (or wildings) and Han people are like people south of the wall. When I was there growing up, every male Tibetan carry weapons (including boys) on their body. They are a militant people, yes they are deviant Buddhists too, but that doesn't mean they are not militant.
huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Chinese govenment's justification in Tibet is mainly legalistic, as follows: Tibet was a part of the Qing Empire. Qing handled over all administrative power peacefully to Republic of China. People's Republic of China overthrow Republic of China, therefore inherits all of its administrative rights. Of course, the later part is muddier because officially the civil war is not over.

On the ground, for the people, the real justification are different. It used to be the liberation of common Tibetan people from a regressive serfdom and a brutal theocracy, not unlike the communists' justification for themselves elsewhere in China. Similarly, after Deng, the justification is more about improving people's economic status and living conditions.

huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Not far from Kangding. You will pass Kangding if you go there from Chengdu.
huahaiy··on China issues demolition order on world’s largest religious town in Tibet
Allow me to share some of my perspectives.

I grow up in Seda County in the late 70 and early 80s, and am intimately familiar with culture there. Tibetan Buddhism is not what people in the west think what it is. It is actually quite repressive and brutal. After 1950s, many regular Tibetans were glad to worship the new religion of Chairman Mao instead. Yes, it was true. Chairman Mao was worshiped as one of major Gods at Tibet when I grow up there. Then Deng Xiaoping took power and demolished Chairman Mao worshiping (one of his major blunders, on the same scale as that of 89 Tienanmen massacre), now we got this huge slum town of "religious learning" at a hot basin of Buddhist rebellions. Yes, going unchecked, that town would surely become such a terrorists base, because Buddhist monks in that area had always been very militant and had launched numerous rebellions in 60 and 70s. As a child, I heard all kinds of horrific stories Tibetan monks and their rebellious army inflicted on the Chinese soldiers and civilians alike. For that reason, many Han Chinese families kept firearms at home in that area, a rare thing in China.

On the other hand, Tibetan people in general are good people. One of my cousins married a Tibetan man and we are good drinking buddies. However, Tibetan religious upper class are representatives of a theocracy at worst: greedy, deceptive and brutal.

I am surprised that this town was tolerated for so long. I guess Deng's power was still strong even after his death.

huahaiy··on [dead]
AR-15 is needed because that is what Second Amendment requires. Currently, police and military use them as the most common personal weapon, hence the militia (as defined as all the able bodied adult male citizen by law) needs to use the same. It's needed by civilian precisely because it is a weapon of war.

Read Washington DC. vs. Heller to understand this. Don't argue on the Internet.

huahaiy··on The story behind China's 'Minecraft' military camouflage
These are not. But they belong to the same unit of those amphibious light tanks, so used the same camouflage. During a landing operation, these long range rockets are likely deployed on the decks of flotilla as artillery support for the beachhead assault.
huahaiy··on The story behind China's 'Minecraft' military camouflage
In the sea. When conducting a beachhead assault, these amphibious light tanks will come out of some giant amphibious assault ships, which are typically parked far away from the beachhead so enemy on land cannot see them. So the effect will be that a swarm of floating tanks suddenly appears and quickly approaches the land. This concept is obviously designed for an island invasion scenario.
huahaiy··on The story behind China's 'Minecraft' military camouflage
Those are amphibious fighting vehicles, used for landing from the sea. The sea, as we know, are blue colored.
huahaiy··on Geoff Hinton on AlphaGo and the Future of AI
I am actually disappointed with his view. I thought he had a psychology background and should have known better than his obvious reductionist view.

What neural network have demonstrated so far is that it can do a form of perception given enough ground truth data. Speech recognition and image recognition are all form of perception. Go playing is also mostly about perception: recognizing good patterns.

There are multiple issues with extrapolating this achievement to anything more than what it is.

First, perception is a only minuscule part of the brain's functionality. One only needs to glance at the table of content page of any cognitive psychology 101 textbook to see that. Second, it is not clear human's perceptual ability is the same as what NN has demonstrated. For example, human's perceptual learning is mostly based on unsupervised learning, not supervised like in NN.

Finally, his dismissal of "traditional" approach is extremely short-sighted. He seems to suggest that we can solve AI by just throwing more hardware and power at NN. This view is very narrow minded.

He also seems to overlook the high possibility that the "traditional" approach could benefit similarly from the advances in hardware and power. I predict the next breakthrough in AI will come from that direction.

huahaiy··on Metabase: Why we picked Clojure
It shows that Lisp programmers really don't care about balancing parenthesis, because editors do that for them.
huahaiy··on Metabase: Why we picked Clojure
From a cognitive point of view, learning a large number of idioms is more manageable for human beings than having to reinvent the mental constructs from primitives every time. This human capacity of dealing with idioms is what called "chunking" in psychology (https://en.wikipedia.org/wiki/Chunking_%28psychology%29)

Human has unlimited memory capacity and fast memory access, whereas human logical processing power is fairly limited and error prone. That's why any real human language has a large vocabulary.

huahaiy··on Metabase: Why we picked Clojure
With some minor assumptions, my assertion would be correct. Yours needs a lot of strong assumptions to be mathematically feasible.

Basically, you are saying, when the max of a sequence is increasing, the mean/median stays or even decreases. That would require that the frequencies on the lower end to increase much faster than that on the higher end, which is certainly not the case. For example, the number of C programmers is growing faster than the number of Java programmer today? No one would think that's correct.

huahaiy··on Metabase: Why we picked Clojure
> Lisp has been around for 50+ years, hasn't really helped its popularity much. But I'm willing to bet with you that in 14 years from now, Clojure will have even fewer users than it has today.

Computer science has too short a history to make any sound arguments from history. However, if you insists on arguing from history, let's look at the long term trend. Would you agree that the trend of programming language is progressing to higher and higher level of abstraction and further and further away from the machine details? From machine code, to assembly language, to C, to Java, and now FP languages, this trend of mainstream programming language evolution is very clear. In this sense, if you take Lisp as a pioneer of function programming, it was simply ahead of its time.

If you are implying that Lisp syntax is somehow an impediment to its popularity. That may well be. It's a personal preference issue. Some people like more syntax in their language, some people like less. If you are in the later camp, Lisp is surely very attractive. For example, in your kotlin one-liner, there are just too much syntax to understand "()", "..", ".", "{}", etc. Life is too short, I just don't want to learn all these idiosyncrasy invented by someone just for the sake of being different. I wished I had knew Lisp sooner, certainly not having programmed for 20 years.

I am sure you will lose that bet.

huahaiy··on Metabase: Why we picked Clojure
Exactly the point. In many other languages, every programmer can write their own "even" and "filter" with their own idiosyncrasy. However, in Clojure, every one uses the same set of high level functions in the standard library, because they are sufficiently rich to express most of the programming concepts, without having to roll your own.

In Clojure, readability is obtained through standardization. Every Clojure programmer instantly knows what the functions in the standard library do. Because there's not much syntax in a Lisp, code is very easy to read once one knows the functions.

huahaiy··on Metabase: Why we picked Clojure
even? is a predicate that test if the parameter is an even number, as the name suggests. ? is part of the function name, not a syntax symbol (there's not much syntax in a Lisp, after all). By convention, function name ends with ? are predicates (or Boolean functions) in Clojure.

Any competent Clojure programmer would likely have known most of the Clojure core functions by heart: map, reduce, filter, etc. There are maybe about a hundred of them?

Unlike imperative programming languages, where you use three primitives (assignment, condition and loop) to construct everything, in Clojure, you use these core functions to construct your program. In a sense, the process of learning Clojure is the process of learning the use of core functions. These functions are simply at a higher level of abstraction than the three primitives, hence some people say that Clojure is more expressive, because it's closer to human thoughts than Von Neumann machine specificity.

huahaiy··on The Beauty of Clojure
One would normally use a name space to group together code that deals with a foreign library. So, upgrading to a new version of the library is just a matter of 1. update the dependencies by changing the version number of the library in project.clj; 2. load the library; 3. changing the name space (a file) that deals with the library, and 4. changing the corresponding test name space (a file), and make sure all tests pass. That's it.

The Clojure coding process is REPL driven, so basically one tests every changes. Also, one codes in a bottom up fashion, starting from simple and small functions, and composing them into big functionalities. There' no big design up-front. It's an exploratory process, and it's fun.

huahaiy··on The Beauty of Clojure
My understanding is that the Clojure community discourages the use of macro. The preference is to use data over functions, and functions over macro. The reason is that macros do not compose well.

Yes, macros are good for developing DSLs, so they are mostly used in developing libraries, but most application developers do not need to use macro. The wide spread macro usage probably contributed to the fragmentation of CL community. Taking such lessons to heart, Clojure library authors tend to reuse commonly accepted DSL forms, e.g. hiccup is the DSL for writing HTML, and most authors have adopted it when developing their own libraries. I think this is a good thing.

huahaiy··on The Beauty of Clojure
In Clojure, one doesn't need to rely on tooling to do refactoring, because things are isolated, loosely-coupled to begin with. There isn't much "unintended side effects" when one change Clojure code, because Clojure code consists of a bunch of functions working on immutable data structures.

The feel of programming in Clojure is very very different from what you are describing in a language such as Java. I have programmed Java since 1997, ever since I switched to Clojure, all those pains and fears of changing code has evaporated. I am not afraid of changing things in Clojure at all, because I know the effects of my changes are local.

Of course, Clojure toolings do include some convenient features such as "extract function", "rename symbol", etc, but these are just some niceties that save some typing and editing. They are not indispensable like those in Java.

huahaiy··on The Beauty of Clojure
If you mean keywords by those used in maps, like {:some-key 1 :another-key 2}, yes, they have project wide semantics. However, these are just data. Changing the name of a key in data is just a matter of global search/replacement.

A fundamental point in the philosophy of Clojure is the emphasis on raw data. This is actually the reason why we love the language, because it lets us work directly with data, instead of dealing with language related complexity, such as API, type, syntax, etc. The Clojure community only realizes this advantage a couple of years ago. This Rich Hickey's talk in JavaOne gives a flavor of this idea: https://www.youtube.com/watch?v=VSdnJDO-xdg

huahaiy··on The Beauty of Clojure
It depends on whom you ask.

As a person who doesn't even know what language this is written in, I don't think it is readable at all. For example, this "Select(i => i + 2)" piece looks totally strange for me. What does it do?

After learned Lisp, I feel there's too much syntax to learn for non-lisp languages. Every language introduces some idiosyncratic syntax. Life is too short, I just don't want to learn syntax that someone else invented to just be able to say "this is different".

huahaiy··on The Beauty of Clojure
If working with emacs, clj-refactor in CIDER can do renaming of symbols.

Of course, renaming symbols in Clojure is not such a big requirement as in Java IDE, because most of the things are isolated within a single function in Clojure. Consequently, renaming symbols is just a convenience feature, not a must-have feature for Clojure development.

huahaiy··on The Beauty of Clojure
vim with fireplace.vim and paredit.vim plugins are pretty nice as well.
← PreviousPage 6 of 7Next →