HNHacker News
TopNewBestAskShowJobs

zhemao

1,723 karma · joined August 3, 2011

ASIC Design Engineer Computer Architecture PhD grad

Website: http://zhehaomao.com/

Github: https://github.com/zhemao

submissionscomments
zhemao··on Berkeley’s Attack on Housing
During the primary season, I saw a Bernie Sanders sign in a window (I think it was their local campaign HQ) and a homeless man sleeping in front of it.
zhemao··on Program FPGAs with Go
> In Chisel, you write Scala that is compiled to Verilog(?)

Berkeley grad student here. The current Chisel compiler generates an intermediate representation that can be compiled to any target. Our Verilog backend is definitely the most developed, but we also have an interpreter that can directly simulate the IR.

zhemao··on Program FPGAs with Go
Under "Familiar Tooling", the webpage indicates that you will be able to use a "streamlined subset" of Go on their platform.
zhemao··on Culture Clash at a Chinese-Owned Plant in Ohio
For an example of this in action, you need look no further than a few states South along the Mississippi.

https://www.bloomberg.com/news/features/2017-03-23/inside-al...

zhemao··on Culture Clash at a Chinese-Owned Plant in Ohio
It's not so much culture as regulatory environment. Chinese labor laws are more lax, or at least more laxly enforced. Things are done pretty differently in the American Midwest, with its history of labor organizing.
zhemao··on The young Japanese working themselves to death
No company would be stupid enough to explicitly tell its employees that they must work overtime or be fired. Instead, they create an environment in which you feel social pressure to put in more hours. People choose to work long hours because they get affirmation for it from their managers and colleagues. It's a cultural problem.
zhemao··on The young Japanese working themselves to death
So then why do they do it? Why would you pay 1.25x per hour worked when you could hire more employees and have everyone work normal hours. It's one thing to have crunch time. It's another for excessive overtime to be the normal way of doing things.
zhemao··on The young Japanese working themselves to death
Your spouse hates you because you work all the time. You work all the time to avoid your spouse.
zhemao··on The young Japanese working themselves to death
All of the government's attempts to address this excessive overwork just seems lackluster.

> Earlier this year the government introduced 'Premium Fridays', encouraging firms to let their employees out early, at 3pm, on the last Friday each month. They also want Japanese workers to take more holiday.

That's a single digit number of hours every month. It's meaningless if workers are still doing massive amounts of unpaid overtime.

> Earlier this year the government proposed limiting average overtime to 60 hours a month though firms would be allowed to up this to 100 hours during "busy periods" - well into the karoshi red zone.

And suddenly every period is a "busy period".

> Critics say the government is prioritizing business and economic interests at the expense of the welfare of workers.

Not even. I'm sure they could actually be more productive if they weren't literally working their employees to death.

Here's an idea. Make companies pay extra compensation if employees work overtime. I guarantee you companies will be literally pushing their employees out the door at 6 PM then.

zhemao··on Water Margin: Searching for the sources of China’s great rivers
The translation I read was by Sidney Shapiro, which was done in the 1980s.
zhemao··on On Campuses Far From China, Still Under Beijing’s Watchful Eye
Chinese students studying at American universities may not necessarily be looking to set down roots in the US. Most of them return to China after getting their degrees.

As for the question of assimilation, it takes a generation for cultural attitudes to shift. People aren't going to abandon the cultural values of their homeland. But their children will grow up as Americans and adopt more American ways of thinking.

zhemao··on China Doesn't Understand the Concept of American Chinese Food (2014)
The US has a lot of international cuisines. And as a country of immigrants, there's not much of a "native" culinary tradition. But there are distinct variations in local cuisines. For instance,

New England: clam chowder, lobster rolls

Southeast: barbecue, cornbread, grits, sweet tea

Texas: steaks, Tex-Mex

Louisiana: Cajun and Creole cuisine

Southwest: similar to Mexican cuisine

California: avocados on everything

zhemao··on Japan labor shortage prompts shift to hiring permanent workers
Or maybe Americans save less and borrow more because necessary things like education, housing (in certain cities), and healthcare are so damn expensive.
zhemao··on China Doesn't Understand the Concept of American Chinese Food (2014)
Yeah, SF is crap and overpriced, but the surrounding cities have pretty good food. Like every other metropolitan area, you have to get out of the city center to the suburbs where Chinese immigrants actually live.
zhemao··on China Doesn't Understand the Concept of American Chinese Food (2014)
Seriously, though. California, and the Bay Area specifically, is one of the best places in the US to find authentic Chinese food. OP's spouse is just a snob. Sure, a lot of restaurants feel the need to put some "standard" dishes like General Tso's Chicken on the menu, just in case. You don't have to order those. Outside of tourist traps like SF Chinatown, Chinese restaurants mainly serve Chinese food to a predominantly Chinese clientele.
zhemao··on China Doesn't Understand the Concept of American Chinese Food (2014)
That "burger" actually looks pretty good though. I think that was just a case of lost in translation. Chinese people know what Western hamburgers look like. There are McDonalds all over China.
zhemao··on China Doesn't Understand the Concept of American Chinese Food (2014)
It doesn't take such arcane rituals to find more "authentic" Chinese food in major US cities. Many Chinese restaurants serve both the Americanized dishes and traditional Chinese dishes. You just have to know what to order.
zhemao··on John Coltrane Draws a Picture Illustrating the Mathematics of Music
Huh, yeah you're right, there's a mistake in Coltrane's original version.
zhemao··on John Coltrane Draws a Picture Illustrating the Mathematics of Music
Oh man, I'm so jealous that you got the chance to talk with Yusef Lateef. That must have been awesome to pick his brain about music. He's one of my favorite musicians (alongside Coltrane himself of course). Eastern Sounds is still one of my favorite albums. He was one of those musicians who had a unique sound but was always trying new things.
zhemao··on John Coltrane Draws a Picture Illustrating the Mathematics of Music
Not quite. It's actually a hexatonic scale, AKA the whole tone scale. Each note is a whole step up from the last one. The outer circle is a C whole tone scale and the inner circle is a B whole tone scale (i.e. they're offset by a half step). The circles and lines are used to highlight other harmonic relations, like the circle of fifths. The following blog post explains it in more detail.

https://roelhollander.eu/en/blog-saxophone/Coltrane-Tone-Cir...

zhemao··on Nobel economist takes aim at rent-seeking banking and healthcare industries
Hasn't he moved away from that plan? I thought the spending plan was now to fund repairs on existing roads.
zhemao··on A.I. Duet: A piano that responds to you
I get the feeling this one was trained on Cecil Taylor.
zhemao··on Man jailed 16 months, and counting, for refusing to decrypt hard drives
The difference is that the authorities can crack open a safe without the suspect cooperating. But it's virtually impossible to decrypt something without the receiving the key.
zhemao··on Man jailed 16 months, and counting, for refusing to decrypt hard drives
Wikipedia indicates that it's still in effect.

https://en.wikipedia.org/wiki/Indefinite_detention_without_t...

This is mainly because nobody has standing to challenge the law. To my knowledge, no US Citizen has yet been detained as an enemy combatant since the law was passed. It will be an interesting court case once that happens.

zhemao··on Joyous Africans Take to the Rails, with China’s Help
Maybe that's Trump's plan to MAGA. Get rid of all those pesky civil liberties and democratic procedures getting in the way of progress. /s
zhemao··on Joyous Africans Take to the Rails, with China’s Help
The US debt is more than 100% of GDP ...

It's not necessarily a problem so long as the debt-financed spending accelerates growth. GDP is the amount the economy generates per year. Debt is relatively fixed (unless you borrow more or have a crazy interest rate). As long as the interest on public debt doesn't outpace the tax revenues set aside to service it, they should be fine. Djibouti is a relatively undeveloped country, so infrastructure development can bring them a long way.

zhemao··on Why many Indian politicians have a criminal record
Again, it's a review of a book written by an Indian author. Perhaps the book has further evidence that these charges aren't just political posturing.
zhemao··on Why many Indian politicians have a criminal record
Really? The article says something negative about Indian politics therefore it sounds racist? You realize this is a teaser for a book written by an Indian author, right? Indian politicians being more likely to have criminal allegations against them is an easily verifiable claim.

And why do you think The Economist is generally racist? Because they don't shy away from criticizing shitty behavior just because the people doing it happen to be non-White? It's not exactly a phenomenon that's unique to India. Endemic political corruption on a local level are endemic to developing democracies around the world. Even the US had it at a certain stage of its development. Ties to organized crime were a defining characteristic of big city politics in the 19th century.

zhemao··on Lyft surges to the top 10 on App Store following the “DeleteUber” campaign
Or there are fewer Trump supporters in the urban areas where ridesharing apps tend to operate.
zhemao··on Paralyzed man regains use of arms and hands after experimental stem cell therapy
> you give back all that talent straight to the USA's biggest competitors

Or to Canada. The US isn't the only western country highly skilled workers emigrate to.

← PreviousPage 2 of 27Next →