MurphyA/hacker-news huggingface dataset:
by theshrike79 | 2025-12-11 13:14:19+00:00
“Indeed, the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code. ...[Therefore,] making it easy to read makes it easier to write.” ― Robert C. Martin, Clean Code: A Handbook of Agile Software Craftsmanship

Also:

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?

— Brian Kernighan: The Elements of Programming Style, 2nd edition, chapter 2

In summary: write simple code, it's easy to read and understand - by future you who forgot why you did something and others.
by pjc50 | 2025-12-11 13:14:27+00:00
The lesson from Mamdani is that the only way forwards for actual policy based and anticorruption politics is within the Democrat primaries. These are even run by the state in many states, I believe.

Eradicate the Republican party as an organization, split the Democrats into "normal right" and "maybe a bit left" factions, and see if you can get preference voting in there as well while asking for a pony.
by Linguist6514 | 2025-12-11 13:14:29+00:00
It's interesting how they're so concerned with censorship now. Weren't they the ones who were all up in arms about censoring everyone with right-wing views? But now that the script has flipped, suddenly it's a problem. It's not like we didn't try to warn them that if they force open the floodgates of censorship, then it can happen to them too. Maybe, just maybe, we should all stop trying to control what other people think and say. Mind your fucking business and leave other people alone. I hope this gets resolved. I don't believe that anyone should be censored, whether they agree with my views and beliefs or not.
by ancillary | 2025-12-11 13:14:41+00:00
> And that's also pretty simply explained by this classic quote: it is difficult to get a man to understand something, when his salary depends on his not understanding it.

I've come to strongly dislike this quote, because it's so often used on HN to decide that whoever's disagreeing with you is doing it for simple, stupid and greedy reasons, thus absolving you of the duty to think a bit about whether there might be nuance you're missing.
by sjsdaiuasgdia | 2025-12-11 13:14:57+00:00
If we let the fascists (or those already consumed by the fascists' propaganda) go unchecked, we are acquiescing to their goals.

Even if that person's mind can't be changed, it is still important to visibly call out and resist fascist propaganda.

They want people to give up and think resistance is pointless. That's part of the strategy.
by augment_me | 2025-12-11 13:15:14+00:00
I dont know if you are trying to delude yourself or someone else with your Motte-and-Bailey fallacy(https://en.wikipedia.org/wiki/Motte-and-bailey_fallacy), but it doesn't work when you are literally advertising 4 classes for HellaSwag on the website for the product:

https://www.animacore.ai/

As well as literally writing out "CUDA-compatible drop-in".

Look at your post being flagged, and think for yourself what you are actually doing. Seems to be some kind of LLM-induced psychosis, here is a good read that could ground you: https://www.lesswrong.com/posts/rarcxjGp47dcHftCP/your-llm-a...
by anovikov | 2025-12-11 13:15:20+00:00
Trick is not the total amount of insolation, but how much solar is available in the worst periods of year. Germany has about 100 GW of solar installed; or worst weeks it produces about 280 GWh in solar power... we can average over a week because we may assume 2 hours' storage (so for 100 GW nominal, 200 GWh) and that's about 4-5 worst days in a row. Now electricity consumption is about 10TWh a week. Which means, 35x of the current amount of solar is required to cover it entirely if the solar has to supply everything even in the period when there is the lowest amount of sunlight is available (because storage over even longer periods is unrealistic).

Which is for the case of "electricity only, in current consumption volumes", means 104,000 km2 or over 1/4 German land surface, with the average solar park density of 1 MW per 7.3 acres.

If you try for entire amount of all energy consumed in Germany, not just electricity, then you need to fill entire German territory and that won't be enough. In particular (for your figure of 342.2 GW average), 610,000km2 which is 1.5x+ German surface area.

Because 280GWh over a week averages to 1.67 GW average or 1/60 of nominal installed power. Yes, ON AVERAGE, solar panels give about 1/9 to 1/10 of their nominal installed power over the year, but it's 6-7x less during worst weeks. This number can be slightly improved by installing panels over the angle that optimises performance in winter (in summer there will be more than enough anyway), but no more than by 1.5x - still entire Germany will not be enough to supply itself with power from solar that works year round.

So your calculation is wrong in this, and also in the fact that solar park is not fully packed with panels because they need pathways to service them and they need to not shade one another. Average area per 1 MW installed power is 7.3 acres in the USA.
by peppernub | 2025-12-11 13:15:59+00:00
We’re building a digital health application that needs to analyse vital sign data and generate clinical alerts- and, of course, we also need MDR IIa certification. The regulatory side (documentation, quality management, audits) has been a significant bottleneck, and building a compliant analysis backend from scratch feels like a grind that can easily take 18–24 months and large costs. actimi.com

In researching approaches, I noticed that some teams are now embedding pre-certified analysis engines that handle things like:

vital parameter analysis (blood pressure, heart rate, glucose, oxygen, etc.)

patient prioritisation and clinical alerts

defined limit values and alert thresholds

For example, platforms like ACTIMI Signals are already MDR IIa–certified and can be integrated as an API for this purpose, potentially saving years of certification time and cost. actimi.com

I’m curious how others are approaching this problem in 2025–2026. Specifically:

Are you building your own analysis + alerting infrastructure?

->Are you integrating third-party solutions, and if so, what trade-offs do you see?

->How do you handle traceability, audit logs, and safety-relevant workflows?

->Would you do things differently if starting today?

Looking forward to hearing experiences from teams who have tackled regulated clinical data pipelines or similar compliance challenges.
Show HN: PageEcho – Offline AI eBook Reader (On-Device TTS and AI)
by page_echo | 2025-12-11 13:16:29+00:00
Hi HN! I built PageEcho, a fully on-device eBook reader for iOS that integrates offline TTS and Apple Intelligence features. It started as a personal challenge to create a reading app that never sends data to a server while still supporting modern AI capabilities.

What’s unique: • Everything — TTS, summaries, Q&A, mind-maps, translation — runs locally on the device • Supports EPUB, PDF, MOBI, AZW3, TXT, and FB2 with a single unified reading pipeline • Uses Supertonic ONNX for high-quality offline speech (no cloud, no latency) • Integrates Apple Intelligence for chapter-level analysis on supported devices • Local SQLite storage for highlights, progress, and reading analytics

Technical notes for those curious: • EPUB/TXT/MOBI parsing is consolidated into a WebView-based renderer with CFI support • PDF mode uses native PDFKit overlays with TTS + translation layers • TTS runs on-device using a quantized Supertonic model with chunked streaming • AI summaries/Q&A rely on local Apple Intelligence calls with caching at the chapter level • The entire app operates offline — no accounts, no telemetry, no external servers

I’d love feedback from readers, mobile devs, and anyone interested in on-device AI design. Happy to answer any technical questions!
by page_echo | 2025-12-11 13:16:49+00:00
Thanks for taking a look. I wanted to share some of the background and trade-offs that shaped the project, since the constraint of “everything must run locally” influenced almost every decision.

The biggest challenge was balancing feature completeness with device limitations. Running TTS and AI fully on-device meant carefully managing memory spikes, chunking long texts, avoiding UI stalls, and working within the restrictions of Apple Intelligence availability. Getting TTS to feel continuous required experimentation with segmentation, buffering, and timing, especially for long-form documents.

Another interesting challenge was unifying such different file formats into a consistent reading experience. Rather than building multiple rendering paths, I ended up normalizing most formats into HTML and relying on CFI anchors and a WebView-based system. This reduced code surface but introduced its own edge cases, especially around selection accuracy and highlight persistence.

PDF brought its own set of problems — mainly keeping performance stable on large files and making sure overlays (search, highlights, TTS, translation) stayed synchronized with page geometry. I’m still improving this area.

I’m very interested in learning how others approach on-device inference, streaming models, memory usage patterns, and PDF performance. If anyone has experience or ideas in those areas, I’d love to hear them.

Happy to answer questions about any part of the implementation.
by jakewins | 2025-12-11 13:17:25+00:00
These are, as far as I know, well tracked datasets. For the US the Bureau of Labor statistics tracks each annual cohort of new companies and the attrition over time: https://www.bls.gov/bdm/us_age_naics_00_table7.txt

So for example the first chunk there, cohort of companies that started March 1994, there were 13% still operating 10 years later in 2024.
Open Source "Notch" for AI, Agents and Automation
by thisisnsh | 2025-12-11 13:17:30+00:00
I built AI Thing (https://aithing.dev) so we can use AI in a transparent, secure way — and get not just the features other platforms charge for, but a whole lot more, without any payment plans.

A lot of platforms charge to use agents, MCP servers, or automations. Some even put basic MCP functionality behind a “premium” tag. So I just made everything free.

Watch the demo on YouTube: https://www.youtube.com/watch?v=R3azWzrv9IM&feature=youtu.be

------------ Key Features ------------

* BYOK models — Frontier Anthropic, OpenAI, and Gemini models * Switch between multiple models in the same conversation * Multiple agents — Full Google Workspace (Gmail, Docs, Sheets, Drive, Calendar, etc.), GitHub, Notion, Asana, Atlassian, and more * Bring your own MCP servers (remote or local) * Recurring automations — daily summaries, reports, reminders * Parallel conversations & background tasks * Context without copy/paste — capture screen & selected text from any app * And a lot more…

----------- Open Source -----------

AI Thing is fully open source! You can check out the code on GitHub (https://github.com/ThisIsNSH/AIThing) — a star would mean a lot.

If you'd like to contribute, check the open issues, propose a solution, and jump in. You can also create feature requests or bug reports. For anything else, reach out at help@aithing.dev.
by Tor3 | 2025-12-11 13:17:51+00:00
In the early days when the kernel was small (I used to build kernels and copy them to floppy disks, and boot Linux from there) the kernel was called 'vmlinux', and when compression was added after the kernel started to get bigger it became 'vmlinuz'. It was still possible to boot from 'vmlinux', and it may be possible today as well, for all I know.
by maccard | 2025-12-11 13:19:04+00:00
Nowhere in that does it say “we did zero benchmarking and just went with hearsay”. Basing things on industry data is solid - looking at the steam hardware surveys if a good way to figure out the variety of hardware used without commissioning your own reports. Tech choices are no different.

Do you benchmark every single decision you make on every system on every project you work on? Do you check that redis operation is actually O(1) or do you rely on hearsay. Do you benchmark every single SQL query, every DTO, the overhead of the DI Framework, connection pooler, json serializer, log formatter? Do you ever rely on your own knowledge without verifying the assumptions? Of course you do - you’re human and we have to make some baseline assumptions, and sometimes they’re wrong.
Show HN: Preflight – stop running bug bashes in docs and spreadsheets
by tomnghia | 2025-12-11 13:19:26+00:00
Hey HN, I’m a product designer on a payments team. Every time we were close to shipping a feature, we’d run a bug bash in a giant Google doc or spreadsheet: copy the spec in, write the test cases, ask people to mark Pass/Fail, paste screenshots, then manually turn everything into Jira tickets. It worked, but it always felt a bit painful.

Instead of another heavy test management tool, I wanted something that feels closer to the tools we actually like using. More Linear/Notion, less old-school QA.

With Preflight, you paste your product requirements and Figma link and get an initial set of test cases from an LLM. You bug bash together in real time, add notes and screenshots when things fail, and create Jira or Linear tickets in one click from failing steps. At the end, you get a snapshot you can share to decide if the release is ready.

Preflight is in beta, and free to use for now.

Thanks for checking it out, I’d really appreciate any feedback on whether this matches how you run bug bashes or dogfooding today, and if not, what would need to change for it to be useful to you?
by pas | 2025-12-11 13:19:36+00:00
that was the cost of additional a11y remediation, likely the direct cost of using a different font/typeface going forward was the time it took for people to read the memo and get used to change the formatting (maybe even set a new default, maybe change templates).

https://daringfireball.net/2025/12/full_text_of_marco_rubio_...

of course simply comparing years without a control we have no way of knowing the effect of the change (well, if we were to look at the previous years at least we could see if this 145K difference was somehow significant or not)
by lizknope | 2025-12-11 13:19:52+00:00
I worked at 2 startups. Both failed.

The first had been around for about 4 years when I joined and had products that made money. They were trying to get acquired. They had partnered with 2 companies making products specifically for them. One of them offered to buy the company for $30 million but the founders thought their company was worth $300 million. They said no and then money started to run out and people started leaving. In the end the assets were sold for $2 million.

The second startup was created by former coworkers and I joined after it had existed for 4 months. We worked like crazy for the first year and got our prototype out. We had a lot of interest but it took me a while to realize that the 3 founders already had net worths from $5 million to billionaire level. When I heard about offers in the $30 million range they just weren't interested in selling for so little. I left after 3 years and the company floundered another 2 years until they shut it down as people left.
by oneeyedpigeon | 2025-12-11 13:20:40+00:00
> No, you're just falling into the sort of left wing "people who disagree with me can only do so because they are a bad person" trap.

I'm not sure where this conclusion came from. I even acknowledged that the original change was problematic.

> the principle reason as stated is that Calibri is less professional

That's fair, but it doesn't erase the 'DEI' comment in the memo. If that weren't there, we might actually be having a discussion about the merits of one font vs. another.

> It isn't in fact about "sticking it to the woke"

Again, that might be believable if the memo hadn't explicitly complained about DEI.
by cluckindan | 2025-12-11 13:21:50+00:00
As a state tends toward either communism or capitalism, it starts dictating the economy more and more, until it hits the ceiling and becomes a totally dictated war economy, where a fundamentally fascist ideology replaces previous values. At that point, war is inevitable, because a war economy requires active warfare, and war provides ample opportunies for pilfering at multiple levels, both home and abroad.

Fascism is not to blame, it is a means to an end for the economy at large. Ultimately, the issue is uneven distribution of wealth and power.
by kentonv | 2025-12-11 13:22:07+00:00
Try Durable Objects. D1 is actually just a thin layer over Durable Objects. In the past D1 provided a lot of DX benefits like better observability, but those are increasingly being merged back into DO directly.

What is a Durable Object? It's just a Worker that has a name, so you can route messages specifically to it from other Workers. Each one also has its own SQLite database attached. In fact, the SQLite database is local, so you can query it synchronously (no awaits), which makes a lot of stuff faster and easier. You can easily create millions of Durable Objects.

(I am the lead engineer for Workers.)
by alias_neo | 2025-12-11 13:22:25+00:00
They admitted to testing nothing, they just [googled it].

To be fair, the massive install size was probably the least of the problems with the game, it's performance has been atrocious, and when they released for xbox, the update that came with it broke the game entirely for me and was unplayable for a few weeks until they released another update.

In their defense, they seem to have been listening to players and have been slowly but steadily improving things.

Playing Helldivers 2 is a social thing for me where I get together online with some close friends and family a few times a month and we play some helldivers and have a chat, aside from that period where I couldn't play because it was broken, it's been a pretty good experience playing it on Linux; even better since I switched from nvidia to AMD just over a week ago.

I'm glad they reduced the install size and saved me ~130GB, and I only had to download about another 20GB to do it.
by pjc50 | 2025-12-11 13:23:31+00:00
> You should be able to compile a relatively small, trimmed, standalone, AOT compiled library

Yes-ish. We do AOT at work on a fairly large app and keep tripping over corners. Admittedly we don't use COM. I believe if you know the objects you are using upfront then code generation will take care of this for you. The other options are:

- self-contained: this just means "compiler puts a copy of the runtime alongside your executable". Works fine, at the cost of tens of megabytes

- self-contained single file: the above, but the runtime is zipped into the executable. May unpack into a temporary directory behind the scenes. Slightly easier to handle, minor startup time cost.
by zahlman | 2025-12-11 13:24:39+00:00
> Another PEP 351 world view is that tuples can serve as frozenlists; however, that view represents a Liskov violation (tuples don't support the same methods). This idea resurfaces and has be shot down again every few months.

... Well, yes; it doesn't support the methods for mutation. Thinking of ImmutableFoo as a subclass of Foo is never going to work. And, indeed, `set` and `frozenset` don't have an inheritance relationship.

I normally find Hettinger very insightful so this one is disappointing. But nobody's perfect, and we change over time (and so do the underlying conditions). I've felt like frozendict was missing for a long time, though. And really I think the language would have been better with a more formal concept of immutability (e.g. linking it more explicitly to hashability; having explicit recognition of "cache" attributes, ...), even if it didn't go the immutable-by-default route.
by treetalker | 2025-12-11 13:24:52+00:00
Strange, I use it on the same setup and have no issues. I imagine you already know that the delay of the overlays can be reduced and eliminated in the settings. I recently nuked and paved that machine, though, and everything feels like it's running faster than before.

I'm not familiar with Wooshy, so I'll have to check that out. Shortcat doesn't receive updates and for years there has been an indication that it would move from beta to licensed software (which I would happily pay for!), so I live in constant fear that it's on the road to abandonware.
by yiiii | 2025-12-11 13:25:27+00:00
That's what sectioning elements [1] like <section> and <article> where once introduced.Opposite to just using <div> elements their purpose was to create a real document outline, where it would have been possible to only use <h1> and their level would be determined by how deep the section is nested, but this approach was never really adapted.

[1] https://www.w3schools.com/html/html5_semantic_elements.asp
by kentonv | 2025-12-11 13:25:30+00:00
Transactions are supported in Durable Objects. In fact, with DO you are interacting with the SQLite database locally and synchronously, so transactions are essentially free with no possibility of conflicts and no worry about blocking other queries.

Extensions are easy to enable, file a bug on https://github.com/cloudflare/workerd . (Though this one might be trickier than most as we might have to do some build engineering.)
by aewens | 2025-12-11 13:26:53+00:00
You may be thinking of the `frozenset()` built in or the third party Python module [frozendict](https://pypi.org/project/frozendict/)?

Personally, I’ve been using a wrapper around `collections.namedtuple` as an underlying data structure to create frozen dictionaries when I’ve needed something like that for a project.
by PaulHoule | 2025-12-11 13:26:56+00:00
I thought “seem” communicated that it “seems” that way even if it might not be so. In the case of me it is so, in the case of Copilot it is just talking that way.

I know it has never felt anything and never cared about anyone or anything. It has also read much more romance fiction and books about romance fiction that I could ever read so it equipped to talk a very good game about what the structure of that literature is and how it produces the emotional effect that it does.

What I think happened is that I was trying to figure out what it is that made me feel smitten with that character and my whole intention is to transmit that feeling to other people so I guess it just learned how to talk like somebody who is smitten with that character. It may also be that it is following it’s training to butter me up, though it was really going too far like I am trying to write some Python and I have to tell it that “we’re not talking about Ellie now”
by R_D_Olivaw | 2025-12-11 13:26:58+00:00
The way I think about it these days it's that these "neurotypes" are just as the clergy and clergy-adjacent classes of the past.

Many may actually believe in [deity] so they are on a righteous path, while still many more don't truly believe (or live according to [deity doctrine]), but they see the sheer amount of wealth and prestige that these systems offer. So they play along.

And then some of those players do a miracle, or give particular effective sermon at the right time, and they're sainted. Soon believing themselves to be prophets and indeed propped up by the hard work and resources of others.

At least the deities of yore had cool characters.
by zbentley | 2025-12-11 13:27:09+00:00
I think GP was talking about optimizing away the O(N) call on the last line. The GC will take care of removing the reference to the old (mutable) dict, but constructing a new frozendict from a mutable dict would, in the current proposal, be an O(N) shallow copy.

There are also potentially other optimizations that could be applied (not specific to dict/frozendict) to reduce the memory overhead on operations like "a = f(a)" for selected values of "f".