MurphyA/hacker-news huggingface dataset:
by PaulHoule | 2025-04-15 14:29:36+00:00
I think of environmental conflicts that disappears in the US thanks to manufacturing moving to China.

In the 1990s there were numerous manufacturing plants in the US (two on the South Hill of Ithaca alone) that were found to be contaminated with solvents like

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

People thought it was great stuff, you wouldn't believe how hard it is to get cutting grease off things after you turn them on a lathe and vapor de-greasing makes it go away just like that.

China has some of the most advanced agriculture on the planet including a "vertical farm" that can sell straw mushrooms for about $2 a pack where they are super-proud that humans only touch them with a forklift. (Contrast that to the labor-intensive mushroom farms of Pennsylvania where somebody cuts each one with a knife.)

We are pretty omnivorous (I think mealworms start with "meal") and my obsession with anime and Japan has turned into serious sinophilia but my wife and I are hesitant to eat "Chinese Food" grown in China because of widespread environment contamination, I mean they've been building up heavy metal stocks ever since Emperor Qin Shi Huang poisoned himself with mercury.
by franktankbank | 2025-04-15 14:29:36+00:00
I've been thinking lately that we don't properly account for things like security. I've also been thinking lately that a lot of people have terrible ethics and are more than happy to engage in nepotism and or fraud. Don't know what to do about it personally, I just try to keep my needs small and be happy with what I've got while trying to prepare my own children to have some level of a good life.
Ask HN: What is the best font and styling combo for readability on the web?
by duxup | 2025-04-15 14:29:47+00:00
As I read HN I often come across personal blogs / websites that look great and are visually easy to read, but I change my mind on what is "best" all the time.

Admittedly this is a matter of opinion and the web is not short of opinions, but I'm wondering what users here have found are the most pleasant to read font and styling combinations?
by francio445 | 2025-04-15 14:30:05+00:00
Using the outcome of the last head-to-head matchup as a predictor can be misleading without proper context. The time elapsed since that game matters significantly—it could be from just a few games ago or over 20 games back. In that time, both teams may have undergone considerable changes in form, strategy, injuries, rotations, or momentum.

My model accounts for each team's evolution by incorporating trends from recent performances against all opponents, not just head-to-head matchups. This includes rolling averages and exponentially weighted metrics over the last 25 games, which help capture current form, streaks, and regressions.

As a result, the most recent head-to-head result only holds substantial predictive weight if it occurred recently and aligns with both teams’ current trajectories. Otherwise, it's treated as just one small piece of a much larger picture.
by potato3732842 | 2025-04-15 14:30:10+00:00
I'm not so sure.

The tariffs most certainly will dissipate but we can't discount the chance that they may be replaced with actual written in law voted on by congress and signed by the president taxes that have similar but much more durable effects.

Manufacturing and heavy industry really hates off-shoring. They only do it because the sum total of other policy makes it the only viable option. I can see them taking a decent haircut in pursuit of some longer term goal.
by adgjlsfhk1 | 2025-04-15 14:30:13+00:00
oh that can be done in 3 easy steps.

1. win a world war that destroys the economy of every other country in the world for a decade.

2. destroy about the past 50 years of technology and all knowledge of how manufacture it.

3. Kill 90% of people over retirement age to lower demand for housing, healthcare costs, and retirement benefits.

In the modern world with modern technology there's a lot less productive work out there for people without specialized education. We could do a better job of training more people for trades jobs (e.g. plumbers, electricians etc), and removing college requirements from some professions (e.g. med school and law school could probably be college level education rather than post college) but anyone saying that we're going back is just lying.
by margorczynski | 2025-04-15 14:30:48+00:00
Still, this kind of outsourcing of manufacturing (or even more food production) puts the US in an incredibly uncomfortable position, especially that China is its main geopolitical enemy.

What if a war erupts? Suddenly the US cannot produce a lot of essential stuff - I think Covid was a good example of that happening.

Of course the question is can this be done and what will be the price if so.
by pjc50 | 2025-04-15 14:30:51+00:00
US unemployment rate floats along at about 4%, and is kept from going any lower to prevent inflation.

There are localized problems - and it's all very similar to the post-Thatcher UK - but you cannot be serious in imagining that employment would magically return to the exact spots it left. In fact that's one of the sub-problems OP talks about: so you want a US Shenzen. Where are you going to put it?

(UK equivalent: we're discussing keeping Scunthorpe blast furnaces open, so that we can have a "secure" supply of "domestic" steel .. made entirely from imported ingredients. Because the mines the plant was built to refine are empty)
by srveale | 2025-04-15 14:31:03+00:00
> The obsession with AI (and other vapourware) in our industry ... fuelling the hard-right — who coincidentally are very much using AI.

Is it useless or not? If it's vapourware, why would you care if the other side uses it? If the far right is using it successfully, then by definition it is not vapourware, right?
by csense | 2025-04-15 14:31:12+00:00
> Work to do what?

Bring back manufacturing, and make the US economy work better for workers.

> Why do you think this has anything to do with tariffs or manufacturing?

Because usually the best-paying jobs were in factories, especially if you didn't have a college degree. A lot of towns in the Rust Belt were economically dependent on a local factory -- think cars or steelmaking. Often, part of the reason these factories were so high paying is because the jobs were unionized.

Companies moved overseas to save money on that expensive labor.

Now, companies have all the negotiation leverage. "If you unionize / demand higher pay, we'll move operations overseas" is a real and credible threat, as countless companies have already done it.

Tariffs are supposed to make operating overseas more expensive. Undo the economic justification for moving the jobs overseas and they will come back.

This takes away the companies' negotiation leverage. The "If you unionize / demand higher pay, we'll move operations overseas" threat isn't credible if everyone knows overseas manufacturing is super expensive due to tariffs.

I grew up in the Rust Belt and I'm old enough to properly remember when some of those factories were still operating. I saw with my own eyes what used to be a respectable blue-collar community decay into an economic wasteland. The drugs are getting bad. A lot of people have lost hope. Young ambitious folks see no reason to stay here.

The problem and its underlying factors are so obvious to me that I'm constantly amazed to see well-informed, intelligent people who don't seem to understand it.
by rickdeckard | 2025-04-15 14:31:15+00:00
> China generates over twice as much electricity per person today as the United States. Why? >> This appears to be completely wrong? All the stats I can find say that the US has about 4x the per capita electricity generation of China.

I believe the comparison is absolute production, not per person. Anything else would be odd. Considering China has 4x the capita of US it would mean that in absolute terms China is producing 8x the energy of the US. In reality it seems to be roughly 2x (although both sources are a bit outdated):

US 2023: 4.18 trillion kilowatt-hours (kWh) of electricity from utility-scale generators. Additionally, small-scale solar photovoltaic systems contributed around 73.62 billion kWh 1.

China 2021: 8.53 trillion kilowatt-hours (kWh) of electricity

--

But the staggering difference is how much of the electricity is attributed to the Industrial sector:

China: 70% (~6 trillion kWh)

US: 26% (~1 trillion kWh)

So overall China allocates 6x the electricity to production compared to US...
by digianarchist | 2025-04-15 14:31:23+00:00
1. Jobs.

2. Profits.

3. Refined products can be exported to countries that don't have refinement capabilities. Not just the US and China. This gives Canada better trade leverage.

4. Security. A big one that's emerged in the last few weeks.

I don't see either Poilievre or Carney talking about this which is disappointing but not unexpected.
by bluGill | 2025-04-15 14:31:26+00:00
I would act against China - because China is making political moves that I do not like. (they are supporting Russia in Ukraine, they are building up to invade Taiwan, they are supporting terror in the middle east...)

By acting against China that means I applaud moving manufacturing to Vietnam. I want to help Botswana grow - and I wish there were more countries in Africa I could name that seem to be on a good path (I cannot name the majority of countries in Africa, the ones I can are because they are in the news for bad things happening. I'm not even sure Botswana - I mostly know about them because last time I brought up Africa someone from there said their country was an exception).

Overall the world is better off with a lot of trade. Comparative advantage is real. There are things I can do that I don't want to become good at. However we also need to be aware that not everyone in the world is the friend of freedom and some must be cut off lest they grow. Nobody is perfect though, so you can't cut off everyone.
by tshaddox | 2025-04-15 14:31:51+00:00
According to my perhaps naive interpretation of that, the "degree of surprise" would depend on at least three things:

1. the laws of nature (i.e. how accurately do the laws of physics permit measuring the system and how determined are future states based on current states)

2. one's present understanding of the laws of nature

3. one's ability to measure the state of a system accurately and compute the predictions in practice

It strikes me as odd to include 2 and 3 in a definition of "entropy."
by chneu | 2025-04-15 14:32:33+00:00
Reading this without a side, all they're asking you is to prove what you said, which is that leftist student groups are being racist/violent/antisemitic in an organized way.

You haven't shown any evidence to support your notion that "both sides the same" in regards to left/liberals banding together to promote their hateful ways.

There is, however, widespread and constant organization on the right to enact hateful/racist/antisemitic rhetoric. One can just go to foxnews for that.

Your argument is weird and I think the majority of people wouldn't buy it.
by looseyesterday | 2025-04-15 14:32:44+00:00
On crime they most centrically do, watch the China Show (not the bloomberg one) on youtube. One example given on the show is that Once you go into northern villages and small towns you start seeing propganda posters on why you shouldn't take drugs. Homelessness is widespread and present too but you just wont see it in city centers more on the outstkirts.
by toomuchtodo | 2025-04-15 14:32:47+00:00
Americans are cosplaying (voting their belief system, not what they'll do, the "revealed preference"), as they do as farmers [1] [2] [3] [4], as they do as "rural Americans" [5]. It is an identity crisis for tens of millions of people [6]. Their crisis is our shared political turmoil. Happiness is reality minus expectations.

From the piece: "The people most excited about this new tariff policy tend to be those who’ve never actually made anything, because if you have, you’d know how hard the work is."

[1] https://www.agriculturedive.com/news/agriculture-shifts-farm...

[2] https://www.terrainag.com/insights/examining-the-economic-cr...

[3] https://www.ers.usda.gov/topics/farm-economy/farm-labor

[4] https://www.mckinsey.com/industries/agriculture/our-insights...

[5] https://www.youtube.com/watch?v=6q_BE5KPp18

[6] https://www.theguardian.com/us-news/2025/jan/11/there-are-a-...
by smcl | 2025-04-15 14:32:53+00:00
I think they should want to do something - it's just that torpedoing your ties with your closest allies and trade partners then lighting the stock market on fire is maybe not that thing. China spent decades building up their supply chains, infrastructure and manufacturing capacity and had support for this at state level.

If the US sees it as a threat and wants to do something it should maybe look to what China has done. Because tbh what Trump did re Tariffs is pretty close to "nothing" all things considered.

They won't though because as soon as you have someone saying "look, let's just put together a staged plan so that in, say, five years we'll produce X% more electronics domestically..." you'll have a Republican shrieking about "five year plans" and how the USA is becoming communist
by ahmadalisaeed49 | 2025-04-15 14:33:01+00:00
Location: Berlin, Germany

Remote: Preferred, available for US timezone as well Willing to relocate: Not at the moment

Technologies: Ruby on rails, React, Javascript, PostgresSQL, Redis, OpenAI, Langchain, Django, Flask

Résumé/CV:https://drive.google.com/file/d/1cQ_RR0cFv1dJQDNUsRh8fHprcU9...

Email: ahmadpucit49@gmail.com
by jdhwosnhw | 2025-04-15 14:33:07+00:00
Sorry, yes, you did miss the point. Specifically for the case of estimating volume, you just need enough points interior to the hypersphere to get good sampling statistics (which would become a problem in and of itself, by the way, at sufficient dimensionality). But estimating volume (or pi) is normally just used as a pedagogical example of rejection sampling, it’s not (usually) what people actually use the technique for. Typically its used to draw samples from one distribution, X, that is notionally hard to draw from, by instead drawing from Y. The sphere case is just an example (its actually easy to draw from a hypersphere without rejection sampling) - but if you did try to use rejection sampling specifically, it would take you a long time and lots of compute resources to generate those samples (in high dimensions)
by Teever | 2025-04-15 14:33:24+00:00
This isn't just ego. This is an impending existential issue.

America needs to increase manufacturing capacity if it wants to maintain hegemony and possibly world peace.

China will soon have the ability to take Taiwan and Korea and Japan. If that happens it's game over for any American interests and perhaps democracy as a whole.

Wargames[0] paint a grim picture of an upcoming conflict between China and America over Taiwan with the US barely winning at a great cost including the loss of many ships, aircraft, and the depletion of missile stocks.

The Chinese have a naval production of 260 times that of America and account for an ungodly amount of global steel production so they'll be able to bounce back faster than the US can. With a lead time for producing American missiles measured in months and years it will be just a matter of time before they take the countries in the region that are critical to American manufacturing if they're so inclined.

[0] https://selectcommitteeontheccp.house.gov/sites/evo-subsites...
by ks2048 | 2025-04-15 14:33:34+00:00
He wasn't that bad at baseball compared to a random person or a minor league player.

He was that bad at baseball compared how good he was a basketball.

The article seemed correct IMHO,

> What happened when he switched from basketball to baseball? He went from being an MVP champion to being a middling player in the minor leagues. 2 years later, he was back to playing basketball.
by pomarie | 2025-04-15 14:33:46+00:00
Yeah, noticed that too—what's the core graphite.dev feature you're interested in? PR stacking, by chance?

If that's it, we actually support stacked PRs (currently in beta, via CLI and native integrations). My co-founder, Allis, used stacked PRs extensively at her previous company and loved it, so we've built it into our workflow too. It's definitely early-stage, but already quite useful.

Docs if you're curious: https://docs.mrge.io/overview
by abxyz | 2025-04-15 14:34:28+00:00
Subdomains were chosen historically because it was the sane way to run different infrastructure for each service. Nowadays, with the globally distributed frontends that Google's Cloud offers, path routing and subdomain routing are mostly equivalent. Subdomains are archaic, they are exposing the architecture (separate services) to users out of necessity. I don't think cookies were the motivation but it's probably a nice benefit.

https://cloud.google.com/load-balancing/docs/url-map-concept...
by pc86 | 2025-04-15 14:34:28+00:00
You can't seriously be defending the treatment of Malinowski. The agents did not wear body cameras in direct violation of ATF policy. They conducted an early-morning no-knock raid for a search warrant when they knew Malinowski would be there (having cancelled an earlier one because he wasn't home). This wasn't an arrest warrant, it was a search warrant. They covered up the doorbell camera so if he had checked it he wouldn't see the half-dozen police vehicles outside.

They could have done the exact same thing in the middle of the day when nobody was home and everybody would be alive today.

They could have waited until daylight and knocked on the door with their warrant and walked right in.

They could have worn body cameras as ATF policy and common sense demands.

"Arms trafficking" is a funny way to say "buying guns legally and reselling them at gun shows" but let's say every single thing said about him is 100% true. If you think someone is a gun runner why wouldn't you take their house when they're not home to get all the evidence without having to worry about what they're doing? Why wouldn't you arrest him at the airport, where he almost certainly isn't armed, and police presence won't raise any alarms?
by pjc50 | 2025-04-15 14:34:32+00:00
A great analyst once taught me the response question: "yes, and so what?" What's so magic about manufacturing as opposed to all the higher value work of the US economy? Have people not noticed that the average American is still richer than the average Chinese person by a long way, and (yes, painfully) more so than the average European?

If you're going to talk wars, then .. US military manufacturing is still the world leader yet again. Plus the nukes.
by WorldMaker | 2025-04-15 14:34:38+00:00
> Not every house has enough space for battery storage.

Then it becomes a building/complex/neighborhood community building problem in some cases. The shift to a properly distributed scale is that it can be bottom-up rather than top down. Also, some large scale projects may still be needed, it isn't an either/or, a mixture of provides flexibility in the long term. But you certainly need to worry about planning fewer large scale projects if you are expecting a market full of small ones.

> And management of millions of small batteries is harder than management of thousands of bigger batteries. Millions of small batteries are also vastly more expensive than thousands of bigger battery projects.

The cost is more distributed rather than being only one or two infrastructure companies in a region. The management is more distributed with more entities involved. Top-down control is harder, but in some ways that is as much a feature as a bug. Local batteries can prioritize local needs, that's a feature versus "just do what your central provider wishes". Grid-wise needs become a larger market with more players, which also means more competition and more interesting prices.
by wormlord | 2025-04-15 14:34:39+00:00
I think the collapse of the American Empire is no more preventible than the collapse of the British, Spanish, or Roman empires. The issues with the US being the reserve currency has been known for a while now (and was even predicted by Keynes before the Bretton-Woods summit):

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

Any discussion of "bringing back manufacturing" that doesn't mention government spending or social programs to educate and upskill the population is not genuine. The current leadership are fools and ideologs who will only hasten the decline, which might actually be better globally if it lowers emissions. Time will tell I guess.
by dashundchen | 2025-04-15 14:34:45+00:00
Sure, I bet if you found a physically threatening note at your work with pictures from someone following you near your home, you'd be cool with it. Totally normal and non-criminal behaivor.

> Whistleblower is a journalist word used to establish the good guy in a story.

It's not a journalist word, there is an official whistleblowing process to Congress and OIG the mentioned employee went through.

But you would either have needed to have read and understood the article you're commenting on or not be commenting in bad-faith.
by rcxdude | 2025-04-15 14:34:46+00:00
build.rs is a useful escape hatch for if you need to do something more complicated, but the nice thing about cargo is that for the most part the defaults work. Generally build.rs only comes in if you have to deal with C, C++ or some other external ecosystem. A pure rust crate basically never needs to touch it, across multiple platforms and build configurations.
by Ajedi32 | 2025-04-15 14:34:47+00:00
Inputs are cheaper (and thus have lower tariffs in an absolute sense) than outputs. I think the author underestimates the ability of the market to adapt to incentives.

They're still correct though that there are plenty of good reasons why we don't do manufacturing in the US right now, and tariffs do absolutely nothing to change that reality, they just artificially make the alternative worse at significant expense to consumers.
by francio445 | 2025-04-15 14:35:11+00:00
The 66.45% it's pretty average and might also be sometimes misleading. The model lacks many features and has been developed for around 3 weeks now. I'm only 20 studying my first year in Software Engineering and the project was a lot of fun to create and to se it in action, sometimes being able to outperform the odds (not so consistently to be used to make and edge obviously as it is practically impossible)
by pjattke | 2025-04-15 14:35:34+00:00
Rowhammer is back in the browser!

At #USENIXSecurity25, we present Posthammer, the first pervasive browser-based Rowhammer attack using non-uniform Rowhammer patterns in JavaScript.

The key ideas:

• Refresh postponement delays DRAM refreshes to make hammering more effective.

• Lanes craft non-uniform Rowhammer patterns from minimal eviction sets.

The result? 61% of DDR4 devices can be compromised from JavaScript!

More information: https://comsec.ethz.ch/posthammer
Minute Video from Single Image
by dubrado | 2025-04-15 14:35:37+00:00
Every video below is produced directly by the model in a single shot, without editing, stitching, or post-processing. Every story is newly created. Crazy this was done with a single Tom and Jerry Screenshot, also powered by Hyperbolic for computer power.

Demos: http://test-time-training.github.io/video-dit/ Paper: http://test-time-training.github.io/video-dit/assets/ttt_cvpr_2025.pdf…
by dustbunny | 2025-04-15 14:35:53+00:00
As a gamedev, I almost never need the total time spent in a function, rather I need to visualize the total time spent in a function for that frame. And then I scan the output for long frames and examine those hotspots one frame at a time. Would be nice to be able to use that workflow in this, but visualizing it would be much different.