MurphyA/hacker-news huggingface dataset:
by Merovius | 2025-07-21 08:36:06+00:00
> AI is really good at generating repetitive patterns, like plain types, or code that implements a certain interface. If you reduce the cost of creating the verbose code [at write time] we can all enjoy the benefit of reduced complexity [at read time] without resorting to generics.

Though humans are very bad at reviewing repetitive patterns. I'd much rather review a single generic implementation, than 10 monomorphic ones, that look the same, but where I can't be sure and actually have to check.

So unless you are making the argument that generated code doesn't require review (compliance auditors would disagree) I would personally still much rather have generics.
by chithanh | 2025-07-21 08:36:56+00:00
That is seriously how some people navigate through life, not just computers.

Like if they want to go to a certain office in a building: My "instructions" would be to go to department foo, room A5.303 (made up number). Their instructions are something like "in that red brick building, take the elevator to 5th floor, turn left and then again left into the hallway, second door on the right side".

If they navigate UI the same way, then of course every element that is moved slightly to a new place or grouped differently will cause their mental model of how things work to collapse.
by serial_dev | 2025-07-21 08:37:43+00:00
> How can I help people out when they tell me that io_uring is insecure?

Maybe those people are right, though? I think the discussion starts from a place that assumes other people are wrong. If you start there, you will fail to convince people of anything, because you automatically dismiss their claim, without thinking about what they might have seen and what they might think.

A better starting point would be wanting to get to the bottom of it, and assess the security of io_uring. If you start from that point and you give it an honest, thorough assessment, and it turns out it "looks secure", you'll have an easier time convincing people.

You might still be wrong (assessing io_uring's security is not trivial), but at least you tried to understand why people think that.

And reminder: it's ok to "agree to disagree".
by sebstefan | 2025-07-21 08:38:28+00:00
Definitely worse article

I don't understand how they could quote him saying: “This thin-film technology has the potential to grow from powering small-scale refrigeration systems to supporting large building HVAC applications, similar to the way lithium-ion batteries have been scaled to power devices as small as mobile phones and as large as electric vehicles,”

Then the entire article foregoes comparing their peltier device to traditional compressor based heat pumps.
by lock1 | 2025-07-21 08:39:07+00:00
Maybe "Making illegal state unrepresentable" is the term you're looking for?

https://fsharpforfunandprofit.com/posts/designing-with-types... https://inside.java/2024/06/03/dop-v1-1-illegal-states/

IMO it's doesn't have much relation with dynamic programming though.
by 9dev | 2025-07-21 08:39:15+00:00
The EU has no sole purpose, but the most important one is harmonising the inner-European market. It did so by introducing Schengen roaming, for example, which allows me to relocate into any other EU country right now, buy a house and found a company, without any restrictions or visa necessary. I can buy goods from anywhere in the EU without tariffs or clearing. I enjoy natural parks and arts, all funded by the EU. If I go on vacation in one of the newer, poorer EU countries, I don’t drive through slums, because they received subsidies by the other members to raise their standard of living. I could go on for a while, but my point is: the EU has brought a lot of positive change and it’s certainly not just pushing a neoliberal agenda. Even if you ignore all of this, how do you think the individual member states would fare if they had to compete against the lunatic in the White House or China alone? If we didn’t band together, we’d be completely impotent against the bigger world powers.
by dan-robertson | 2025-07-21 08:39:44+00:00
I assume someone in the 5th percentile of wealth is going to have very negative wealth which is only really possible in developed countries, eg an American medical student or a doctor who is part-way through paying off their loans, or someone suffering from massive credit card debt / car loans. (I think this isn’t really what you were thinking of though. I think the poorest people in the world still live, in many ways like medieval peasants except with much lower infant mortality and somewhat net food security)
by cousin_it | 2025-07-21 08:40:02+00:00
My favorite dynamic programming problem is computing the percent of relatedness between two people, given a set of people and a partial graph of parenthood among them (with the assumption that any relatedness not implied by the graph is zero). If seems very confusing at first, but then you realize that if A is not a descendant of B, rel(A,B)=(rel(A,father(B))+rel(A,mother(B)))/2, which allows you to compute all relatedness values from top to bottom of the graph as fast as possible.
by steeleduncan | 2025-07-21 08:40:17+00:00
> I guess AI pays better

I suspect the problem is that the previous model didn't pay at all. I've used it a lot to try out code snippets, but no one pays for that. It was one of those services that a product would outgrow well before you could imagine spending serious money on it.

It is a shame they didn't find traction with the learn to code without all the hassle angle they once had.
by ciconia | 2025-07-21 08:40:23+00:00
> the incentives are such that O(Really Big Money) optimization projects get staffed unless there is something making them infeasible.

Switching to io_uring is not just moving from one API to another. It necessitates a serious rethinking of your concurrency model. I guess for big, established codebases this is a very substantial undertaking, security consideration notwithstanding.
by pdimitar | 2025-07-21 08:42:48+00:00
You have my admirations for fzf, it helps me dozens of times every day. And I do understand that authors of such prominent tools will want to have tamed integrations with people's shells, makes perfect sense.

That being said, as a guy who does not have big prominent OSS tools under his belt, I am slowly but surely migrating away from shell scripts and changing them to short Golang programs. Already saved my sanity a few times.

Nothing against the first cohort of people who had to make computers work; they are heroes. But at one point the old things only impede and slow everyone else and it's time to move on.
Show HN: InnerSight – A journaling app with therapist mode and photo uploads
by yasir326 | 2025-07-21 08:43:26+00:00
Hi HN,

I recently finished the first version of a journaling app I’ve been working on called InnerSight. It’s designed for people who journal regularly and also for therapists who want a digital way to engage with their clients' reflections.

Key features in v1:

Haptic feedback to improve writing focus

Switch between Free mode and Therapist mode

UI improvements and smoother typing

Upload or take a photo of a handwritten journal entry

You can sign up to be notified when it's available here: https://innersightjournal.com

Still very early—no monetization yet. Just trying to solve a problem I’ve experienced firsthand: how to reflect consistently and store meaningful thoughts, whether typed or handwritten.

Would love your thoughts, especially if you’ve worked on tools in mental health or productivity spaces.
by perching_aix | 2025-07-21 08:43:35+00:00
Redid these tests together with a colleague. Either they are fake or they are badly coded. We double checked the ordering with a color picker and we both ordered by hue angle just fine, yet various tests would keep reporting poor results. Eventually, tests would then flip and start reporting really good scores. Got 2s and a 0 at some point.

Now either we both fluked it the first few times or these tests are genuinely not trustworthy. I find that pretty unlikely, but what I do think I know is that I do not have CVD after all.
by JdeBP | 2025-07-21 08:44:30+00:00
It comes to something when Fox News is more informative with background information about signage and safety protocols, and reporting about a technician's warning not to enter, than BBC News is.

* https://fox5ny.com/news/long-island-mri-freak-accident

(Many U.S.A. news services do a better job than BBC News does on U.S.A. stories. But this is the BBC being beaten by Fox, specificially.)
Show HN: Gix, A small CLI tool that adds a touch of AI to Git
by codebyagon | 2025-07-21 08:44:35+00:00
I’ve been building a small CLI tool called Gix that brings a bit of AI into Git, not to replace your workflow, but to make some of the repetitive parts less painful.

It's written in Go, works cross-platform, and runs entirely local. You provide your own OpenAI key, and Gix can:

Break up large diffs into smaller, logical commits

Suggest conventional commit messages from staged changes

Still early-stage but stable. If it's useful to you, feel free to leave feedback, contribute, or star the repo, it helps me know whether to keep pushing it forward.

Repo: https://github.com/ademajagon/gix
by sjducb | 2025-07-21 08:46:17+00:00
I think count based logging works really well for batch processing jobs where each item is a fairly constant amount of work. The log shows the time you started and prints another line (with the time) for each 1% of the batch. You can see the progress and guess when it will be done.

The human who is debugging an issue can see when we started, see that some processed successfully, see regular progress through the batch, then see that the 58th percentile batch hasn’t completed and that’ll be where the problem is.

The main benefit over the time based logging is that the code is much simpler, and the log output is simpler too.

There are even libraries like tqdm that do this for you in one line of code.
by Frieren | 2025-07-21 08:46:32+00:00
> Some political faction has decided to push for legislation and needs to sell it to the public.

Yes. Chinese direct sales have no taxes (as they divide orders to below the taxable amount). So, taxes are coming to Chinese goods and this is the start of that process. It makes sense to remove that loophole that gives advantage to foreign made products over local ones. So, the goal seems a good one.
by card_zero | 2025-07-21 08:47:47+00:00
You might be more specific. Something about the paradox of tolerance, maybe?

But anyway, you admit that your idea of free speech has restrictions, and their idea of free speech also has restrictions, but the difference is that yours are the necessary ones, by your values. Their restrictions are the necessary ones by their values, but their values are bad and wrong. I'm only being slightly po-faced here, I think this description of the situation is probably literally true, barring mistakes and room for improvement in the good value system and the outside possibility of adherents of the bad value system being occasionally onto something insightful.
by 9dev | 2025-07-21 08:48:11+00:00
If you leave your personal gain aside for one moment, don’t you see how that just means you’ll throw 246 of them away because you don’t need them, minus the three replacements for the bad quality? Don’t you see how that cannot be positive, to have so much waste, instead of proper QA and manufacturers doing the right thing for fear of litigation? These manufacturers pay taxes and employ people. Both of these contribute to our wealth. Making it harder for local businesses to sustain themselves will lower or quality of life. This may not relate to your zippers immediately, but allowing vendors like Temu to exploit our economy by undercutting it has negative effects, which you are supporting with your actions.
by em-bee | 2025-07-21 08:49:05+00:00
from my experience the primary problem with PHP was not the language itself (although the design was/is somewhat quirky/inconsistent) but with the large influx of inexperienced programmers using it, creating low quality code and thus affecting the reputation of the language. same with javascript today.

i haven't heard any issues about coffeescript.

with that in mind, i'd love to hear your stories. how did you get bitten?
by OtherShrezzing | 2025-07-21 08:52:33+00:00
If it proved correct, it'd be an important insight. If you can run three low-inference-cost models and get comparable performance to a single paid frontier model in agentic workflows, it suggests this is a general insight about the way model performance scales.

If your product is "good enough" with the current generation of models, you could cut OpenAI/Anthropic/Google out of the loop entirely by using open source & low-cost models.
by alephnerd | 2025-07-21 08:53:13+00:00
I think you meant to reply to my other comment. But anyhow, none of those compare to even the Korean clouds excluding Open Telekom Cloud, which is white labeled AWS.

That said, my point still stands. All the major examples you mentioned (OVH, Scaleway, gridscale) have largely limited FDI and headcount to within France or Germany, while GCP's Warsaw office owns the product leadership for much of GKE globally, AWS Bucharest owns a major part of AWS's Privacy and Data Security portfolio, MS Praha owns a significant portion of CoreAI, and Ireland is one of MS Azure's major DC hubs.

Most French and German PR about "digital sovereignity" rings hollow when the French and German vendors who stand to benefit have largely kept Capex and headcount within France and Germany.

Why should Poland, Romania, Czechia, Ireland, and Bulgaria lose hundreds of well paying high income tax bracket jobs and billions in FDI and income tax to subsidize French and German industry?

And this is why just about every EU grand strategy conversation falls apart - the individual member states will look out for themselves over the collective. For example, France's recent objection to Germany, the UK, and the Nordics buying American weapons to send to Ukraine instead of buying French [0] and Dassault's lobbying of France to withdraw from FCAS if it doesn't get 80% workshare [1]

German politicians don't answer to Polish voters. Greek politicians don't answer to Irish voters. Either the EU removes national soverignity and becomes a truly federal and centralized union, or the EU has to gradually reduce the political aspects and return to the 1990s and 2000s style defense and economic cooperation union that it was.

[0] - https://www.politico.eu/article/europe-donald-trump-weapons-...

[1] - https://www.ft.com/content/a38f6f36-6284-428c-b8af-fe6d6d7db...
by spyckie2 | 2025-07-21 08:53:33+00:00
The common theme was creators who didn’t monetize.

That’s the old web.

Now the new web has a lot of nice stuff but it’s under a paywall or an ad wall. That paywall / ad wall is like a fly in a soup, it ruins the whole dish. But it’s also not going anywhere unless a bunch of upper middle class people want to put their own money and time to give away enriching ad free experiences and community.

Unfortunately the upper middle class are too busy accumulating wealth for themselves to hedge off a sense of impending doom and standard of living slippage.
by weitendorf | 2025-07-21 08:54:43+00:00
On the library/internal workload side the impact would certainly not be something that fully lands overnight, but Google has a very centralized tech stack and special tooling for fleetwide code migrations. I have no insight to the particulars but I would guess there is a Pareto-like distribution of easy upgrades+big wins and a long-tail of marginal/thorny upgrades.

Google is big enough and invests enough in infrastructure projects that they staff projects like making their own internal concurrency primitives (side note, factors like this can improve/reduce or simplify/complexify migrations substantially): https://www.phoronix.com/news/Google-Fibers-Toward-Open
by kajkojednojajko | 2025-07-21 08:56:06+00:00
> the most important thing I've learned about [bash] is: don't. Sure, it can be done, and even done well, but why? There are better languages.

This. Bash gives you all the tools to dig a hole and none to climb out. It's quick and easy to copy commands from your terminal to a file, and it beats not saving them at all.

Support for digging: once you have a shell script, adding one more line conditioned on some env var is more pragmatic than rewriting the script in another language. Apply mathematical induction to grow the script to 1000 lines. Split into multiple files when one becomes too large and repeat.

Missing support for climbing out: janky functions, no modules, user types, or tests; no debugger and no standard library. I've successfully refactored messy python code in the past, but with bash I've had no idea where to even start.

There is hope that LLMs can be used to convert shell scripts to other languages, because they can make the jump that experienced devs have learned to avoid: rewriting from scratch. What else do you do when refactoring in small steps is not feasible?
by citrin_ru | 2025-07-21 08:56:06+00:00
> Why do you need that many threads?

In micro-service world there are many service which read request over the network (HTTP or some RPC), send multiple requests, may be read something from disk, write logs all mixed with some business logic. A significant fraction of time is spend on waiting so a single modern server can handle a large number of parallel connections to the service without saturating hardware resources.

Async allows to do the same (handle many network connections in a single thread) but: 1. It's less ergonomic (less easy to write code) IMHO 2. In pure async if you do a long CPU intensive task in between I/O all other connections in the same thread will wait, which Go solves (at least partially) by using M:N model (pure async is M:1 - connection tied to a particular thread and even if you have many threads you cannot move connections around).

I would not argue that Go concurrency model is the best we can get but it's a good fit for micro-service architecture and a good balance between performance and easy development.

> Linux doesn't even allow you that many file handles.

Not by default but it's easy to rise limits for this and if you are running a loaded server you should not rely on defaults anyway. To get to 100M descriptors you likely need to tune only ulimit (LimitNOFILE in systemd) because default value for fs.file-max is likely large (AFAIR default scaled to the RAM size).
by npsomaratna | 2025-07-21 08:59:23+00:00
Nice! I guess you must know Bruce Merry. Once, when practicing, I kept on hitting my head on a problem. On the spur of the moment, I decided to fire off an email to Bruce (given his track record, I was like "if anyone can figure this out, he can"). I was shocked (and very pleased) to get a reply a few days later outlining his thought process and how he went around solving the problem.

I used to know the ZA team leaders as well (after competing, I was a team leader for several more years).
by sarreph | 2025-07-21 08:59:28+00:00
> He persisted anyway, before finding that Replit could not guarantee to run a unit test without deleting a database, and concluding that the service isn’t ready for prime time – and especially not for its intended audience of non-techies looking to create commercial software.

I don't think non-techies will ever be able to sustainably make commercial software without "bridging" LLM layers such as virtual engineering managers and project leads which keep the raw engineering LLMs in check.
by weitendorf | 2025-07-21 08:59:40+00:00
No, it was about servers, and I worked there on similar stuff/with the same people involved in the serverside ("fleetwide") rollout. Public post describing the decision to disable it internally: https://security.googleblog.com/2023/06/learnings-from-kctf-...

I'd love to see a post explaining a decision to consider it stable or that mentions that they've rolled it out on their fleet
by pjc50 | 2025-07-21 08:59:48+00:00
SCP is the culmination of the epistolary novel, like Dracula, via the videogames convention of making "lore" (i.e. backstory and worldbuilding) unobtrusive and scattered through the game in audio logs and diary entries.

It places the reader in the role of detective, rebuilding the sequence of events from partial, scattered, obscured, and out of order viewpoints.
by Joeboy | 2025-07-21 09:00:48+00:00
A few hasty, disconnected thoughts about slow-motion:

1) Back in the day, you'd use slowmo if you wanted to make something look bigger and more impressive, like scale model work or making a human-sized person look like a giant[0]. Maybe people just figured out the same effect works at 1:1 scale. Or maybe it started working at 1:1 scale after people got used to it being associated with big and impressive things.

2) It's just become a lot easier and cheaper, in the same sort of way that shallow depth of field was everywhere after large-sensor consumer video cameras started appearing (notably the Canon 5D mkii). You don't even have to remember to overcrank the camera, you can fake it in post with Twixtor or its descendents.

3) Not sure what the state of play is now, but for a while higher frame rates were one of the main things distinguishing "cinema" cameras. Eg. maybe you could shoot at 180fps but only with an extra crop factor or with certain codecs. Maybe that focused film makers' minds on it a bit.

4) I don't think you ever see step printing [1] anymore (which is when you repeat frames, instead of overcranking or interpolating them). Maybe it's due a comeback.

[0] https://www.youtube.com/watch?v=2XWiV1J4zKc

[1] https://www.youtube.com/watch?v=ju65gr9sUjk
by em-bee | 2025-07-21 09:01:00+00:00
huh? that would suggest that perl has changed so much since the 90s that those views would no longer be valid.

CGIs in the 90s were written in perl 5, and perl hasn't evolved much since then. but perl was never a bad language. it had/has a quirky syntax. if you were coming from a lot of commandline work using sed, awk, tr, and many other tools to manipulate text in shell scripts, then perl made a lot of sense.

and while raku may have been a great improvement, perls reputation was tied to its syntax. the readability and writeability of the code. and that's the one thing that raku did not change significantly.

so unlike other examples i don't see how peoples views of perl could improve
by NitpickLawyer | 2025-07-21 09:02:20+00:00
This post could have been a prompt. It is 1000% generated with an LLM.

Tell-tale signs: fluffs up the "key features for x". Each feature follows bold title, highly generic explanation of the title. Then it lists some examples, all following the same pattern "why x".

Then the conclusion is full of gpt-isms. Doesn't say anything of value, just re-iterates fluff words.

> NetBSD's presence in space demonstrates how a well-designed, community-supported operating system can play a pivotal role in advancing space exploration and technology. As satellite missions grow more ambitious, NetBSD’s adaptability ensures it will remain a key player in the evolving field of aerospace engineering.

I know there's a policy encouraging users not to cry "llm generated" every time, but this is quite egregious.