MurphyA/hacker-news huggingface dataset:
by pydry | 2025-07-02 14:53:56+00:00
The push wasn't to test every individual method but to test every individual code change. This confusion you had was shared by many others and caused havoc because if you unnecessarily couple every single interface in the code base to a test then every change breaks a test. This became worse for many people than not writing tests at all.

>I have only seen TDD used poorly, as a crutch, an alternative to thinking deeply about the problem space. If it can be done well I have not personally seen it. Perhaps SQLite, but such projects are an oddity.

Theyre not that odd. I've applied it to every type of code base I've come across.

>To me tests at the spec level are largely user acceptance tests which are indeed very useful.

Where I use TDD the tests are exactly like this - written at the highest level possible using a shared framework that integrates sophisticated fakes which carefully balance realism, speed and flakiness. They all follow roughly the same pattern across the code base and that pattern mirrors the spec scenarios.

Where I see TDD used by people who complain about it they usually think the idea is to write a test for a class because they're thinking about writing a class. It is generally taught badly.
by incomingpain | 2025-07-02 14:54:30+00:00
We have a situation where bias and censorship is wiping out social media companies left and right. Many are showing up to claim they'll stand up for free speech.

I love 'never biased', no shadow banning is great. etc.

Essentially every social media goes wrong when they violate these. I signed up for upscrolled and I got a very nice 4 digit handle on here.

I kept reading about them:

>UpScrolled is proudly headquartered in Australia — a country where freedom of speech is protected by law, and where the risk of government overreach is minimized. UpScrolled’s servers are hosted in Dublin, Ireland — a global and central tech hub at the heart of the EU’s fastest-growing economy.

Erm... that's making me think the operators are either lying or in for a rude awakening if they manage to ever get big enough.

>https://upscrolled.com/en/rules-and-policies/

These folks are lying; uninstalled the app.

Clear bias and censorship in these rules. Exact same problems of bluesky rules. Just like i predicted with bluesky, no chance of success.
by dmix | 2025-07-02 14:54:52+00:00
> gutted

FAA laid off 400 employees out of 45,000.

National Highway Traffic Safety Administration laid off 4% of their employees

CFPB was responsible for probing Tesla for any customer complaints around auto-financing loans but they had not yet ever formally fined or sued Tesla. They were closest attempt at being 'gutted' with around 90% reduction, but all layoffs were halted by a judge.

So if he did try to gut them he failed.
by _DeadFred_ | 2025-07-02 14:54:59+00:00
I've said it before on here, but in the 1980s even a coked out corporate raider couldn't say the things the 2025 pro-technocapitalists routinely say without being ostracized from society for being a psychopath. People used to see other people as actual people, not disposable work units.

Think Warren Buffett style billionaire versus Elon Musk style.
by jqpabc123 | 2025-07-02 14:55:11+00:00
If taxis get cheaper, people will use them in even more situations, like daily commutes. Why not?

Sure --- if roborides are cheap enough and safe enough, more people will use them.

The immediate question for Tesla and their investors --- can they really provide "safe" robo rides using their current approach?

This is far from being proven since Tesla is only rated as Level 2 autonomy which according to Tesla itself, requires constant supervision. Placing passengers and the public in danger with inadequate technology is a textbook legal definition of negligence.

The longer term question; assuming they solve FSD --- is can they make tons of money from cheap rides? Enough to justify their current outlandish stock price.
by komali2 | 2025-07-02 14:55:41+00:00
> I respect that very much, but I think that the problem is exactly that it _isn't_ that simple. If they don't want any of the Jews to die, they should be saying also, alongside "stop the war", how can it be assured that Jews won't die later.

Stopping genocide shouldn't require first providing some solution to Israel's existential anxiety. Israel should simply stop doing a genocide, right now.
by trimbo | 2025-07-02 14:55:48+00:00
> If this were true, the market for EVs would decline in entirety

I was just reading a different article[1] that pointed out 4 of the top EV sellers in the US (Tesla, Ford, Kia and Hyundai) have announced Q2 drops in sales. BMW is the another top EV seller whose sales dropped in Q2[2]. Of major sellers, only GM has risen.

It's probably too early to say that "the market for EVs" is declining, but this doesn't seem great.

[1] - https://www.wsj.com/business/autos/tesla-sales-q2-2025-e2087...

[2] - https://www.theautochannel.com/news/2025/07/01/1549392-bmw-r...
by diggan | 2025-07-02 14:55:51+00:00
> If you're a smart, ambitious person who wants to work hard and advance your lot in life, are you really going to stay in Spain knowing that the government is going to take half of everything incremental thing you do?

I'm smart (anecdotal, but still) and ambitious, and I moved to Spain, and I'm planning to stay here, yeah. Yes, I'm OK with the government taking the excess profits us "rich" people earn so others who cannot work still can survive and even get health-care, like the rest of us.

> This is basically inviting your best and brightest to move to the US and other low tax countries.

If that leads to all the soulless money-chasers move to the US, then that sounds like a positive to me. I prefer a society where everyone gets equal chance and a good life, regardless of income, and the ones who want to ruin that can continue to build their utopia in the US.
by toss1 | 2025-07-02 14:56:07+00:00
And messing with the UI is the single most salient thing that makes regular people hate using computers, and do so only when it is required.

It doesn't matter what is their justification about making something "better".

The industry has reached saturation; there no longer exists any justification for making a UI somehow "better" to invite in more users. Changes ONLY create frustration and anger among existing users, which is essentially everyone at this point.

Changing the way a UI operates is like in an automobile swapping the position of the accelerator and braking pedals and moving the windshield wiper controls to the center console, heater controls to a steering-wheel stalk, and then claiming it is a "New Fresh User Interface!!". Of course people CAN adapt, but they will not like it. And automakers are already discovering how moving features from tactile knobs & buttons to a center touchscreen is hated and are going back to what people know and like.

It is past time for the software industry to get the message.
by ceejayoz | 2025-07-02 14:56:07+00:00
https://www.npr.org/2022/05/20/1100356233/elon-musk-sexual-m...

> The woman says Musk asked her friend to perform sex acts in exchange for him buying her a horse. Earlier, the flight attendant had reportedly been encouraged to learn how to give massages.

> The flight attendant filed a sexual misconduct claim against Musk, and SpaceX paid her $250,000 in 2018 as part of a settlement that's bound by non-disclosure and non-disparagement clauses, Insider reported.
by CodesInChaos | 2025-07-02 14:56:45+00:00
I'm surprised that an optimizing compiler lets this case even hit the general `pow` runtime function. I'd have expected it to replace this call by `x * x` so it doesn't hit the expensive general `pow` function.

I find it strange as well that no unit test caught this. Squaring a negative number is definitely a case I'd expect to be covered. Perhaps compiler optimization made this case work in the unit test, allowing the runtime function to break? And then it broken in .net where the JIT compiler is dumber than the C++ compiler?
by MongooseStudios | 2025-07-02 14:56:57+00:00
Yours is not the first post asking about this here. Which in and of itself says something.

I don't use them, at all. I briefly tried the local tab completion stuff offered in JetBrains products. It lasted an hour or two. The log messages it wrote didn't sound like me, and the "copilot pause" was immediately frustrating.

The boilerplate argument comes up a lot, but I really don't see it as the huge issue that would drive me to try and make Clippy generate it for me. That sort of "boring" work is great for "meditating" on the thing you're doing. Spending time adjacent to the problem putting up the scaffolding makes you mentally examine the places where things are going to interact and gives that little seed of an idea time to grow a bit. Become more robust.

Later, when there's an issue, you can ask the human that wrote something questions about it and they will probably have at least a fuzzy recollection of how it was built (and why it was done that way) that can offer ideas. Best you can do is hope the LLM doesn't hallucinate when you ask it about all the broken stuff.

Ultimately I see neither value nor "power" in the current "assistants." They generate the statistically most median output and often get it wrong. They make stuff up. They have no understanding of anything, and they don't learn from mistakes. If they were a person you'd be asking serious, but nearly rhetorical, questions about whether or not to fire them.
by PaulHoule | 2025-07-02 14:57:41+00:00
People I know from South Asia complain bitterly about the quality of education they get but they get it.

Funny though I used to be proud of the Chinese language collection at my Uni which is one of the greatest outside (any) China and I still am but once I got really interested in the Chinese language it hit me that it's like 1% of what they have at Beijing University.
by cbeach | 2025-07-02 14:58:50+00:00
Musk was never a conventional squeeky-clean ultra-safe stage-managed CEO that speaks through a media team.

That didn't stop him from raising the value of $TSLA from a penny stock to one of the largest companies in the world.

With his initial investment, and with him as the product architect of the first Tesla vehicle (the Roadster), he transformed an academic project with no products to the world's most valuable automaker.

An automaker so valuable, it's worth more than Toyota, BYD, GM, VW, BMW, Mercedes, Ford and Honda COMBINED.

People have shorted $TSLA before because they underestimated Musk, and let their own personal affectations cloud their understanding of Tesla's potential, and Musk's singular genius.
by nodesocket | 2025-07-02 14:59:13+00:00
Absurdly idiotic statement. Tesla has gone from 50k cars sold in 2015 to 1.78m in 2024. Their marketcap has increased from 31b to 1.3t in the same period. That’s not even factoring the potential growth of Optimis.

I bought a model Y dual motor in 2021 is it’s been hands down my best car ever. Almost zero maintenance. Yet more proof of never take stock advice from HN, in fact do the opposite in most circumstances. Elon derangement syndrome at its finest.
by Nevermark | 2025-07-02 14:59:26+00:00
It blows my mind that I can ask for 50 synonyms, instantly get a great list with great meaning summaries.

Then ask for the same list sorted and get that nearly instantly,

These models have a short time context for now, but they already have a huge “working memory” relative to us.

It is very cool. And indicative that vastly smarter models are going to be achieved fairly easily, with new insight.

Our biology has had to ruthlessly work within our biological/ecosystem energy envelope, and with the limited value/effort returned by a pre-internet pre-vast economy.

So biology has never been able to scale. Just get marginally more efficient and effective within tight limits.

Suddenly, (in historical, biological terms), energy availability limits have been removed, and limits on the value of work have compounded and continue to do so. Unsurprising that those changes suddenly unlock easily achieved vast untapped room for cognitive upscaling.
Ask HN: Are Product Hunt upvotes/comments often delayed or filtered?
by DimKat | 2025-07-02 14:59:53+00:00
Hey all, We launched our macOS app today on Product Hunt - it’s called Wallper, a lightweight tool for setting 4K animated video wallpapers.

https://wallper.app https://www.producthunt.com/products/wallper-wallpaper-engine-for-macos

We posted it in relevant communities (like Mac-related subreddits and Discord servers) and got a lot of people saying “just upvoted!” or “left a comment!” - but on Product Hunt it’s like none of it registers. Our launch barely moves.

I’ve read before that PH filters out certain votes (like those from direct links or low-trust accounts), but this feels… off. Like even organic engagement doesn’t count?

Has anyone else run into this? Would love to hear from other SaaS folks - is this just how launches go now, or are we doing something wrong?
by littlestymaar | 2025-07-02 15:00:23+00:00
The US has a strong record of interfering with foreign countries in way that advantage their interests, but at the same time the fact that you bring the “color revolution” phrase is a strong marker that you are reading way too much Russian (imperialist) propaganda disguised as anti-imperialism, which really is no better than feeding on the neoconservative narrative.
by reverendsteveii | 2025-07-02 15:00:55+00:00
time to put a pebble on the pile of anecdotal evidence for exercise as a life-changing nootropic. for two years now I've been doing 20 minutes of resistance training and 20 minutes of cardio every day and it helps so much with everything that its reached a point where my wife will flat out tell me "go lift" if I'm being irritable or having a hard time focusing.
by saubeidl | 2025-07-02 15:01:00+00:00
There's no such thing as being "without ideology". To quote Zizek, leading expert on ideology:

> I already am eating from the trashcan all the time. The name of this trashcan is ideology. The material force of ideology - makes me not see what I'm effectively eating. It's not only our reality which enslaves us. The tragedy of our predicament - when we are within ideology, is that - when we think that we escape it into our dreams - at that point we are within ideology.
by throwaway31131 | 2025-07-02 15:01:10+00:00
What goes around comes around...

From March of this year,

"As we know, big tech companies like Google, Apple, and Amazon have been engaged in a fierce battle for the best tech talent, but OpenAI is now the one to watch. They have been on a poaching spree, attracting top talent from Google and other industry leaders to build their incredible team of employees and leaders."

https://www.leadgenius.com/resources/how-openai-poached-top-...
by AnotherGoodName | 2025-07-02 15:01:17+00:00
Even without this device there's been some consideration to the thought that the conscious brain is merely an observer since it appears to activate after the unconscious brain takes actions. You just go along with what the unconscious mind did in actions and speech and you convince yourself you meant to do that after the fact.

https://pmc.ncbi.nlm.nih.gov/articles/PMC3746176/

So here it could indeed just fire off speech and you know what? We'd probably convince ourselves that we absolutely meant to do that. In fact it could be a very interesting experiment (with willing participants). Mess with the inputs the device receives so it's not really the person activating it, let it do it's thing and see if they notice when they do/don't have control of it.
by probably_wrong | 2025-07-02 15:01:22+00:00
It's only a benefit for the French researchers who can get a position in France. Those who can't are already forced to emigrate (and we're back to where we started) or to quit science entirely.

But retention is also a problem. How many of those scientists will stay in Aix-Marseille? Refugees, almost by definition, go back to their country once things calm down. And life in a country where you don't speak the language is not conducive to staying there long.

I'm not saying everything will be bad - there's a plus associated to getting great minds for cheap. But if I were a French scientist fighting for grants I would definitely feel odd about my country explicitly telling me "French need not apply".
by like_any_other | 2025-07-02 15:01:22+00:00
It's not a secret - perhaps this source is more palatable to you, although it lacks exact figures: Mathematicians divided over faculty hiring practices that require proof of efforts to promote diversity - https://www.science.org/content/article/mathematicians-divid...

Or this one: Required ‘diversity and inclusion’ statements amount to a political litmus test for hiring - https://www.wsj.com/articles/the-universitys-new-loyalty-oat...

Or this one: Berkeley Weeded Out Job Applicants Who Didn't Propose Specific Plans To Advance Diversity - https://reason.com/2020/02/03/university-of-california-diver...

Or this one: A recent report from the Goldwater Institute found that 80% of job postings for Arizona’s public universities required applicants to submit a statement detailing their commitment to diversity, equity, and inclusion. - https://www.goldwaterinstitute.org/policy-report/the-new-loy...

Or how about directly from the horse's mouth: Harvard Faculty of Arts and Sciences Will No Longer [i.e. they did until 2024] Require Diversity Statements - https://www.thecrimson.com/article/2024/6/4/dei-faculty-hiri...

And a few more admissions of past use of these statements:

https://www.nytimes.com/2025/03/20/us/diversity-statements-u...

https://www.nytimes.com/2024/06/06/us/politics/dei-statement...

https://www.nytimes.com/2024/12/05/us/university-of-michigan...

https://www.nytimes.com/2023/09/08/us/ucla-dei-statement.htm...

Oh, and just to show my statement on unofficial discrimination being higher wasn't uninformed speculation:

With State Bans on D.E.I., Some Universities Find a Workaround: Rebranding - https://www.nytimes.com/2024/04/12/us/diversity-ban-dei-coll...
by kccqzy | 2025-07-02 15:02:04+00:00
It's bad habits from a younger age. I remember in my 20s, I didn't need to exercise at all and yet my body felt perfect. And so was my mental health. It was after several years of sedentary lifestyle that it clicked for me that my health was declining and exercise was needed to restore it. I suspect this could be the case for many: you don't need exercise and your body remains in a tip top shape when you are young.
by johnisgood | 2025-07-02 15:02:16+00:00
Been there, done that.

That said, I agree that it is my fault that self-contradicting virtue signaling hypocrites always find a way to irk me.

And I think it is good for the world to know that the LICENSE often means jack shit, unless when companies of significant size are involved.

Again, we all agree that they put it there to cover their own asses, not that Europeans cannot download, install, and run their product, right?
by Analemma_ | 2025-07-02 15:02:19+00:00
The tl;dr is:

1. Apart from ADHD medications, which are very powerful, most drugs and weird obscure supplements have little effect (there are some intriguing but noisy results about peptides).

2. Exercise— especially weightlifting and HIIT— is also very powerful. There's evidence of a dose-response curve where light exercise is good but intense is better.

Arguably this is pretty unsurprising, from an evolutionary perspective. It would be strange if our brains had "one weird trick" to perform a lot better with no downsides, since if it existed evolution should've found it. But being in good shape confers large benefits.
by derektank | 2025-07-02 15:02:20+00:00
I don't know what exactly you're referring to here. The model itself is not a copy, you can't find the copyrighted material in the weights. Even if you could, you're allowed under existing case law to make copies of a work for personal use if the copies have a different character and as long as you don't yourself share the new copies. Take the Sony Betamax case, which found that it was legal and a transformative use of copyrighted material to create a copy of a publicly aired broadcast onto a recording medium like VHS and Betamax for the purposes of time-shifting one's consumption.

Now, Anthropic was found to have pirated copyrighted work when they downloaded and trained Claude on the LibGen library. And they will likely pay substantial damages for this. So on those grounds, they're as screwed as the 12 year olds and their parents. The trial to determine damages hasn't happened yet though.
by chaosharmonic | 2025-07-02 15:02:30+00:00
> Since the license ban the use and installation in EU, I would ask: It is possible to formulate a license that claims: "The restriction A is motivated to protect our ass but we will not directly or indirectly enforce it against you"?, Such kind of phrasing in the license could be categorized or called "isolating clause" but I don't know if judges could consider it a circumvention of the law.

Maybe not the exact thing you're talking about, but that description reminds me of the Alliance for Open Media -- their codec licenses are royalty-free, but the same terms revoke your usage rights if you sue anyone for the use of these formats.
by stevenday | 2025-07-02 15:02:48+00:00
Yottar | Full Stack Engineer | Full-time | Remote (UK)

Yottar is a startup on a mission to speed up the shift to clean energy. We’re building a SaaS platform that helps energy developers figure out where they can connect new infrastructure - like EV chargers, batteries, or solar - to the electricity grid. The team today is three co-founders and we have just raised our first funding round primarily to increase the size of our tech team, so that we can accelerate our platform development.

We're looking for an experienced Full Stack Engineer who's excited to build something from the ground up and help shape both the product and how we build it alongside the CTO (me). The ideal candidate is someone who happy making decisions, owning solutions end-to-end and working with a high degree of autonomy. Our tech stack is boring: Django, Python, PostGIS and we're proud of that.

- Location: Remote, UK (with in person meetings, travel paid, no more than monthly) - Salary: £70-100k + generous equity (based on experience and competence) - Deadline for Applications: 16 July

More details and apply here: https://www.linkedin.com/jobs/view/4260892132/
Ask HN: LLM for Browser Inspector/DevTools/DOM?
by scosman | 2025-07-02 15:02:50+00:00
Has anyone built a LLM that lives inside the browser dev-tools? I want to be able to ask questions about my current DOM. i.e. "Why is this element not centred" or "what's adding the space below this?"

I can somewhat do this in cursor, but it doesn't have the full DOM, just the current page. CSS from other files or dynamic content leave a big gap in it's context.
by idkwhattocallme | 2025-07-02 15:02:57+00:00
For the most part, I'm indifferent to layoffs. Companies over hire and then course correct. It's part of the game. But for MSFT, it rubs me the wrong way. In the past 5 years, their stock has soared (150% on stock and doubled in valuation). They are insanely profitable ($82B profit). They are diverse (no existential business risk). The fact that they are unceremoniously laying off 30K of the people that helped them get there drives home it's just a paycheck, do your job, but know it can and will end when convenient for the company. I know folks will argue, low performers, but really. This "productivity apps" company hired them, onboarded them, made $82B in profit, surely they can figure out how to uplevel folks. Also how do you have a layoff every couple of months for 3 years. Thinking about the middle class in the previous generation, it was unions that effectively ensured a labor job meant a secure future. I wonder if that's the solution (again).