MurphyA/hacker-news huggingface dataset:
by Spooky23 | 2025-07-03 12:28:30+00:00
This ice stuff is more than that. The law and order stuff is more about getting law and order focused people like you onboard.

You should read about how Mussolini came to power and consolidated control. We’re not building a $49B paramilitary force and database to find typos in 50 year old naturalization documents to deport their descendants for law and order. ICE is something else.
by wkat4242 | 2025-07-03 12:30:21+00:00
> The actual meeting topic, while it can be relevant, is secondary. You establish and reinforce the pecking order, sense allegiance and subversion, or, feel out potential for reinforcing bonds or mitigating fallouts.

In other words, a total waste of time for me. I don't care about pecking orders, I ignore them anyway.

> This is why people focussed on 'doing the actual work' hate meetings, while carreer focussed people love them.

Management isn't the only option to make a career in.
by danbruc | 2025-07-03 12:30:41+00:00
No, that is correct, those two n represent slightly different things. n + 3 is the value after n XOR n + 1 XOR n + 2, so the n in the array index expression is n + 2 from the explaination and n + 3 results from (n + 2) + 1. I thought about how I could make this less confusing but it just became more confusing in my mind, so just used n in both cases.
by pragmatic | 2025-07-03 12:30:54+00:00
Yes but no.

It’s decisions.

Ninety five percent is all the decisions made from every person involved.

The fastest delivery I ever encountered were situations where the stakeholders were intimately familiar with the problem and made quick decisions. Only then did speed of coding affect delivery.

In large organizations, PMs are rarely POs. Every decision needs to be run up the flagpole and through committee with CYAs and delays at every step.

Decision makers are outsourcing this to LLMs now which is scary as they are supposed to be the SME.

It’s the same old same old where the generals make decisions but the sergeants (NCOs) really run the army. That’s where I feel leads/principles/staff really make out break the product. They are the fulcrum dealing with LLM from above and below.
by mritchie712 | 2025-07-03 12:31:01+00:00
> try completing a GitHub task with the GitHub MCP, then repeat it with the gh CLI tool. You'll almost certainly find the latter uses context far more efficiently and you get to your intended results quicker.

This is spot on. I have a "devops" folder with a CLAUDE.md with bash commands for common tasks (e.g. find prod / staging logs with this integration ID).

When I complete a novel task (e.g. count all the rows that were synced from stripe to duckdb) I tell Claude to update CLAUDE.md with the example. The next time I ask a similar question, Claude one-shots it.

This is the first few lines of the CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. ## Purpose This devops folder is dedicated to Google Cloud Platform (GCP) operations, focusing on: - Google Cloud Composer (Airflow) DAG management and monitoring - Google Cloud Logging queries and analysis - Kubernetes cluster management (GKE) - Cloud Run service debugging ## Common DevOps Commands ### Google Cloud Composer ```bash # View Composer environment details gcloud composer environments describe meltano --location us-central1 --project definite-some-id # List DAGs in the environment gcloud composer environments storage dags list --environment meltano --location us-central1 --project definite-some-id # View DAG runs gcloud composer environments run meltano --location us-central1 dags list # Check Airflow logs gcloud logging read 'resource.type="cloud_composer_environment" AND resource.labels.environment_name="meltano"' --project definite-some-id --limit 50
by ajnin | 2025-07-03 12:31:02+00:00
Client certificates have existed for basically as long as encryption. Passkeys are more than that, and that is a crucial point. They allow to verify the identity of the signing device, and allow access only if the device is "legitimate" from the point of view of the remote service. That is a very big encroachment on the user's privacy and freedoms and a new very big step in the process of tying everything even more tightly to accounts and devices controlled by the big service providers and making it more difficult to get out or to enter the market for new actors.

Think Trusted Computing. Soon it will be impossible to log in to some media streaming platform, for example, if you don't have a passkey sanctioned by an OS with a TPM. Then everything will be locked in and the only flaw will be our eyes and our ears.
by skullt | 2025-07-03 12:31:31+00:00
There's a bit of a trick in that solution: n is assumed to have the lower two bits clear so for an arbitrary n the array would really be:

[(n & ~3), 1, (n & ~3) + 3, 0][n % 4]

where the (n & ~3) makes sure those lower 2 bits are cleared. But note that we only ever can look at the first element when n % 4 == 0. In that case, (n & ~3) == n already. And further, we only ever can look at the third element when n % 4 == 2. In that case (n & ~3) == n - 2, so (n & ~3) + 3 == n + 1. Hence the array can be simplified to the one given in the other comment.
by akudha | 2025-07-03 12:31:33+00:00
Some people are just plain...weird? I was reading reviews of some book on Amazon (can't remember which one now). Someone gave the book a one star review, because "it was delivered two days later than it was promised" while simultaneously saying they haven't read the book. How is it the book's/author's fault that Amazon delivered the book late? Why are they giving lowest rating for a book without even reading it? None of this makes any sense
by pjc50 | 2025-07-03 12:31:52+00:00
> this PR is 90% AI!", _ignoring any previous failed attempt_

Someone pointed out that AI has a gatcha / intermittent reinforcement effect to it, which explains a lot of its power to capture minds. Sometimes it produces great results. The entire history of industrial process control is about trying to always produce good, or at least identical, results. These two are incompatible.

AI is right in the sweet spot of winning the demo but failing in mass production, and I think people are too optimistic about this being fixable.
by throw101010 | 2025-07-03 12:32:21+00:00
You need a refresher on what police state means:

> a political unit characterized by repressive governmental control of political, economic, and social life usually by an arbitrary exercise of power by police

Simply enforcing laws is not "becoming a police state", the current administration is doing far worse than this, and is actually blatantly and arbitrarily breaking laws according to multiple courts in various jurisdictions.

This includes ICE which has become a tool of this police state by deporting people (including in a case a US citizen, a two-year-old girl) without due process.
by puersum | 2025-07-03 12:33:40+00:00
I believe we need to find more effective ways to integrate AI into our workflows. Anyone who is actively trying to adopt AI has likely encountered similar challenges, yet a definitive solution has yet to emerge. In my view, a key principle at this stage is to assign AI minimal responsibility and highly specific tasks.

For example, I'm currently experimenting with an agent workflow for stock research. I've set up two AI roles: a 'Bullish Guy' and a 'Bearish Guy' and have them debate the pros and cons of a specific stock. The premise is that through this adversarial process, the AIs are forced to research opposing viewpoints, leading to a more comprehensive understanding and a superior final analysis. The idea was inspired by the kinds of arguments you see on social media.
by aleph_minus_one | 2025-07-03 12:34:29+00:00
> asking for explanations as the starting point instead of "I read all of your code and give feedback." That just won't be sustainable given the rate at which text can now be output.

I claim that this approach is sustainable.

The idea behind the "I read all of your code and give feedback." methodology is that the writer really put a lot of deep effort into making sure that the code is of great quality - and then he is expecting feedback, which is often valuable. As long as you can with some effort find out by yourself how improvements could be done, don't bother asking for someone else's time/

The problem is thus that the writers of "vibe-generated code" hardly ever put such a deep effort into the code. Thus the code is simply not worth asking feedback for.
by m_mueller | 2025-07-03 12:34:31+00:00
The main problem in this environment is IMO: how does a junior become a senior, or even a bad junior become a good junior. People aren't learning fundamentals anymore beyond what's taught, and all the rest of 'trade knowledge' is now never experienced, people just trust that the LLM has absorbed it sufficiently. Engineering is all about trade-offs. Failing to understand why from 10 possible ways of achieving something, 4 are valid contenders and possible 1-2 are best in the current scenario, and even the questions to ask to get to that answer, is what makes a senior.
by wkat4242 | 2025-07-03 12:34:59+00:00
Yeah I hate those team calls too though. I don't give a shit what others in the team are doing. I'm not a team player at all. As such I always manoeuver myself into owning a particular topic which works well because I'm not slowed down by others. But these calls are something I just tune out on. I wouldn't even read the summary because I just don't care.
by m6io | 2025-07-03 12:35:08+00:00
So Zod 4 brings in a bunch of useful new features, the most exciting to me being the addition of custom metadata, which means Zod is now a viable schema type for form generation!

I spent the past couple of weeks completely rewriting `@react-formgen/zod` to leverage these new features. See it in action here: https://react-formgen.vercel.app/zod-schema

I'm still working on updating all the docs, but in the meantime, you can yoink the website code and use the new sample templates I set up that are working (for the most part, still learning the new Zod API so expect regular refinements and updates) from here: https://github.com/m6io/react-formgen/tree/main/website/src/...

and see an example of how those custom templates get used here: https://github.com/m6io/react-formgen/blob/main/website/src/...

If you want to try it out, just install `@react-formgen/zod`, make sure you're on zod version 3.25.61 or later, and yoink those templates. Docs are still a work in progress. Feedback is always welcome (and wanted) :)
by injidup | 2025-07-03 12:35:49+00:00
LLMs are surprisingly good at writing test cases—something many developers either skip or struggle with. If you structure your workflow around TDD (Test-Driven Development), the LLM can generate and continuously rerun those tests as it iterates on the code. This creates a powerful closed-loop system where the spec (your unit tests) and the implementation evolve together.

Multimodal LLMs take it even further. I've given Claude 4 a screenshot and simply said, “There’s too much white space.” It correctly identified the issue and generated CSS fixes. That kind of feedback loop could easily become a regression test for visual/UI consistency.

This isn’t just about automating code generation—it’s about augmenting the entire development cycle, from specs to testing to visual QA.
by HappyPanacea | 2025-07-03 12:36:27+00:00
If we generalize the problem to base k (they are k-1 duplicate of each number except the missing number, find missing one using base k-wise addition) then we can see the cycle is the smallest number such the base k-wise addition from 1 to the number is zero and it is power of k will form a cycle. I'm not sure if all such numbers are power of k if they exists or if there is an upper bound on them. For example in base 4 there appears to be no such cycle.
by hollerith | 2025-07-03 12:36:45+00:00
Here's my estimate, taken mostly from figures from Apple's 2024 annual report (as reported by Gemini Flash).

Apple's total worldwide revenue for fiscal year 2024 was $391.035 billion. The Americas Segment (which includes the US) represented $167.05 billion of that, leaving $224 billion for the rest of the world.

Apple reports that their cost of goods sold was $210.352 billion, leaving 180.68 billion as so-called "gross profit". The majority of this gross profit will be used to pay salaries and other expenses (e.g., office space) of having employees, most of which goes to Americans. (Most of the rest will be "retained earnings", which means it either goes back to investors or is used to try to generate new streams of revenue.)

But only some of that gross profit will come from exports. Let's assume that exports are as profitable (per unit of revenue) as US sales are, which seems reasonable to me because competition (mostly from Android) would be the main thing keeping gross profit low, and Android is a major competitive force in the US market, so estimated gross profit derived from sales to the rest of the world would be 180.68 * (224 / 391.035) == $103.5 billion. That is revenue from all products and services, and Apple reports that revenue from the iPhone is 0.5145 of all revenue (worldwide) or about $53 billion per year flowing from the rest of the world to Apple (and to governments in the US in the form of taxes).

To be clear, that's assuming that zero of the hardware (more precisely, zero of what accountants call the "variable cost") that goes into an iPhone is bought from US suppliers (which seems a reasonable assumption to me).
by jijijijij | 2025-07-03 12:37:41+00:00
You can just freshly mix cheap vitamin C powder and water to the desired concentration, adjust pH to be less irritating. The solution can last for a few days, if cooled and protected from light. For it to be effective (according to studies), it needs to be applied daily/frequently. However, DIY is so cheap, you can use it all over your body. Wash/wipe off excess (see below).

The problem is commercialization. Vitamin C is very, very reactive, so formulating it for shelf storage and production is challenging. I think you either have to add expensive/exotic antioxidant systems, or rely on ascorbate derivatives which may be less/not effective.

Fair warning: Vitamin C degrades to dehydroascorbic acid: After some delay, vitamin C solution may stain skin and everything in contact yellow. DHA may also further break down into erythrulose, a self-tanning agent browning the skin semi-permanently (likely not very healthy). Vitamin C may also react with other things (eg. skin care products) in unpredictable ways and can actually form radicals under some conditions. Eg. It can react with benzoic acid to form benzene. On the modern skin, with UV exposure, a primordial soup of "actives", complex hydrocarbons and all natural metal catalysts, vitamin C may facilitate genesis…

The science is promising, but the chemistry of vitamin C is hard to control, or even reason about.
by scarface_74 | 2025-07-03 12:38:22+00:00
Yes.

I’ve been programming a long time…

But between my not programming every day and it becoming less of my day job and now using LLMs for most of my day to day green field work, my coding skills have dropped dramatically.

I know that if I ever wanted to get another purer software development job, it would take months of practice. Luckily, I have a year’s expenses in savings outside of retirement to give me a runway to get interview ready if I lost my job.
by ttctciyf | 2025-07-03 12:39:22+00:00
Then they should host the meetings on irc! (not completely kidding.)

Or maybe there's an opportunity for someone to create an "interop environment" where AIs representing diverse persons' agendas within an organisation can come together and agree on outcomes and goals on behalf of their sponsors (maybe not completely serious, but ...)

Yeah, I know TFA is just notetaking but that shouldn't stop us from thinking ahead, right? The possibilities for cost-cutting in middle management are spectacular!
by CuriouslyC | 2025-07-03 12:39:57+00:00
Sounds like you're pretty peeved about this, is your manager on you because your peers are out-delivering you?

You realize even if you're onboard the agentic coding hype train, you don't have to just blithely paste tickets to the agent and let them rip. You can have a long conversation about design and architecture, and have them write their own implementation plan based on that, then watch them ticking items off the list and review code for changes as they're completed while the agent forges ahead. A lot of times you don't even need to have a long conversation about this stuff, just write a readme that very clearly outlines what you're doing and how to do it, and the agent will read it and do just fine.
by TheAlchemist | 2025-07-03 12:40:24+00:00
The best way is to have a mentor. You can't beat that (in programming, as in life and any other discipline).

Second best, is looking at how the best people in the company I work for solve problems. Still takes a lot of time and effort, but I found it's well worth the effort.

As for books, A philosophy of Software Design by John Osterhout and Domain-Driven Design by Eric Evans are the ones I've found the best impactful for 'good taste'.
by ra | 2025-07-03 12:40:44+00:00
With this much mass and velocity - it would smash the planet, rupturing the entire crust at the very least.

No matter how infinitesimally small the probability - the universe is infinite, and so it probably will happen.

i3 is much bigger than the Chicxulub asteroid that ended the Cretaceous period (and extinct all non-avian dinosaurs).
by Arnt | 2025-07-03 12:41:16+00:00
Maybe, or maybe not. Look at India's for a different outcome. They had many problems related to paper:p printing enough voting forms, transporting them on village roads, storing them until election day in villages where there might or might not be a door with a lock, etc. I wrote this during a HN thread long ago, IIRC: https://rant.gulbrandsen.priv.no/indian-election-machines The MSB is perhaps that the machine is very simple and the counting happens at once, observed by people who have a good idea of whether the result is correct.

It seems to me that the Americans have set themselves up to lose by having too complex elections, where people are asked to cast a vote for dozens of things at the same time. That's going to be a strain for both the vote counters and the voters, and paper won't make the strain go away.
by close04 | 2025-07-03 12:41:23+00:00
> "whataboutism but it's not even happening"?

What's not happening? I think you are confusing what "whataboutism" is? "Whatabout" the exact same fossil fuel industry OP referenced? I corrected a misconception that OP had, and I guess so do you: that the oil industry cares about political affiliation. To you this probably sounded like a support of the right, and whatabouting the left. Least effort interpretation meets trigger happiness.

The oil industry has monetary affiliations and intrinsically sees no political color or affiliation except in the interest of making that money. The other way around, the US right has a strong preference for the oil industry, while the left has less. But I was clear that I'm looking at it from the industry's perspective: the oil industry doesn't care about right or left. They will without a doubt allow any tide to lift their boat without any moral argument. This distinction is important. Plenty of places in the world where the oil industry is affiliated to the center or left.

Again, there's nothing intrinsically "right wing" about the oil industry, there something strongly "oil leaning" in the US right-wing.

An example that captures this a bit is Musk publicly supporting and having ties to the democrat administration for years when it benefited him and the EV/green agenda. He had no qualms shifting to supporting the republicans when he thought this will benefit him even more despite the right being anti-green. You can bet that he'd try to switch back if the tides turn again although this time it's hard to come back from what he did.

Source: worked in the oil industry for years.
by probably_wrong | 2025-07-03 12:41:38+00:00
> Passkeys are a blessing for your regular Joe.

I've had two regular Joes come to me because Google locked them out of their accounts (plus a third one with Apple) and they had important emails they couldn't get to. The "solution" in all cases ended up being a total loss and starting from scratch.

Now when Google locks them out of their account with no recourse (or, more likely, when their phone dies without backup) not only do their lose their email, but also every other service they ever signed up for.

Passkeys may be better when everything works right, but password managers are miles ahead when something goes wrong.
by zmgsabst | 2025-07-03 12:42:23+00:00
I was just pointing out the incorrect logic of the comment:

If you believe they’re biased, removing them is removing false legitimacy from biased content — something the government has an interest in. And no different than a journal retracting a flawed paper.

And since you want to discuss “fair argument”: there’s an obvious difference between allowing discourse on a public forum and publishing as an institution.
by thih9 | 2025-07-03 12:42:37+00:00
This is also the standard way to present moon phases in watch complications:

> One of the objections raised to a conventional moonphase display, which shows the visible part of the Moon via an aperture in the dial, is that it is not an accurate representation of what you see when you actually look at the Moon over the course of a month.

https://www.hodinkee.com/articles/the-beautifully-pointless-...
by frob | 2025-07-03 12:42:46+00:00
Authoritarian states often function via selective enforcement of laws. We see that here. They will use any angle, any technicality to remove someone. Lived here for almost 50 years and are a productive member of your community but you're on a stayed order of release pending you check in regularly and you do so? Sorry, we changed our minds and are deporting you because legally we can. Please come with us in the unmarked car. [0]

Tried to kill police officers while trying to overturn an election on behalf of the dear leader? We'll pardon you and give you a job on a task force about weaponization of government. [1]

The law will be applied to the harshest extent to those Trump and his ilk see as enemies and will be warped in favor of his current friends.

Or, as a Preuvian facist president put it: "For my friends, anything; for my enemies, the law!"

[0] https://www.theguardian.com/us-news/2025/jul/03/ice-iran-don... [1] https://www.theguardian.com/us-news/2025/jul/02/january-6-ri...
by onli | 2025-07-03 12:43:28+00:00
There is this part in there:

> Are our tools just worse now? Was early 2000s PHP actually good?

Not sure how rhetorical that was, but of course? PHP is a super efficient language that is tailor made to write dynamic web sites, unlike Go. The author mentions a couple of the features that made the original version easier to write and easier to maintain, they are made for the usecase, like $_GET.

And if something like a template engine is needed, like it will be if the project is a little bit bigger, then PHP supports that just fine.

> Max didn't need a request router, he just put his PHP file at the right place on the disk.

The tendency to abstract code away leads to complexity, while a real useful abstraction is about minimizing complexity. Here, the placement of PHP files makes stuff easier -> it's a good abstraction.

And that's why the original code is so much better.
by bigattichouse | 2025-07-03 12:44:00+00:00
A lot of people throw around 5% efficiency for Peltiers, and it's just not true - it depends heavily on the temperature differential and current vs. IMax. You can (with care) drive them >2.0 COP.

This isn't anything like a compressor or heatpump system, but Peltiers get a bad rap... they move heat really well if you're not pushing them to the edge.

Here's a nice chart. At 10k difference and 0.1 current max, you're over 2.5 COP. https://www.meerstetter.ch/customer-center/compendium/71-pel...