MurphyA/hacker-news huggingface dataset:
by Freak_NL | 2025-05-19 11:29:51+00:00
> If I read an English news site that has a translated French version, it doesn't matter if I'm most proficient in French, I'll want the English version.

The solution there is not to abandon the very useful Accept-Language header, but to never offer half-baked translations. Is your website multilingual? Fine, but only offer fully translated and verified translation sets. It's OK to have your UI and your own content translated in a few languages — for a company that may make sense depending on their target clientele — but you'll have to maintain all of these and keep them in sync.

However, user content is off-limits. No automatic translations unless you only offer those under a button to be helpful (like 'Spanish detected, click to show an automatic translation into English'), but really, leave that to the user's browser.

Use Accept-Language to pick a language, and then offer me a way to switch in addition to that. That's all there is to it.

> Wikipedia does it decently well for instance.

Wikipedia doesn't do that. Each language is its own instance, where content may be ported to by translating it (or parts of it), but outside of the Mediawiki UI texts, it is not a translation of the same content. The Dutch version of the lemma 'Language' is a different article in a different language with some overlap. There is no claim made that it is the same article in Dutch. It is hosted on a different sub-domain and path on purpose.
by shadowgovt | 2025-05-19 11:30:44+00:00
I still think Scratch has some brilliant ideas that aren't quite captured into traditional text-based programming languages. The fact that the types are rigid out to the editor (i.e. the editor will let you have a partially-formed program but not an invalid program because it does static type checking per-edit and rejects edits that don't pass) is quite a powerful feature tucked into a toy / educational language.
Ask HN: What is the most impressive test suite youve ever worked with
by escot | 2025-05-19 11:30:56+00:00
Did it have near 100% coverage or did it make tradeoffs on what to test?

Did it include UI tests which are notoriously difficult, and if so how did it handle issues like timeouts and the async nature of UI?

Did it have rigid separation of concepts between unit vs integration tests etc, or more fluid?

Could you refactor internal code without changing tests — the holy grail.
by Aachen | 2025-05-19 11:30:58+00:00
You ask, as in, whenever I visit the site without having your cookies stored, I'll get a language selector wall first?

I run into those regularly and it's always a struggle to know how to stay on the damn page I clicked on: will the "continue" button use the preselected value or will it dismiss the pop-up and continue on the current page?If the former, is the preselected value the page I'm on or a different language? Can I guess which locale I'm on to select that and dismiss the pop-up then? Can I inspect-element→delete this modal and just sidestep the whole problem? Even just a small close button is a luxury on these language walls...

95 out of 100 times, I'm fine with whatever language I clicked on, and if I want your German version for locale-adjusted shipping info or payment options or whatnot, I'll look for a language selector on the top right or, alternatively, in the page footer. If it's in one of those two places, I'd be much happier about a web without JavaScript-based pop-ups constantly
by genocidicbunny | 2025-05-19 11:32:00+00:00
Even the current generation of consoles still have some interesting stuff going on. The 'core' of the console is fairly off the shelf, but they do still have modifications specific to the console that you won't find elsewhere. As far as GPU stuff goes, they tend to provide somewhat lower-level access to the hardware that you would normally not get with consumer stuff.
by anilakar | 2025-05-19 11:32:29+00:00
Going one step further: do not guess my regional preferences from my language. I want to have an American English UI but use little-endian dates, whitespace and comma as thousands and decimal separators, ISO week numbers in calendars (with Monday being the first day of the week), and metric units. I want English subtitles, but not ones meant for the hearing impaired.
by mikedelfino | 2025-05-19 11:33:01+00:00
Most likely for lobbying purposes. You might want to support or block a bill, resolve an issue that affects you, or push for legal changes or permits that benefit your business. It's about influencing decisions that have a direct impact on your interests. And it doesn't even need to be business related; sometimes it's just like calling the building manager when something is annoying you and you're bored.
by shaggie76 | 2025-05-19 11:33:17+00:00
One alternative that many games choose is to do it on-demand which is felt as micro-stutters while you play but this is a poor choice for a competitive game like CoD.

We take a slightly different approach: we don't do any up-front in the launcher but do as much as possible on the level loading screen; it's not perfect though: due to the way some legacy code works we can't always anticipate all permutations ahead of time so you get the occasional micro-stutter as missing shaders are sent to the driver.

You can get away with being lazier with modern drivers because they will cache the compiled result for you (if you don't cache the pipeline state object yourself in DirectX 12) but on older DirectX drivers for Intel IGPs there wasn't a cache at all so the first 30 seconds after loading into a level would be very busy.
Show HN: Sherlog Canvas – AI powered notebooks for debugging incidents
by teenvan_1995 | 2025-05-19 11:33:31+00:00
Hi HN, we are Navneet and Sidharth, working on Sherlog Canvas (Alpha), a notebook‑style interface to investigate production incidents powered by AI.

Why Sherlog? When an alert fires, you end up flipping between logs, dashboards, code, tickets, chat—losing context and precious time. Sherlog gives you a single canvas to:

Upload logs or connect to running docker containers (or kubernetes) (plain text, multiline, logcat, etc.) and analyze the logs and metrics

Run SQL queries against your database

Execute code snippets

Link GitHub Issues (or your ticket tracker)

Annotate hypotheses, build timelines, write notes

All cell types (logs, metrics, SQL, code, issues, CI/CD steps, etc.) are powered by MCPs, so you can interact manually with each integration—or let the Sherlog AI generate, execute, and refine cells automatically based on your queries.

Everything runs locally (via Docker), stores data locally, and makes external API calls only for the LLMs to openrouter. It’s open-sourced and available on github.

Current alpha features:

Interactive notebook UI

AI‑assisted summaries & root‑cause suggestions

Multi‑type cells backed by MCP for direct integration

Smart AI agents that correlate events across logs, metrics, and code

Roadmap:

MCP connectors: Datadog, Prometheus, Sentry, Jira, GitHub Actions

Mobile‑focused log support (Android/iOS crash analysis) (We are mobile engineers so this is personal itch we want to scratch)

Collaborative, real‑time canvases for team investigations

We built Sherlog because we noticed that come an incident or a bug we needed to gather information across multiple data sources/ tabs and often were using ChatGPT or Claude for generating queries for them. We just wanted to build an interface that would allow us to collect everything at one place and do triaging and investigation quickly and easily.

https://github.com/GetSherlog/Canvas https://getsherlog.com

Demo video - https://youtu.be/80c5J3zAZ5c

Would love to hear what’s missing, confusing, or downright broken!
by PaulKeeble | 2025-05-19 11:33:34+00:00
The thing is that anything electrical energy intense is going to become less CO2 producing every year as energy systems transition. Its the use of Iron and other necessary fuel usage that will become the CO2 intense items over the next 5 to 10 years. The energy usage wont be the issue and CO2e for production of any item is going to drop quite drastically.
by domenicd | 2025-05-19 11:33:49+00:00
The four buttons is apparently a contentious topic in the community. It's gotten more serious because in FSRS misusing "hard" to mean "I didn't get it, but I felt close" is really bad and throws off the algorithm.

I like the design suggestions proposed at [1] and [2] for this particular problem. [2] in particular gives tooltips which are supposed to guide you toward exactly what the buttons mean:

- Again: "My answer was completely incorrect"

- Hard: "My answer was correct, but I hesitated a lot"

- Good: "My answer was correct, and I hesitated a little"

- Easy: "My answer was correct, and I didn't hesitate"

That said, you can also just reduce it to a two-button system: only ever use Again and Good. There is some evidence this works better, especially with FSRS which is doing enough machine-learning behind the scenes anyway that it doesn't need the extra signal from Hard vs. Good vs. Easy.

[1]: https://forums.ankiweb.net/t/how-to-prevent-users-from-misus... [2]: https://forums.ankiweb.net/t/how-to-prevent-users-from-misus...
by koliber | 2025-05-19 11:34:18+00:00
The first job I clicked on said this in the actual ad. This is a far cry from a remote job. The aggregator needs a little more tweaking:

This role is based out of Reddit's office located in San Francisco.

We will only consider candidates currently located in San Francisco, or currently within close commuting distance to the SF office.

The role requires in-office work 4 days per week.
by lm28469 | 2025-05-19 11:34:19+00:00
> £100k/year

Well first off £100 != $100 != €100

Sorry but you're completely delusional if you think literally "anyone on a programmer's salary" can make 1 million in 10 years. I'm not saying it doesn't happen, I'm not saying you didn't do it, I'm just saying it's not "accessible", nor the norm, nor representative of the vast majority of devs.

https://www.levels.fyi/heatmap/europe/

The median software engineer salary in Europe is under 60k euros, which is £50k. Show me how you make 1m on a 60k euros salary in 10 years, even if you paid 0 income tax and invested every single cent with an average 8% annual return you'd still be under 1m.

> Anyway, stay poor, I literally don't care.

Looks like you can't buy your way out of arrogance
by cafeinux | 2025-05-19 11:35:07+00:00
> I'm guessing that, if I start by importing a Japanese deck from some other source (because, for example, there's a source with high-quality notes), and then I split it into a writing subdeck, and then the original source adds new notes for new words or makes changes or whatever, that merging the results is basically unsupported.

Splitting a deck in subdecks can be done through tags, and every card has a unique ID field (usually the front, but you or the creator of a deck can define another one). Assuming tags is the only field you change, when you re-import an updated deck into your collection, Anki will match the IDs and you can define it's behavior when it comes to new or already existent cards.
by naikrovek | 2025-05-19 11:35:13+00:00
I'm 100% kind when people are kind to me.

I am 0% kind when people are unkind to me.

I've lived my entire life rolling over when people are assholes to me because I don't want to make the situation worse, or as seen here, throw the 2nd punch. the 2nd punch is always the one that gets caught. Never the first.
by bugarela | 2025-05-19 11:35:16+00:00
Thanks for the feedback! We actually improved the documentation a lot in the last year, and we host it in a website now: [1]

Most of the documentation doesn't mention TLA+ anymore, as it is focused on new programmers coming to formal methods with no prior experience with it. I agree it was very confusing before!

Other than that, if I can argue against some of your points: 1. Quint brings more than just type checking (better IDE diagnostics, better REPL, better CLI, and runs that work like tests) [2] 2. The translation rules between Quint and TLA+ are actually very straightfoward [3], specially if we stay in the common idiom of TLA+. 3. This is more subjective, but a few people using Quint have reported to really like isolating the state machine into the "action" mode and then defining the protocol in "pure def"s. I understand what you mean by "leaky" and a part of me agrees with that, but, in practice, we are seeing real benefits on this side.

Again, thank you for your points - there's some stuff in your feedback I haven't heard before, and it's great to have a new perspective.

[1]: https://quint-lang.org/docs/language-basics

[2]: https://quint-lang.org/docs/faq#how-does-quint-compare-to-tl...

[3]: https://quint-lang.org/docs/lang
by enneff | 2025-05-19 11:35:26+00:00
I’ve had to repair my Miele dishwasher several times. (Faulty heater relay, common problem with the model.) also coincidentally the spring in the door broke yesterday. Otherwise it does clean the dishes very well and it’s quiet and attractive looking.

I bought it because they have a good rep. But I’ve owned this dishwasher for 15 years and it’s still going.

My Fisher and Paykel fridge I’ve had for 20+ years and it’s never needed any maintenance whatsoever. To me that’s pretty amazing.
by npodbielski | 2025-05-19 11:35:44+00:00
I would say that I am envy that someone can write like that. I can't write in such manner in my native language, let alone in the second one: English. It is nice to read or hear someone speaking like that, considering we are surrounded by low quality, easy to consume content nowadays.

And I am envy of such skill because I like to think about myself as not entirely being stupid, still I would never be able to write/speak this way because I just do not have an aptitude towards that.
by rbanffy | 2025-05-19 11:36:27+00:00
There's also lots of Java as well, and IBM is making a big effort on porting existing Unix utilities to z/OS (which is a certified UNIX). With Linux, the choices are the same as with other hardware platforms. I assume you'll find lots of Java and Python running on LinuxONE machines.

Running Linux, from a user's perspective, it feels just like a normal server with a fast CPU and extremely fast IO.
by StopDisinfo910 | 2025-05-19 11:36:30+00:00
I have personally used everything I mention so I must be having hallucinations and dreamt it worked I guess.

> Why do we need birth certificates in addition to IDs, exactly?

Because it’s the official record of your actual birth which gives you right and is therefore useful when you need for exemple to get said ids or prove to anyone that it is indeed where you were born?

Birth certificates are in no way unique to France. What’s remarkable however is how easy to get a copy of yours if you are French.
by gield | 2025-05-19 11:36:34+00:00
This is a real pain in the ass in Belgium. Many websites assume I speak French while my native language is Dutch. Some websites only offer a French version of their Belgian storefront, even though Dutch accounts for ~60% of Belgians. I can't imagine what it's like for German-speaking Belgians.

This is not only an issue on websites but also on apps. For example, the Books and Podcasts apps on iOS show me both Dutch-speaking and French-speaking titles. I tried to raise this issue back when I worked at Apple but they only have 1 storefront per country and didn't feel like changing it.
by PaulKeeble | 2025-05-19 11:36:36+00:00
A HDD has 1 controller chip and that controller is relatively simple compared to the controller chip on an SSD, its certainly a lot smaller and on a less advanced process because it has to deal with ~200MB/s not 15000MB/s. On top of the controller chip a 2280 NVMe SSD will have 4 or 8 memory chips as well, which are on a recent process and have many many layers stacked together. Then the SSD will also often have a DRAM chip as well. An SSD uses substantially more silicon than a HDD does.
by maccard | 2025-05-19 11:36:53+00:00
No, intel didn’t get it. AMD certainly did. An i7 14700k can draw 253 watts and do 5.4 GHz, a 9800X3D can boost to 5.2GHz at 160W. Thats pretty close to the top end of desktop CPUs (for home use). As you go down the chain, you’ll see huge drops in power usage.

Intel in particular are guilty of replacing their mid and low range CPUs and replacing them with neutered low power cores to try and claw back the laptop market.
by rob_c | 2025-05-19 11:36:58+00:00
Absolutely not.

The poster has highlighted a major issue that is often glossed over in terms of actual carbon footprint. It's like saying a Chinese coal plant is the same as a Scottish hydro dam otherwise which is very, very wrong.

Yes nothing is perfect, but running a dam in an area with little water silt for many many years is different in carbon footprint to a coal plant run at 80% efficiency from strip mined coal.
by Aachen | 2025-05-19 11:37:06+00:00
This. Related: if I had a penny for every time I needed a VPN just to load the payment method selection screen (but not for the actual payment, it's not geolocked) just to be able to pay somewhere, I'd get a lot of products for free by now...

Why not let germans select iDeal and dutch users Giropay? They'll not click it if it's not useful for them. Adjusting the sort for what's most commonly used makes sense, but why actively thwart users from paying by geolocking payment methods by IP address...
by southernplaces7 | 2025-05-19 11:37:11+00:00
One of the many, many tedious things about the modern globe-spanning internet, used by hundreds of millions of people who regularly travel far and wide, is this bizarre, stupid forced algorithmic balkanization in which you're pigeonholed right into either being denied access to certain content based on your location, or having your supposed language tendencies modified by default.

I'm not sure what the purpose of this idiocy is. Is it a dark pattern of some kind? Or is it just so hard for grey, cubicle-dwelling functionaries at companies that are themselves often very international to set systems for leaving one's language defaults static unless otherwise adjusted by said site user?

If you're already tracking me and every single one of my digital activities through my devices, then at least give me some modicum of convenience from all the bother.
by jqpabc123 | 2025-05-19 11:37:18+00:00
Trump wants TSMC Arizona to become a foundation stone for his American golden age. But the company's story to date is perhaps the ultimate expression of the success of modern globalisation.

In other words, isolation is for idiots.

It is tantamount to economically shooting yourself in the foot. It doesn't lead to "greatness" but rather to decline --- a less prosperous, less competitive, less relevant society.

It is simply not a tenable approach to the world and TSMC Arizona is the proof. Just look at history. Every empire of consequence has been characterized by increased and expanded trade, not isolation.

No society has ever isolated itself into "greatness" --- and America won't be the first.
by potato3732842 | 2025-05-19 11:37:24+00:00
Call me cynical but I expect that if it's anywhere as good as the promoters claim competing industries will lobby and astroturf until whatever glues they're using get neutered or rendered economically much less viable on an environmental basis or they'll find some niche performance area where it's worse and get the building code written in a way to use this deficiency to make it much less frequently usable and it'll be 20yr of that incrementally getting rolled back it actually gets used it in any volume.
by martin_a | 2025-05-19 11:37:41+00:00
> Buy professional equipment.

Just what I thought and wanted to add.

I guess if an appliance is used each day for several hours, that will last a lifetime in my home for use once or twice a week.

Downside: Professional kitchen equipment is also optimized for being easy to clean. Could be a problem if you don't like pure stainless steel very much... ;-D
by CaptArmchair | 2025-05-19 11:37:55+00:00
As someone who lives in one of those locations mentioned in the article: split out locale and language into different settings. Because they are not the same thing. This article explains that nicely. [1]

You want your users to be able to change their location (and, therefore, locale) and their language independently. The Accept-Language header could be used as a sentinel for language. Then again, I wouldn't outright rely on geoIP to set the locale which is an umbrella for regional differing variables like timezone, date formatting, currency, VAT / Taxes,...

I think it's okay to have your content served, by default, in a language that reflects either the majority of your target audience; or the culture / place you're based in. Changing the locale / language should follow a clear UI pattern e.g. a language switcher & locale switcher in the header; or a clear navigational aid pointing to a context menu. That's how Hetzner works, for instance. Another example is Deliveroo.

[1] https://translatepress.com/locale-vs-language/
by eqvinox | 2025-05-19 11:38:05+00:00
I apologize for being excessively metaphorical and using "the electricity bill" to refer to the overall cost of using AI.

That said, it should be clear to you that any future pricing of AI services after the currently ongoing honeymoon period will need to recover the initial investments that have happened in the past years, pay for silicon, and make some profit too.
by Tijdreiziger | 2025-05-19 11:39:26+00:00
MetroCard was definitely a confounding factor too, but isn’t it still the case that you have to manually push the turnstile within a certain time frame?

(idk, maybe I was just a clueless tourist who didn’t know how it worked :P)

To your latter point, perhaps the MTA should work together with Apple and Google to improve the experience.
by PaulKeeble | 2025-05-19 11:39:28+00:00
It will certainly become more fine so long as the grid is transitioning to renewable energy sources which almost all countries are doing. In the next decade the intensity of CO2e for electrical energy usage should be considerably lower than it is now and CO2e from necessary fuel usage will begin to dominate in industrial processes. Iron I think will be a big contributor to this since at the moment electrical production is not viable.
by Akronymus | 2025-05-19 11:39:36+00:00
Yeah, normalizing inherently introduces constraints on the data. For example, normalizing to first and last name implies no middle names/having a first and last in the first place.

Also, first and last names depend on the culture. Oh and people can have more than 1 name (as in distinct names, rather than multi part names. Some cultures use different names with different social circles).

Easier to just let them put their preferred name into a freeform text field.
by moreati | 2025-05-19 11:39:55+00:00
> The Legal Aid breach is, I’m told, a ransomware/extortion group (not mentioned in the notice). If it looks like the UK gov are going to pay, or pay via third party, this one will become a megathread. https://www.gov.uk/government/news/legal-aid-agency-data-bre... -- https://cyberplace.social/@GossiTheDog/114533584686916433

Note Gossi's "If". There's no indication so far wrt possible payment.