MurphyA/hacker-news huggingface dataset:
by suby | 2025-09-17 15:01:19+00:00
Well, if the recent drop in views was due to adblockers, we now have some data about what percent of viewers block ads. There would have to be an effort to collect this data, and the view discrepncy is probably going to differ by genre of video (eg, tech youtubers probably experienced a greater dip), but this should roughly tell us how much is lost to adblockers.

Creators have stated that while their viewcount is down their ad revenue is not - but a lower viewcount still presumably hurts youtubers for in video sponsorships, and if some genres of video have a higher portion of users with blockers, that probably hurts that entire genre in the algorithm. It sounds like viewcounts are returning back to normal though.
by nextaccountic | 2025-09-17 15:01:40+00:00
Yep implicitly, for receives an IntoIterator, so it iterates either on an iterator like 0..10 or something that can be converted into an iterator like &myvec

(Note that it was a severe design flaw to make ranges like 0..10 iterators directly rather than just IntoIterator, because this means ranges can't be Copy and as such it's inconvenient to pass them around.. but fortunately they are going to fix that in a new edition)

But actually..

Do you mean you prefer writing for i in 0..myvec.len() and then accessing myvec[i], rather than using for x in &myvec or for x in &mut myvec, and using the x directly? But why?
Ask HN: What should I consider when designing a custom embedded graphics format?
by denis_dolya | 2025-09-17 15:01:59+00:00
I am working on a new embedded graphics format that aims to be simple to parse, memory-efficient, and easily implemented on constrained devices without external libraries. The motivation for this project comes from years of experience working with existing formats. PNG is difficult to parse on embedded platforms without significant library support, and BMP, while simple, consumes too much memory for many constrained systems. I wanted to explore a solution that combines the simplicity of BMP with improved efficiency and a structure that is easy to implement directly in code.

I have considered raw-based formats with minimal headers, similar in some ways to PCX, but I want to explore alternatives that remain practical for long-term maintenance and extensibility.

What are the most important considerations you take into account when designing a custom data format for embedded systems that will likely need to be maintained and extended over the next 10–15 years? Specifically, I am interested in trade-offs between simplicity, memory efficiency, and potential future flexibility. Any experiences, lessons learned, or patterns to avoid would be very valuable.
by Insanity | 2025-09-17 15:02:04+00:00
This is exactly how I want my FPS games to be. Just linear, run & gun. TBH, I can even do without weapon upgrades or any "RPG" style elements.

It's even worse in multiplayer games like COD and BF. As soon as I need to figure out combinations of 5x attachments to guns I lose all my interest in playing the game. That's why I'm still on CS I guess lol.
by kqr | 2025-09-17 15:02:06+00:00
Author here. I did not expect this to show up on HN already.

I took a few hours to make something I’ve long wanted to make: a very tiny “ATC simulator”. It’s different from all the others in that airplanes cannot be vectored, i.e. one cannot assign headings and speeds and altitudes. Instead, they have to be separated purely by assigning them one of a few standard routes.

I’m looking for feedback on how the gameplay can be improved, without making it more complicated. Particularly curious about things such as:

- Does difficulty ramp up too fast or too slowly?

- Do planes move too fast or too slowly?

- Is the punishment for conflict too harsh?

- Should one get points for maintaining separation in addition to landing planes?

- Should points be dependent on how quickly planes were able to land?

- Do the standard arrival paths need to be redesigned, and if so, how?

- Should airplanes have different altitudes depending on where along the route they are? This would allow for crossing traffic to overfly the final approach course without conflict, for example, but it would make joining routes more difficult in ways that might be hard to explain to casual players.

Thank you for your time!
by jitl | 2025-09-17 15:02:16+00:00
(I work at Notion and built the html exporter during my hiring process work trial in 2019, opinion is my own)

I would love to two-way sync Notion <-> Obsidian vault. Notion is focused on online collaboration, Obsidian is focused on file-over-app personal software customization; there’s so much Obsidian can do especially with plugins that Notion isn’t able to address. If we can make the two work together even if it’s not perfectly seamless, it would extend usefulness of both tools by uniting their strengths and avoiding the tradeoff of their weaknesses.

If only I had an extra 24h per day I’d build it myself, but it needs some fairly complex machinery for change tracking & merging which would require ongoing support so it’s not something I can tackle responsibly as a weekend project.

At the least we could offer YAML frontmatter as an option for Notion’s markdown export feature. Maybe I can get to that today I have a few spare hours.
by BoiledCabbage | 2025-09-17 15:02:59+00:00
> Regulatory capture at work.

Regulatory capture here on HN is turning into a meaningless phrase. Whenever a business does something wrong, rather than actually say what's wrong someone just claims it's regulatory capture. It's turned into it's own thought terminating cliche.

Say what the issue is, don't just blame an assumed regulatory capture. In this case state that it's insufficient regulation of the meat processing industry, infrequent inspections of processing plants, or understaffed agencies.

Say what the issues were, not a nebulous "regulatory capture" claim.

Businesses lobby to get FDA regulations weakened - state that's the problem, not a vague "regulatory capture" phase.
by roc856a | 2025-09-17 15:03:11+00:00
Your workflow was horrendous, and now it's merely bad. Don't touch any images on the card until you're sure that the images imported correctly AND your local and cloud backups have backed up the images. I assume you have local and cloud backups. If not, you should set them up right away. Really, cards hold a huge number of images and there should be no rush to empty them out.
by NickC25 | 2025-09-17 15:03:41+00:00
>the only reason someone can criticise mr Obama is because they don't like the color of his skin!

I have roundly criticized Obama for the last 17 years since he was elected. I was critical during his tenure, and critical of his actions after his tenure. He doesn't get a pass.

I voted for him in 2008, not because he was black, or because he was a Democrat, but because I was sick of no-bid contract loving Neo Cons whose stock portfolio was antithetical to national security, and thus I wanted and voted for change.

But let's look at his actions and what I disliked.

Drone strikes? Yup. Critical of those. Bailing out Wall Street? Yup. Some of those bankers should have been jailed, versus bailed out with golden parachutes. Continuing the forever wars in the Middle East? Of course I critiqued those. Ignoring actions by our "friends" in the middle east that furthered Arab hatred of the US? Absolutely hated that too. Trying to pacify Putin after his attacks in Georgia, invasion of the Donbas? Yes. Was particularly hard on him for this. Not standing up to the GOP reactionary wing? Yes, I blamed that on him too. Failed healthcare policy? Of course I have issues with that.

Let's stop pretending that Obama was some sort of liberal or far leftist. The dude was pretty center-right by world standards, and only considered remotely left because the GOP had spent the Bush II administration pushing the Overton window about a hundred quadrillion light years to the right.

I could go on. But as someone who spent some time in GOP heavy rural areas during one of Obama's campaigns, I can tell you a lot of the people in those areas routinely began their critiques of Obama with a word that starts with an N and ends with an -ER.
by grogenaut | 2025-09-17 15:04:08+00:00
I had stopped in the bar next to my gym after workout to grab a pint and watch a bit of the game while waiting for a Lyft home. My adult daughter called. I full on panic sprinted out of the bar cause I heard my name and call broke up. Several texts later realize she's ok and just asking about dinner. She never calls so it's obviously an emergency. Is she being attacked, car breakdown what?!?

Also phone didn't work in basic phone mode. These things are getting more useless without earbuds
by crock_smacker | 2025-09-17 15:04:45+00:00
> Political content of any kind is considered mainstream and off topic by many people here, and thus unlikely to lead to curious and intellectually stimulating conversation. Which is the only kind of conversation we're allowed to have. Good hackers aren't supposed to find this interesting.

I agree mostly, however the mods repeatedly allow high karma accounts to flame bait and continuously makes exceptions for the worst political threads. The guidelines are very vague and allow for any number of interpretations.

The rules exist through the zeitgeist of the community, not through any text about hacker, novelty, etc.
by driggs | 2025-09-17 15:05:32+00:00
I've not experienced corruption like the author, since my workflow involves copying the raw files from sdcard to harddrive, and then importing into Photos. After processing the raws in Photos, I export a .jpg back out to the filesystem.

That's because my worry is corruption of the entire Library, which Photos stores as one gigantic opaque file/directory abomination. My .photoslibrary file is currently 70gb in size, and I'm terrified of what would happen if it becomes corrupted. The Photos app crashes not infrequently.
by scary-size | 2025-09-17 15:05:49+00:00
Love it! Not an iOS dev, but have built a personal app that I want to publish for macOS too. I built on top of SQLite, but didn’t want to tackle the synchronisation yet. That should solve it.

It employs a „last edit wins“ strategy for conflict resolution, which is fine in my case. Obviously could be too basic for collaborative apps.
by steveklabnik | 2025-09-17 15:06:33+00:00
> It's important to remember Rust's borrow checker was computationally infeasible 15 years ago.

The core of the borrow checker was being formulated in 2012[1], which is 13 years ago. No infeasibility then. And it's based on ideas that are much older, going back to the 90s.

Plus, you are vastly overestimating the expense of borrow checking, it is very fast, and not the reason for Rust's compile times being slow. You absolutely could have done borrow checking much earlier, even with less computing power available.

1: https://smallcultfollowing.com/babysteps/blog/2012/11/18/ima...
by cmurf | 2025-09-17 15:06:37+00:00
The default behavior for handling cards containing images is a read-only mount, and copy all the images without any modifications.

When flash fails it returns garbage or zeros instead of (what was) your data. It can be tranient or persistent. And without any error codes from the storage device or the file system.

If storage returns garbage for filesystem metadata, all bets are off how the OS filesystem driver will behave.

Reformat should be done in camera. And that card used only in that camera. And only that camera gets to write to that card. And don't delete individual images.
by pilaf | 2025-09-17 15:07:11+00:00
Many youtubers have sponsorships though, and their viewership stats come into play when negotiating with potential sponsors.

I guess if everyone was hit equally across the board then those sponsors will eventually adjust to the new metrics, but I assume some genres have more tech-savvy audiences which are more likely to use ad-blockers, so I'm not sure how evenly distributed this penalty falls.
by accrual | 2025-09-17 15:07:21+00:00
This matches my experience as well. When I'm working on a codebase that I started and know well, it feels like magic to chat with an AI and watch patches appear on the screen to accept/deny. I only accept about 50% of the AI patches before tweaks because it's my project and I care about keeping on the track I laid out.

When I'm vibe coding something from scratch I don't have the mental model, I don't always review everything closely, and eventually it becomes an "AI project" that I'm just making requests against to hopefully achieve my goal.
by runarberg | 2025-09-17 15:07:40+00:00
I think it is very fitting to use the start of the colonization efforts as a starting point for a colonial conflict. Starting with a compromise efforts should really prompt the question: What were they comprising on? Starting with indigenous resistance against colonization should prompt the question: Who was colonizing whom? When did the colonization start?

Starting before the colonization project started and finding reasons or justifications for the colonization is only ever gonna be an exercise in justifying oppression. The victims of colonization had nothing to do with that. Conflicts start when the indigenous population resists colonial oppression.
by inbx0 | 2025-09-17 15:08:01+00:00
I don't think pinning deps will help you much, as these incidents often affect transitive dependencies not listed in package.json. package-lock.json is there to protect against automatic upgrades.

I know there are some reports about the lockfile not always working as expected. Some of those reports are outdated info from like 2018 that is simply not true anymore, some of that is due to edge cases like somebody on team having outdated version of npm or installing a package but not committing the changes to lockfile right away. Whatever the reason, pinned version ranges wouldn't protect against that. Using npm ci instead of npm install would.
by 9rx | 2025-09-17 15:08:13+00:00
> Contrary to the conspiracy theories, H1B requires the employer to pay market wage or higher [...] where finding a qualified candidate becomes a challenge.

Something doesn't add up here. If you are paying the market wage, you fundamentally cannot have challenges finding qualified candidates. The market wage isn't established until you already have someone agreeing to your terms...

H1B is built around the concept of past market wages. This is why the 'conspiracy theories' state that H1B drive down wages. Not because the H1B workers are paid less than other workers, but because they are paid the same.

Consider the scenario where yesterday it took $20 per hour to find a willing worker. Your competitor hired that person. Said worker isn't going to come work for you for $20 per hour. He is already positioned with that. He would come work for you for $30 per hour, though. You could offer him $30 per hour, or you could cry and say that you can't find anyone and then hire an H1B for $20 per hour. Technically, in this scenario, the market wage became $30 per hour, but since the H1B was introduced you were able to bring it back down to $20 per hour.

Which isn't much of a conspiracy theory. That's just basic economics. The macro effects are considerably more complicated, of course. H1Bs are granted on the understanding that having two workers being paid $20 per hour is more net beneficial to society than one worker making $30 per hour. Including economically over the long term — where businesses that are able to expand with more workers will eventually be able to pay all workers more, although the "trickle down" crowd will dismiss that idea.

The so-called conspiracy theories disagree with that notion, believing, no doubt because they are thinking of it from an individualistic point of view rather than a worldly point of view, that they would be better off making $30 per hour instead.
by rTX5CMRXIfFG | 2025-09-17 15:08:25+00:00
I find "Fast lightweight replacement for SwiftData that can target all the way back to iOS 13" (when SwiftUI came out I think) to be such a hard sell. How many businesses are there that must absolutely (1) run their apps on iOS 13; (2) use declarative syntax for data persistence; and (3) are profitable enough to invest time and effort on learning a third-party library for a really old OS? It sounds like an overly specific use case.

In general though, I'm not sure who finds PointFree's work a net positive investment of resources, but the company seems to be in the business of reinventing the wheel and locking you in so that you'll pay for support. Meanwhile, Apple's own SDKs are free. And with Apple's history of source-breaking changes over major platform updates, plus given how even huge libraries/tools like Alamofire, Realm, RxSwift, Cocoapods eventually succumbed to oblivion, I can't think of why an Apple developer with any modicum of discernment would choose PointFree's tools over Apple's own--unless they are themselves caught by the allure of reinventing the wheel.
by andsoitis | 2025-09-17 15:08:40+00:00
> simple to parse, memory-efficient, and easily implemented on constrained devices

have you considered (compressed) texture formats?

ASTC might very well meet your requirements, including performance on embedded hardware: https://en.wikipedia.org/wiki/Adaptive_scalable_texture_comp...

If not ATSC, also consider ETC and DXT.
by seanmcdirmid | 2025-09-17 15:08:54+00:00
LIDAR prices are falling fairly rapidly over time (although I’m not sure about the impact of tariffs). The car and computing resources are otherwise boring costs, maybe they are at around $200k/vehicle? That would be pretty easy to pay for a with a few months of rides. If most of the rides are going through the Waymo app, they aren’t paying a lot to uber and Lyft, and I doubt they are paying the full 30% to the ride sharing platforms anyways.
by jjk166 | 2025-09-17 15:08:58+00:00
And pure ellipses as predicted by newtonian gravitation also don't line up with actual orbits perfectly. In both cases they are just models approximating reality, one of which happens to be more elegant. I don't know how anyone would be able to jump straight from epicycles to general relativity.

Quantum mechanics likewise is just an approximation of quantum field theories.
by formerly_proven | 2025-09-17 15:08:59+00:00
> Speed. It all comes down to speed.

GP isn't wrong though. Most cameras embed a medium quality full-resolution JPEG along a couple different thumbnails in raw files, so saving raw+normal JPG is kinda pointless, because the raw already contains that jpeg. Raw+jpg is only easier in the sense that many/most non-vendor tools - even viewers - can't properly handle the embedded jpg so it's easier to just duplicate the storage (e.g. 50 MB for the raw + 10-20 MB for the JPG) and take the hit on storage consumption/transfer time.
by big_toast | 2025-09-17 15:09:04+00:00
I don't really get the syncing situation with apple. And it's really hard to tell when they've resolved bugs in one app or introduced new ones elsewhere.

The Safari reading list can't even sync properly between devices for me. Image Capture ("Keep Originals"??) or AirDrop is a little minimal for such a keystone part of the phone -> computer if you don't want to use Apple ecosystem after.. Let alone the other more complicated issues.
by zokier | 2025-09-17 15:09:10+00:00
You can use nat64 to talk to legacy networks. Ipv6-only networks (with nat64 or 464xlat etc) are becoming increasingly popular. There is also this new concept called "ipv6-mostly network" that is getting rolled out: https://www.ietf.org/archive/id/draft-ietf-v6ops-6mops-02.ht...
by taeric | 2025-09-17 15:09:31+00:00
My mental model is that complex numbers are the first of the basic number systems that no longer has a total ordering. That alone is super useful for it.

Quantum is an odd one, as the name indicates that it deals in quantums. Minimum values that can't be divided. The difficult parts seems more to be in systems that have a probability space more than an analytical model that describes them. Which, fair, it is not a number system.
by jumploops | 2025-09-17 15:09:35+00:00
Uh, sorry?

The bounty here is just $5k, and if you read my comment, I’m suggesting that the maintainer(s), even with LLMs, will likely spend a similar amount in inference + cost of their own time, however they’ll likely produce a solution more robust than what the bounty alone will produce.

To be clear: I’m not advocating that someone simply vibe-codes this up.

That’s already happening (2 PRs when this hit HN), both with negative feedback.

I’m suggesting that the maintainers should give LLM-assisted dev a try here, as they already have context on the Obsidian-side API.
by rlnorthcutt | 2025-09-17 15:09:40+00:00
From the post: "In this post, we’ll explore Go’s memory allocator in depth. We’ll look at its core components, how they interact to serve allocations of different sizes, and how stacks are managed alongside heap objects. Along the way, we’ll examine some case studies to understand the practical implications of Go’s memory allocation strategies. By the end, you should have a clearer picture of how Go abstracts memory management while offers high performance."
by raxxorraxor | 2025-09-17 15:10:24+00:00
I do think the ambition to spy on all private communication to be quite extremist.

Especially Germany should know better. If you build two autocratic dictatorships on average per century, maybe start to take care that state powers are restricted.

The US is fully correct in its criticism of Germany regarding freedom of speech and house searches. Sure, on surveillance their arguments would be very weak...

Absolutely nothing positive will be gained by this surveillance, so there isn't even the smallest security benefit. On the contrary.
by tromp | 2025-09-17 15:10:28+00:00
If you count arbitrary transition tables, then you get a count of 63403380965376 [1].

If you count transition tables in which states are reachable and canonically ordered, then you get a count of 632700 * 4^10 = 663434035200 [2]. These machines can behave differently on arbitrary tape contents.

TNF further reduces these counts by examining machine behaviour when starting on an empty tape.

[1] https://oeis.org/A052200

[2] https://oeis.org/A107668
by bArray | 2025-09-17 15:10:32+00:00
> The Ben & Jerry’s co-founder Jerry Greenfield has stepped away from the ice-cream brand after nearly 50 years, claiming it has lost its independence and accusing its parent company, Unilever, of having “silenced” its social mission.

There is a social mission, and then there is outright political bias. Having a social mission could be climate change, responsible sourcing, charity, etc. But the headline image is a Ben & Jerry's tub with a picture of a political candidate on it.

> Greenfield’s resignation is the latest development in a bitter dispute since Unilever backtracked on an agreement allowing Ben & Jerry’s to not sell ice-cream in occupied Palestinian territories, which had been heavily criticised in Israel.

> Last year, Ben & Jerry’s launched a legal action against Unilever, accusing it of threatening to dismantle the board and sue directors over their public statements in support of Palestinians in Gaza.

At some point you have to ask what ice cream has got to do with Israel and Gaza, no matter where you stand on the issue.

Given the political winds, I think Unilever are acting to protect the brand and their investment, and the co-founders become somewhat increasingly more political.
by yesfitz | 2025-09-17 15:10:39+00:00
That's true, and as far as my quick research has gone, the plastic is burned off during the smelting process of aluminum recycling.

Because of the small amount of plastic in each can, and the high heat of the smelting process, odds are good the thin plastic liner will be almost fully combusted, which should greatly reduce the amount of microplastics.[1]

1: https://www.sciencedirect.com/science/article/abs/pii/S03043...