It's funny how many people are emotionally attached to the delusion that they are psychic. I honestly wonder where they got that idea.
FYI: xenophobia =\= racism
> We should have Japan and we should have Saudi Arabia and we should have all of these countries who are literally ripping us off left and right.... They should pay for our $200-billion deficit.... We are supporting -- we are literally supporting -- Japan, which is the greatest money machine ever created, and we created it to a large extent. -Donald Trump
> There is going to be a tremendous backlash against what Japan is doing in this country -- sucking the lifeblood out of it because of our stupid policies. Our policy is to have free trade, but Japan is not reciprocating. -Donald Trump
There were complaints about Japan not opening its domestic market to American products, about Japan buying up American companies, about cheap Japanese knockoffs of American products, and about Japanese companies being tightly connected with the government. The phrase back then was "Japan, Inc.," rather than today's "China, Inc."
Interestingly, while Japan was criticized for copying American products, the hysteria about Japan really took off as Japan began competing seriously with the United States in high-tech sectors. There's a clear parallel to China there. Now that Huawei has invested heavily in R&D and leads in 5G equipment, we suddenly hear about Huawei stealing Cisco IP in the early 2000s (the two companies settled in 2004, and one of the major claims was that Huawei copied an implementation of strcmp). China has become more serious about protecting IP and now invests as much as the US in R&D, but the issue of IP theft is suddenly urgent.
Given the demographics of HN, it's probably difficult for most people here to imagine this, but in the 1980s, there was palpable fear in the United States that Japan was taking over. There was a general angst about the United States being displaced as the #1 world power, but there was also fear of the rival's inscrutable and ominous culture.
As you correctly point out, there is a hysteria about Russians at the moment, as well. I think the US is primed for this because of the long history of anti-Russian propaganda during the Cold War.
When it comes to China, I see all sorts of extra negative characterizations of Chinese people coming into play. I've seen threads here on HN which people go on about how Chinese students are cheaters, and how Chinese culture promotes cheating. That's just an outrageous and ignorant characterization of Chinese culture, and I do think it represents a type of widespread prejudice.