MurphyA/hacker-news huggingface dataset:
by ajx1001 | 2025-05-14 16:48:52+00:00
Yes, this is a good description. The way I explain it is that "Ash is a declarative, composable application framework."

It is the middle layer between DB (Ecto) and Phoenix (with or without LiveView) -- where your actual application lives.

The difference between a Resource and a Model (or ActiveRecord) is Models typically define attributes and relationships vs a Resource defines attributes, relationships, actions (read, write, destroy, custom...), behaviours (i.e. multi-tenancy, jobs) and what I call facets (i.e. JSON api, GraphQL).

When you read the code for a Resource, you grok all of this in a nice, consistent way (we have 100* resources - all are consistent). This is because of the DSL.

When compiled, it all boils down to a Struct that you can easily inspect. That Struct enables all kinds of stuff.
by simoncion | 2025-05-14 16:49:03+00:00
> ...the most serious of which was the discovery that you can no longer just screenshot something and expect it to look the same on someone else's computer.

To be pedantic, this has always been the case... Who the hell knows what bonkers "color enhancement" your recipient has going on on their end?

But (more seriously) it's very, very stupid that most systems out there will ignore color profile data embedded in pictures (and many video players ignore the same in videos [0]). It's quite possible to tone-map HDR stuff so it looks reasonable on SDR displays, but color management is like accessibility in that nearly noone who's in charge of paying for software development appears to give any shits about it.

[0] A notable exception to this is MPV. I can't recommend this video player highly enough.
by lotsofpulp | 2025-05-14 16:49:24+00:00
That does not seem to be true:

https://www.uber.com/us/en/drive/insurance/?city=portland

>When you earn with a transportation network company (TNC), referred to here as ridesharing, most states require extra—and costly—insurance.

>Uber maintains this commercial insurance on your behalf. What’s covered depends on factors such as who was at fault; whether you were offline, online, en route, or on-trip; and your personal insurance policy. Learn more about the commercial insurance coverage Uber maintains on your behalf below.
by babypuncher | 2025-05-14 16:50:04+00:00
> A few years ago on HN, there was someone who couldn't wrap their brain around the notion that even though VCRs were invented in the early 1960's that in 1980, not everyone owned one, or if they did, they only had one for the whole family.

Point of clarification: While the technology behind the VCR was invented in the '50s and matured in the '60s, consumer-grade video tape systems weren't really a thing until Betamax and VHS arrived in 1975 and 1976 respectively.

Early VCRs were also incredibly expensive, with prices ranging from $3,500 to almost $10,000 after adjusting for inflation. Just buying into the VHS ecosystem at the entry level was a similar investment to buying an Apple Vision Pro today.
by altairprime | 2025-05-14 16:50:42+00:00
Instagram has to allow HDR for the same reason that Firefox spent the past twenty years displaying web colors like HN orange at maximum display gamut rather than at sRGB calibrated: because a brighter red than anyone else’s draws people in, and makes the competition seem lifeless by comparison, especially in a mixed-profiles environment. Eventually that is regarded as ‘garishly bright’, so to speak, and people push back against it. I assume Firefox is already fixing this to support the latest CSS color spec (which defines #rrggbb as sRGB and requires it to be presented as such unless stated otherwise in CSS), but I doubt Instagram is willing to literally dim their feed; instead, I would expect them to begin AI-HDR’ing SDR uploads in order that all videos are captivatingly, garishly, bright.
by nayuki | 2025-05-14 16:50:55+00:00
The 2D version of this coding game would be tixy: https://tixy.land/ , https://news.ycombinator.com/from?site=tixy.land , https://news.ycombinator.com/item?id=43942881 , https://news.ycombinator.com/item?id=24974534
by arprocter | 2025-05-14 16:51:27+00:00
The MTA in NYC can't seem to make this work correctly for trains

At our (penultimate aboveground) stop you can look down the track and see if there are any trains waiting - even if there aren't, the live board still likes to claim there's one 'coming in a minute'

My only guess is it works off of what should be happening, and not what actually is going on
by notpushkin | 2025-05-14 16:51:29+00:00
Ahhhh, okay! Looks like I’ve got a bad roll of a dice then. (The `uber_for` is actually hilarious :-)

Maybe move the script to something like ash-hq.org/new?project_name={generated}, so that it’s easier to guess what’s going on? Or break it up into steps, like:

# Install prerequisites (Elixir and `igniter_new`): curl -fsSo 'https://ash-hq.org/install?with=phoenix' | sh # Create a new app: mix igniter.new {{ generated }} --yes-to-deps --yes --install "" cd {{ generated }} # Install Ash: mix igniter.install ...

(This could also let you eliminate that “Already have an app?” button-link – the users can just skip the steps they’ve already done.)
by PaulHoule | 2025-05-14 16:51:39+00:00
It is easy to lay out criticism, hard to tell what a real answer could be. A writer friend of mine said it in a Hegelian way, that plots are thesis - antithesis - synthesis. You have some conflict and it is resolved.

You might make experiences that are about spending some time in a loved imaginary world with loved characters (The Star Wars Holiday Special or Star Wars: Galactic Starcruiser [1]) but inevitably people who aren't superfans are going to feel it doesn't appeal to them. You can make a profitable game (Azur Lane) which is all about fanservice, collecting, and little narratives -- and people are going to say it is degenerate and compare it unfavorably to normal single player games like, say, Hi-Fi Rush or even mobile games which have a clear story like Love Nikki. All the complaints that people have around big media franchises will still stand.

[1] https://screenrant.com/star-wars-galactic-starcruiser-hotel-...
by hinkley | 2025-05-14 16:52:04+00:00
I had a service that was used to do a bunch of compute at deployment time but even with the ramp up in deployment rates anticipated by the existence of the tool, we had machines that were saturated about 6 hours a month, 12 at the outside. The amount of hardware we has sitting around for this was initially equivalent to about 10% of our primary cluster, and I got it down to about 3%.

But at the end of that project I realized that all this work could have been done on a CI agent if only they had more compute on them. My little cluster was still almost the size of the build agent pool tended to be. If I could convince them to double or quadruple the instance size on the CI pipeline I could turn these machines off entirely, which would be a lower total cost at 2x and only a 30% increase at 4, especially since some builds would go faster resulting in less autoscaling.

So if one other team could also eliminate a similar service, it would be a huge win. I unfortunately did not get to finish that thought due to yet another round of layoffs.
by Kon-Peki | 2025-05-14 16:52:16+00:00
More importantly, what would have happened if a car (that was not speeding) just happened to be visible in the photo?

I’ve never received an automated speeding violation, but have received turn-on-red ones before. In those cases, the violation includes a link where you can see a video of the whole scenario and offers a button to click where you claim it was not actually a violation. Hopefully the speed cameras also have such a system where you have some reference points to calculate time travelled between frames in the video (with a know frame rate).
by Suppafly | 2025-05-14 16:52:18+00:00
>Homer and Shakespear at least have the advantage of being referred to all the time elsewhere.

That's true for most of the works in the canon of works that are commonly taught in schools, people that didn't pay attention tend to miss them or be confused by them though. Every time we remove some work by Dickens or Shakespeare from our canon, we lose a bit of that shared culture.
by andrewmcwatters | 2025-05-14 16:52:26+00:00
Passwords and password managers seem good enough to me, and TOTP support is everywhere now.

Passkeys just feel like a standard written by large tech companies as a flywheel technology to keep me locked into whatever hardware and software ecosystem I'm already in since seemingly no one besides maybe Bitwarden supports exporting them. Which seems pointless, because I don't know of any platform that supports importing them.

I am also getting tired of corporate white knight nerds defending trillion dollar companies telling me that portability isn't a concern.
by PaulDavisThe1st | 2025-05-14 16:53:02+00:00
Several people in the comments seem to be blaming Github for taking this step for no apparent reason.

Those of us who self-host git repos know that this is not true. Over at ardour.org, we've passed the 1M-unique-IP's banned due to AI trawlers sucking our repository 1 commit at a time. It was killing our server before we put fail2ban to work.

I'm not arguing that the specific steps Github have taken are the right ones. They might be, they might not, but they do help to address the problem. Our choice for now has been based on noticing that the trawlers are always fetching commits, so we tweaked things such that the overall http-facing git repo works, but you cannot access commit-based URLs. If you want that, you need to use our github mirror :)
by rectang | 2025-05-14 16:53:10+00:00
I’m sure I’ve experienced “roast defects” at some point. However, I’ve tried a lot of light roasts — some of which I’ve liked quite a lot — and surely not all of them were afflicted with such defects. What I’m describing as a general character of light roasts (more present flavor components compared to dark roasts since they are less burned away), which I’m characterizing as “green” or “woodsy”, probably isn’t what you mean. You’re fixating on the vocabulary rather than what is being conveyed.

For what it’s worth, I worked as a barista for a spell a long time ago and blind testing is a hobby of mine; I’ve done lots of dueling press pots experimenting with different varieties and brewing techniques. I also have a hobby of trying out new eateries and cafes. I’m a hobbyist, who loves coffee — but this love has been nurtured mostly outside of professional circles.
by jedbrooke | 2025-05-14 16:53:10+00:00
I remember running in to this problem in university too where one of the basement lab rooms didn't have cell service, but we had to log in to the school computers with our university accounts that had mandatory 2fa

also was surprised to learn from the article that some carriers don’t support the 2fa 5 digit numbers over wifi calling/sms. when I travelled abroad recently that was such a life saver since my carrier supports it
by daft_pink | 2025-05-14 16:53:16+00:00
It’s not only that the films have the same basic narrative structure, but the way films these days need to check a series of boxes. You can’t have just an action movie anymore, it also must contain a romantic subplot, charismatic antagonist, light humor, diverse cast, visual effects, international marketability (topic not narrow to one countries audience) etc.

Before we had the same basic recycled narratives, but a film didn’t need to check every single box and some films were more directed at romance or certain audiences and only checked a few of these boxes.

Modern tent poles need to check every single box and it just feels so formulaic and boring.
by joshka | 2025-05-14 16:53:21+00:00
Your customers are using these photos which have been manipulated to look better than reality to sell a physical good. While this happens all the time with standard things for sale, you'll often see disclaimers that the item isn't exactly the same as pictured, 'sequences shortened'.

With this, you're giving over the control of that choice to improve a photo to a system that is difficult to align. Let's give a scenario. The AI improves the photo by inserting power outlets where they are not. Or removes some sign of rotting wood on an exterior feature that later causes injury. Both the sellers and owners could reasonably have a cause of action against you for fraudulent manipulation of the truth.

If it was something much smaller than a house, I'd be less worried about it. But you're targeting the largest purchase someone is likely to make in their lifetime generally.

Obviously, there's lots of things that happen when buying a house that that mitigate this sort of problem, but as mentioned you're offering a service which affects the initial point where a potential buyer would interact with an ad in a way that's difficult to constrain to being truthful. Sure human editors can do this sort of thing too, but here it's being offered as a service. I'm guessing that "The AI did it" isn't an excuse you'd want to have to try to argue in a courtroom.
by toomuchtodo | 2025-05-14 16:53:32+00:00
https://www.cdc.gov/nchs/pressroom/nchs_press_releases/2023/...

https://www.pewresearch.org/short-reads/2019/08/02/why-is-th...

https://www.guttmacher.org/gpr/2014/09/what-behind-declines-...

https://www.cdc.gov/nchs/data/nhsr/nhsr104.pdf

Teen marriage rates (15-17) are alread exceptionally low. One would expect as laws are enacted at the state level to raise the minimum marriage age to 18, these declines should continue.

https://www.jahonline.org/article/S1054-139X(21)00341-4/full...

https://www.pewresearch.org/short-reads/2016/11/01/child-mar...
by floam | 2025-05-14 16:53:35+00:00
There is something like this being used in jails and prisons now. The purpose is to limit the ability of people to sneak in paper bathed in fentanyl or other potent enough substances.

Inmates do not receive originals - incoming mail is scanned at some service provider’s office that a PO Box forwards to, and things are reprinted at the detention center and walked to the inmate. Or people sign up for a faster service where photos / letters are uploaded through an app to skip the snail mail + scanning step.

One of these is called pigeon.ly

At most participating facilities the only exception to get an inmate physical paper from the outside world is legal mail.
by coded_monkey | 2025-05-14 16:53:48+00:00
> As others have also observed, permissions such as MANAGE_EXTERNAL_STORAGE have been rampantly abused in the past, often in horrific ways.

The lack of consideration for this point in this thread scares me. The amount of data that can be taken from a device through a permission like this is likely huge and it’s not just about “protecting users from themselves”. I wouldn’t feel safe enabling it for any app, and while syncing all data on the device sounds very useful, it’s a damned if they do, damned if they don’t scenario for Google.
by anon7000 | 2025-05-14 16:53:51+00:00
I totally love HDR on my OLED TV, and definitely miss it on others.

Like a lot of things, it’s weird how some people are more sensitive to visual changes. For example:

- At this point, I need 120hz displays. I can easily notice when my wife’s phone is in power saver mode at 60hz.

- 4k vs 1080p. This is certainly more subtle, but I definitely miss detail in lower res content.

- High bitrate. This is way more important than 4k vs 1080p or even HDR. But it’s so easy to tell when YouTube lowers the quality setting on me, or when a TV show is streaming at a crappy bitrate.

- HDR is tricky, because it relies completely on the content creator to do a good job producing HDR video. When done well, the image basically sparkles, water looks actually wet, parts of the image basically glow… it looks so good.

I 100% miss this HDR watching equivalent content on other displays. The problem is that a lot of content isn’t produced to take advantage of this very well. The HDR 4k Blu-ray of several Harry Potter movies, for example, has extremely muted colors and dark scenes… so how is the image going to pop? I’m glad we’re seeing more movies rely on bright colors and rich, contrasty color grading. There are so many old film restorations that look excellent in HDR because the original color grade had rich, detailed, contrasty colors.

On top of that, budget HDR implementations, ESPECIALLY in PC monitors, just don’t get very bright. Which means their HDR is basically useless. It’s impossible to replicate the “shiny, wet look” of really good HDR water if the screen can’t get bright enough to make it look shiny. Plus, it needs to be selective about what gets bright, and cheap TVs don’t have a lot of backlighting zones to make that happen very well.

So whereas I can plug in a 4k 120hz monitor and immediately see the benefit in everything I do for normal PC stuff, you can’t get that with HDR unless you have good source material and a decent display.
by ModernMech | 2025-05-14 16:54:54+00:00
I agree that if you're using macros to create unnecessary levels of indirection that make things more difficult to reason about, that's not advisable. One shouldn't do that with macros or any other abstraction.

With functions for instance, sometimes people get carried away very straightforward linear code, and atomize it into a hundred little functions that all call one another, all in the name of reducing code duplication. Doing so is an abuse of functions, but one wouldn't say that functions should be used sparingly.

I think that macros are an area where many programmers don't have a lot of experience, and so they also throw out some best practices in order to wrap their heads around what they're doing.

But macros can be very helpful if properly applied, and Rust makes that more ergonomic, and safe, to do.

For example, if I have to write 100 functions that all are similar in structure, but have a slightly different function signature. I would reach for a macro. I don't think it reduces clarity at all, and it increases maintainability because I don't have to change code in 100 functions if an adjustment needs to be made.

Another area where macros is very useful is in creating DSLs within Rust. This is usually the domain of LISPs, but it's an ergonomic way to write tests little scripts.
by overfeed | 2025-05-14 16:55:28+00:00
Are all members of the risk pool using the same model and prompt, and are in the same industry? If yes, then the insurer did a poor job of varying their customers like parent said. If 100,000 customers have exposure, there better be 1,000,000+ others not exposed.

Insuring against localized risk is an old hat for insurance, fire and flood insurance for example, and is generally handled by having lots of localities in the portfolio. This works very well for once-off events, but occasionally leaving localities is warranted when it becomes impossible to insure profitably if the law won't let insurers raise premiums to levels commensurate to the risk.
by BitwiseFool | 2025-05-14 16:55:28+00:00
Perhaps, but I think it would be incorrect to say that I didn't understand what the class was trying to teach me. I may be an obstinate person, but I wouldn't attribute a lack of zeal for a particular subject as an overall lack of curiosity.

I suppose not finding a subject worthwhile is partly my fault, but some responsibility falls on the curriculum as well.
by johnklos | 2025-05-14 16:55:32+00:00
I've seen situations like these before. This is why off-site backups are so very important. I've also been in the same position of providing data from a backup that someone was intentionally trying to destroy to escape responsibility.

This story even hints at a common theme that happens even when people aren't trying to destroy data - that some people will tear down whatever they inherit, then blame their predecessors for the problems that result.
by rorylaitila | 2025-05-14 16:56:15+00:00
Yep, it can fall down if you force it everywhere. Read views are typically where custom "view models" are needed. For example on my current project with ~30 tables/models (https://humancrm.io), there are only a couple custom user views, and a couple custom write functions to simplify the UI flow. The rest of the API is generated from the data models. I take a pragmatic approach and don't force everything into MDD if there is a clear need.
by badc0ffee | 2025-05-14 16:56:28+00:00
There was that, too. But I remember people being happy to use the latest Perl 5 and expecting it to be continually updated (which is still is today). Perl 6 was considered a different language altogether at best, and vapourware at worst.

Still, I can definitely see someone new to the language thinking Perl 5 was a dead end.
by jiscariot | 2025-05-14 16:56:38+00:00
I re-read Gatsby about 30 years after high-school and came away thinking that it was one of the most well written books I'd ever read. FSF's command of the English language is truely amazing in the book. When originally forced to read it in high school, I'm sure I hated it, like I hated everything.

I would recommend a re-read later in life for anyone who didn't like it the first go around. It's less than 200 pages, so not much of a time comittment. Teacher's do assign you a lot of crap in HS, so it can be hard to tell what is worth your time.
by globie | 2025-05-14 16:56:52+00:00
The OP of the thread is pointing out that Google's "gemini-2.5-pro-preview-03-25" model was "suddenly and silently" redirecting to "gemini-2.5-pro-preview-05-06", confusing and frustrating "developers, benchmark maintainers, and researchers" who thought they were using one model but were actually being served another.

The current HN link is to page 3 of that discussion, of which I assume the highlighted comment is from this user who provides a possible reason for that redirection:

> It literally didn`t handhold and gave critical honest feedback, even under wrong assumptions. Where all other models were just parroting what they thought the user wants to hear.
by gmoot | 2025-05-14 16:56:54+00:00
Just the other day my wife and I were marveling that people in our neighborhood groups are requiring pet sitters to be insured and bonded.

The future has always been uncertain. The modern world focusses on risk mitigation to an astonishing degree compared to generations even in the relatively recent past. A lot of that has produced good results. But personally I suspect that we're overly focussed on safety to a degree that inhibits human flourishing.
by JohnMakin | 2025-05-14 16:56:59+00:00
Don't know why I'm being downvoted. Almost everything assumed in the GP comment about me is wrong. I'm north of 40 and I have dependents. Don't blame your decision to have kids for your failures or deficits. It's a really annoying thing people do and inevitably gets projected onto the children, who didn't ask to be here in the first place.
Show HN: I made instant in-page translation and personal vocabulary builder
by kielak2 | 2025-05-14 16:57:03+00:00
Hi HN,

I built PhraseClip because, as a non-native English speaker, I often skipped unfamiliar words while reading online. The friction of copying them into another translator was high enough that learning opportunities slipped away. By making translation effortless, I hope to turn everyday browsing into a low-effort vocabulary lesson.

PhraseClip is a Chrome extension with a companion web app that lets you highlight a word or short phrase on any page and see its translation right where you are, without opening a new tab. Each lookup is automatically stored in your personal dictionary for later review in the web app. The translations are generated on the fly by Gemini 2.0 Flash. In dictionary it also creates example sentence with context.

Do you think tool like this is useful? Please share what you think.