MurphyA/hacker-news huggingface dataset:
by Frost1x | 2025-05-21 11:41:13+00:00
To some degree I think part of its “hey look here, we’re doing LLMs too we’re not just traditional search” positioning. They feel the pressure of competition and feel forced to throw whatever they have in the users face to drive awareness. Whether that’s the right approach or not, not so sure, but I suspect that’s a lot of it given that OpenAI is still the poster boy and many are switching to using things like ChatGPT entirely in place of traditional search engines.
by balazstorok | 2025-05-21 11:42:34+00:00
At least opening PRs is a safe option, you can just dump the whole thing if it doesn't turn out to be useful.

Also, trying something new out will most likely have hiccups. Ultimately it may fail. But that doesn't mean it's not worth the effort.

The thing may rapidly evolve if it's being hard-tested on actual code and actual issues. For example it will be probably changed so that it will iterate until tests are actually running (and maybe some static checking can help it, like not deleting tests).

Waiting to see what happens. I expect it will find its niche in development and become actually useful, taking off menial tasks from developers.
by reedf1 | 2025-05-21 11:43:31+00:00
A bottom up cultural shift is required to change startup culture in Europe. I have lived in both the USA and UK, attempted various startups in both. Reactions of family in UK and around Europe - I've given up a simple life to be a chancer, small setbacks are seen as enormous failures, every discussion is commiseration, enormous skepticism. USA friends and family are universally positive, respectful, full-throated and full-hearted behind what I've done, they view my goals as meaningful despite failures. This starts at the bottom and bubbles up to media, investors, company and government.
by alias_neo | 2025-05-21 11:44:03+00:00
Pixel 9 Pro XL

("What can you see?"; photo of small monitor displaying stats in my home office)

1st token: 7.48s

Prefill speed: 35.02 tokens/s

Decode speed: 5.72 tokens/s

Latency: 86.88s

It did a pretty good job, the photo had lots of glare and was at a bad angle and a distance, with small text; it picked out weather, outdoor temperature, CO2/ppm, temp/C, pm2.5/ug/m^3 in the office; Misread "Homelab" as "Household" but got the UPS load and power correctly, Misread "Homelab" again (smaller text this time) as "Hereford" but got the power in W, and misread "Wed May 21" on the weather map as "World May 21".

Overall very good considering how poor the input image was.

Edit: E4B
by palmfacehn | 2025-05-21 11:44:15+00:00
Every round of layoffs will be attributed to AI, regardless of the underlying cause. I'm bombarded with AI hype in some of the niches I work with. As such, I'm mostly desensitized.

Thank of how you'd feel in a few years with the benefit of hindsight, knowing you let this nonsense disturb your peace. Keep your chin up.
by mooreds | 2025-05-21 11:44:21+00:00
Oh, it's coming :(.

The issue is similar to why folks use SEO--discoverability. Both qualitatively and anecdotally we (FusionAuth, my employer) have gotten a fair amount of traffic from GenAI sources.

Once you can get significant traffic, you must start optimizing for the traffic source, otherwise someone else will and you won't get the traffic/views/$$$.
by rsynnott | 2025-05-21 11:44:25+00:00
Beyond every other absurdity here, well, maybe Microsoft is different, but I would never assign a PR that was _failing CI_ to somebody. That that's happening feels like an admission that the thing doesn't _really_ work at all; if it worked even slightly, it would at least only assign passing PRs, but presumably it's bad enough that if they put in that requirement there would be no PRs.
by seydor | 2025-05-21 11:44:48+00:00
a symptom rather than a cause. there is little incentive to succeed in europe because the culture is against it, or , at best, indifferent. tech journalists reflect this fact. most people are technophobes , but they do ultimately catch up with US tech after the media has spotlighted it, and they do it reluctantly or because of fomo. being an early adopter is anti-european. we are supposed to be more seasoned, more elitist, and leave early adoption to the plebs.
by dsign | 2025-05-21 11:45:43+00:00
Holy sh*t I didn't know this was going on. It's like an AI tsunami unleashed by Microsoft that will bury the entire software industry... They are like Trump and his tariffs, but for the software economy.

What this tells me is that software enterprises are so hellbent in firing their programmers and reducing their salary costs they they are willing to combust their existing businesses and reputation into the dumpster fire they are making. I expected this blatant disregard for human society to come ten or twenty years into the future, when the AI systems would actually be capable enough. Not today.
by PurpleRamen | 2025-05-21 11:46:11+00:00
Not sure about that. They scrapped 70% or so of their planned coal plants some months ago because of over-planning. They've built housing for 3 billion or so people, which nobody will ever use. They are building big train stations, for a tiny amount of passengers, just because maybe in some decades somebody will use them.

The thing about western countries like the USA, which people often don't get is: they are old, they've built their sh*t decades and centuries ago, they were the first one building and use new fancy technologies, and now they have to live with it and can't just switch them as easily as people wish for it. Countries like China, who just now start building modern stuff have the benefit of coming late to the game, have not technical debt and old expensive infrastructure they have to honor.

So they advantage is not better planning, or throwing more money at it, but mainly being late to the game and learning from the mistakes of others.
by xnorswap | 2025-05-21 11:46:19+00:00
The reality is more nuanced, there are situations where you'd want to glance over it anyway, such as looking for an opportunity to coach a junior dev.

I'd rather hop in and get them on the right path rather than letting them struggle alone, particularly if they're struggling.

If it's another senior developer though I'd happily leave them to it to get the unit tests all passing before I take a proper look at their work.

But as a general principle, please at least get a PR through formatting checks before assigning it to a person.
by Zambyte | 2025-05-21 11:46:20+00:00
> It doesn't look to be too much of a temptation to use panics as regular errors in Rust though

Maybe not, but it was enough for the author to dedicate at least one whole section of the article to reasoning about this.

> like when you want to show an error box to the user, instead of silently crashing, or when you want to send the crash log for later analysis

As I mentioned, panics can be handled but not recovered. You can use the panic handler to do these things just fine. Just not recover.
by 4ggr0 | 2025-05-21 11:46:50+00:00
The two landscape GIFs, or I guess color cycles on this page are absolutely beatuiful, wow. Don't remember the last time I was stuck looking at animations, just because they're so satisfying to look at. Not even sure why they seem so special to me...

https://moxie.org/blog/images/falls-colorcycling.gif

https://moxie.org/blog/images/ocean.gif
by joshstrange | 2025-05-21 11:48:23+00:00
How is this different from OpenRouter or LiteLLM?

It’s just API passthrough isn’t it? The title and the branding make it seem like you can get access to the $200+/mo tools and just pay for usage but this just looks like the API. If it’s not the using the API, I imagine it will get shutdown quickly.

Also, your FAQ is sloppy and clearly AI generated.
by vasco | 2025-05-21 11:48:57+00:00
> improve Copilot by leaving feedback using the or buttons" suffix, yet none of the comments received any feedback, either positive or negative

Why do they even need it? Success is code getting merged 1st shot, failure gets worse the more requests for changes the agent gets. Asking for manual feedback seems like a waste of time. Measure cycle time and rate of approvals and change failure rate like you would for any developer.
by throwaway290 | 2025-05-21 11:49:17+00:00
This is my point. especially in a country where everybody speaks English anyway. you will never be better at Dutch than English so by that logic. it will always (or at least for many years) be more difficult to talk to you in Dutch. so, ask the hard question:

Are you learning it to actually talk to other people?

If yes, just do it. to many people it is endearing if you are struggling with a language. And if they don't like it they probably just don't like talking to you in general so learned or not doesn't matter.

I think many people are scared of talking and use language learning as an excuse for fear. You can start talking to real people or you can keep learning and never talk to real people and then what's the point.
by 90s_dev | 2025-05-21 11:49:58+00:00
Given <foo bar={qux}>bla</foo>

React used to transform it into React.createElement("foo", { bar: qux }, "bla")

Now it transforms it into import _jsx from "react/jsx-runtime"; _jsx("foo", { bar: qux }, "bla")

My proposal transforms it into { [Symbol.for('jsx')]: 'foo', bar: qux, children: "bla" }

It's self-contained and generic, doesn't rely on auto-imports or globals, and doesn't have key collisions.

It's the only way I can imagine it ever being standardized.
by kragen | 2025-05-21 11:50:11+00:00
There are multiple axes of "best". The simplest, most portable, and most reproducible way to interact with a GPU is direct pixel access. Sometimes that's not fast enough, of course, but that's mainly when you're suffering from uncontrollable fits of interactivity. Most of the time, the best solution to that problem is to redesign your user interface to require less interaction: https://worrydream.com/MagicInk/

> The ubiquity of frustrating, unhelpful software interfaces has motivated decades of research into “Human-Computer Interaction.” In this paper, I suggest that the long-standing focus on “interaction” may be misguided. For a majority subset of software, called “information software,” I argue that interactivity is actually a curse for users and a crutch for designers, and users’ goals can be better satisfied through other means.

But yeah if you're playing an FPS you probably want to talk to your GPU through command buffers rather than pixel buffers.
by magicalhippo | 2025-05-21 11:50:38+00:00
> Or take fragmented markets. Same question: how could US startups successfully conquer these fragmented EU markets when European startups can't?

How many tiny US startups have been successful in EU markets?

I'm from Norway, we're ~5 million people here. You're not going to have a ton of users, and hence employees, before having to study other countries' rules and regulations. Some of which might not be available in English, and we all know how great it is to use automatic translation for that.

We had <10 employees when our company branched out into the Nordic countries. Complying to rules and regulations has been a constant struggle, and I suspect impossible if not for the fact that we're a B2B shop, as B2C is much more regulated.

That said, I'm not disagreeing with the main point of the post. I think we and our media could take more pride in local software.

The weird thing is that for physical goods, and especially food here in Norway, I feel like there already is this patriotism OP finds lacking in software.
by DebtDeflation | 2025-05-21 11:50:41+00:00
The question is who is setting these OKRs/Metrics for management and why?

It seems to me to be coming from the CEO echo chamber (the rumored group chats we keep hearing about). The only way to keep the stock price increasing in these low growth high interest rate times is to cut costs every quarter. The single largest cost is employee salaries. So we have to shed a larger and larger percentage of the workforce and the only way to do that is to replace them with AI. It doesn't matter whether the AI is capable enough to actually replace the workers, it has to replace them because the stock price demands it.

We all know this will eventually end in tears.
by MonkeyClub | 2025-05-21 11:51:09+00:00
On the surface, because they're told to push it.

Further down, so that developers are used to train the AI that would replace both developers and managers.

It's a situation like this:

Mgr: Go dig a six-foot-deep rectangular hole.

Eng: What should the rectangle's dimensions be?

Mgr: How tall and wide are you?
Show HN: I built ColorSnap to generate Tailwind color palettes from images
by kingvyn | 2025-05-21 11:51:26+00:00
Hey HN,

After spending countless hours tweaking colors in side projects and manually trying to match screenshots to Tailwind CSS classes, I decided to build a tool to automate it.

ColorSnap lets you upload an image and instantly extract the most dominant colors. It then maps those colors to the closest Tailwind CSS utility classes using LAB color comparison (ΔE). You get clean hex values and ready-to-use class names like bg-indigo-500 or text-pink-400.

Built with Nextjs, Tailwind CSS, and a bit of canvas/image processing. No external APIs — it runs entirely in the browser.

Outcome: I’ve used it in my last 3 frontend projects to speed up color decisions and get consistent styling fast, especially for hero sections and themed UI blocks.
Don't request an emailed receipt at restaurants
by wys2wyg | 2025-05-21 11:51:42+00:00
Not only you are paying extra for tips and whatever the restaurant adds additional chargers to cover “employee costs” (yes this is real in the US), you are giving them more money when you put your email address in their payment system. I noticed such a trend when I started receiving advertisements from places I had visited long time ago. So this idea of saving the environment by cutting down on printed paper means more money to companies.
by dns_snek | 2025-05-21 11:51:54+00:00
There are no guarantees in life, only probabilities. People much smarter than us can determine how much spare capacity the EU needs from non-intermittent sources to make electric blackouts a 500-year event, just like they do with building standards related to earthquakes.

I don't know what the number is, but it's probably greater than 0 and definitely less than the total peak EU demand, and if I had to guess I would say it's probably closer to 20%.
by kingvyn | 2025-05-21 11:52:44+00:00
hey it's Melvin

I made ColorSnap after getting tired of dragging images into Figma just to sample colors and then manually mapping them to Tailwind classes by eyeballing.

I wanted something faster — just drag, snap, copy.

The image analysis uses median cut to extract dominant swatches, and then I map those RGB values to Tailwind's predefined colors by converting to LAB and measuring the perceptual distance. The output is practical — actual Tailwind classes you can use in your components.

This was originally just a scratch-my-own-itch weekend project, but it turned out more useful than I expected, so I decided to polish it and share.
by RivieraKid | 2025-05-21 11:53:16+00:00
Why does having a reserve currency status guarantee a trade deficit? For that to be true, (1) foreign-held dollar reserves would have to grow at a sufficient rate and (2) Americans would need to get increasingly indebted, which is a voluntary decision. The fact that foreign goods are cheap doesn't force Americans to get in debt in order to buy them.
by ethanol-brain | 2025-05-21 11:53:30+00:00
Are people really doing coding with agents through PRs? This has to be a huge waste of resources.

It is normal to preempt things like this when working with agents. That is easy to do in real time, but it must be difficult to see what the agent is attempting when they publish made up bullshit in a PR.

It seems very common for an agent to cheat and brute force solutions to get around a non-trivial issue. In my experience, its also common for agents to get stuck in loops of reasoning in these scenarios. I imagine it would be incredibly annoying to try to interpret a PR after an agent went down a rabbit hole.
by Gud | 2025-05-21 11:53:34+00:00
Generally the understanding happens fairly quickly just by glancing through the code.

I was a sceptic up until recently, where I failed to create a solution myself.

Since I am mostly a hobbyist programmer(for 25 years and counting) I often find I don’t have the time to sit down for prolonged periods to reason about my code.

ChatGPT helps my tired brain from work develop my code 10x quicker, easily, by removing road blocks for me.

I find it an excellent tool.
by diggan | 2025-05-21 11:54:10+00:00
> the only way to do that is to replace them with AI

I guess money-wise it kind of makes sense when you're outsourcing the LLM inference. But for companies like Microsoft, where they aren't outsourcing it, and have to actually pay the cost of hosting the infrastructure, I wonder if the calculation still make sense. Since they're doing this huge push, I guess someone somewhere said it does make sense, but looking at the infrastructure OpenAI and others are having to build (like Stargate or whatever it's called), I wonder how realistic it is.
by kragen | 2025-05-21 11:54:41+00:00
I think I've said this to you before, but in case I haven't, I suspect that the best way to handle proportional text in formattable plain text is some variant of Nick Gravgaard's "elastic tabstops" https://nickgravgaard.com/elastic-tabstops/:

> Each cell ends with a tab character. A column block is a run of uninterrupted vertically adjacent cells. A column block is as wide as the widest piece of text in the cells it contains or a minimum width (plus padding). Text outside column blocks is ignored [for layout, though it is displayed].

I think the main deficiency in his proposal is that he enforces a minimum of one space of whitespace padding on the right of his column.
by A4ET8a8uTh0_v2 | 2025-05-21 11:54:50+00:00
<< Take something like vaccines.

If I may suggest something. If you are actually trying to convince someone, I would go with something a little less 'part of the culture wars in US'. That said, even for a coffeeless me it is laughably easy to dismantle this argument, but it will not take us anywhere useful.

Go with gravity man, it is genuinely harder to deny gravity.
by southernplaces7 | 2025-05-21 11:55:00+00:00
The number of people in this comment thread defending this gargantuan energy footprint for a technology that currently in large measure is being used for a tremendous amount of dogshit things (and oceans of visual/text spam) is amusing considering the hysterics that this same energy use problem caused when it came to crypto.

I guess it becomes okay when the companies guzzling the energy are some of the biggest tech employers in the world, buttering your bread in some way.
by FirmwareBurner | 2025-05-21 11:55:08+00:00
>A bottom up cultural shift is required to change startup culture in Europe.

History and the study of Volksgeists shows that's almost impossible without any major revolutionary event.

The status quo Europeans have had for centuries was their lives being at the mercy of some higher monarchic power, be it emperors, kings, lords, etc, then revolutionary communists, fascists, dictators, etc, and post-WW2 at the mercy of the social welfare state to handle everything for you. There was never a period our relatively recent history where we could just do whatever we wanted, without the ruling powers interfering some way or dictating the rules till the next regime change, and so the Volksgeist inherited and passed on that status quo across generations, kind of like Plato's cave, or like a fish in the water. That's why many Europeans who felt held back or persecuted by the status quo fled to the US decades/centuries ago.

This is totally opposite to the American way of life since 1776 where the state was mostly hands-off to leave you alone and would not help you out, nor get in your way, you'd live or die based on your own individual actions. I realize this is different today for Americans, with the government having way more taxes, regulations and social services than in 1776, but the original Volksgeist around minimalist government, individualism, personal freedom and self-responsibility still prevails.

So people can say "we need to change" all they want, but the reality is that's never gonna happen, Europeans aren't gonna become Americans and Americans aren't gonna become Europeans, the cultural inertia is too powerful, and you can't fight against the stream.
by ZoomZoomZoom | 2025-05-21 11:55:47+00:00
> I think the result of an art piece is "wow that looks pretty cool / makes me feel this certain way".

This is an expansive definition and thus not useful, because it would include:

1. Natural phenomena (sand on a vibrating plate is pretty cool).

2. Folk crafts (this hand-woven rug sure ties the room together!).

3. Advertisement.

4. Industrial design (this soap dispenser looks like a droid head, awesome!).

5. Drug induced experiences.

6. Art forgery and plagiarism.

Nothing in the list is really art. Rough definition of art is an intentional process (or the results thereof) of self-expression, and/or interpretation/modeling of reality performed with symbolic means. This implies intentionality and a conscience, which current "AI" doesn't have.

> AI lowers the discoverability of art that falls in the latter category, but I'd say that it's a solvable problem that can be fixed with better recommendation algorithms.

Theoretically it is. However, it won't be ever solved and implemented widely due to the lack of incentives and the fact that just replacing it all with "AI" is much more profitable and exploitable.
by otabdeveloper4 | 2025-05-21 11:56:48+00:00
It's pretty easy to craft a prompt that will force the LLM to reply with something like

> The `foobar` is also incorrect. It should be a valid frobozz, but it currently points to `ABC`, which is not a valid frobozz format. It should be something like `ABC`.

Where the two `ABC`s are the exact same string of tokens.

Obviously nonsense to any human, but a valid LLM output for any LLM.

This is just one example. Once you start using LLMs as tools instead of virtual pets you'll find lots more similar.
by baalimago | 2025-05-21 11:57:21+00:00
Well, the coding agent is pretty much a junior dev at the moment. The seniors are teaching it. Give it a 100k PRs with senior developer feedback and it'll improve just like you'd anticipate a junior would. There is no way that FANG aren't using the comments by the seniors as training data for their next version.

It's a long-term play to have pricey senior developers argue with an llm
by rsynnott | 2025-05-21 11:57:33+00:00
This analogy would only work if the electric light required far more work to use than a gas lamp and tended to randomly explode.

And didn’t actually provide light, but everyone on 19th century twitter says that it will one day provide light if you believe hard enough, so you should rip out your gas lamps and install it now.

Like, this is just generation of useless busy-work, as far as I can see; it is clearly worse than useless. The PRs don't even have passing CI!
by api | 2025-05-21 11:57:33+00:00
A saying of my own: America is superficially conservative and deeply liberal, while Europe is superficially liberal and deeply conservative.

Tangentially, it’s why I don’t think authoritarian reactionary stuff will “take” here for any length of time. The instant Americans figure out it’s anything more than a stylistic performative way to “own” the other side — the instant they are actually told what to do — it is over.