MurphyA/hacker-news huggingface dataset:
by AstralStorm | 2025-06-27 11:06:52+00:00
Like what demographics? People who want to take the kernel, fork it and close it? Perople making low quality patch bombs behind closed doors?

It already is allowing Rust...

As far as the commenter, the GNU bit is still relevant. But you should normally call the distribution its name. SteamOS is not quite as much GNU as Debian.
by Chris2048 | 2025-06-27 11:07:23+00:00
There's lots of stuff like that, the way chickens and eggs are cleaned etc.

It sometimes is annyoying though, especially around foods and medicine when something is not yet approved in Europe e.g. It's really hard to get Allulose (sugar alternative with similar properties benefitting baking); As far as I can tell it's not actually "illegal" in Europe, it's just not approved as a food, so no-one risks importing it..
by troupo | 2025-06-27 11:07:25+00:00
> JSX would be a non-starter without IDEs helping autocomplete, linting/format, syntax coloring, and webpack/babel to do the compilation.

and then you immediately go on to say this:

> tagged templates could reach at least the same level of DX as JSX if the community invested the resources to make that better.

So, tagged templates are also non-starters without IDEs helping autocomplete, linting/format, syntax coloring.

> i'm not saying it's the right solution for a standard, but it would be way better than jsx, since tagged templates are already a standard.

They are strings. There's no magic in tagged templates that somehow make them immediately better for some custom non-standard syntax compared to JSX.

You can't just plop a string containing lit's custom non-standard syntax into an IDE (or a browser) and expect it to just work because "it's tagged templates are standard".

For the purpose of templating in the browser there's literally no difference between standardizing a custom syntax based with JSX or tagged templates.
by andrepd | 2025-06-27 11:07:30+00:00
Smokers actually cost less than non-smokers because they die a decade and a half sooner, and old age is where most expense happens.

The true issue is secondhand smoke. That for me is what it all is about: preventing unwilling people from being exposed to smoke, full stop.

About as many people die from smoking than from secondhand smoke. Think for a minute how horrifying that is.
by ben_w | 2025-06-27 11:07:30+00:00
Not many ancestrally native Americans in Europe, relatively few jews compared to the USA (but more other semetic groups, I don't know if that balances or not), the sub-saharan Africans in Europe had a lot more volunteers and less industrialised human trafficing and are in any case very much more diverse genetically than people think due to superficial characteristics like skin colour (seriously, substitute race discussion about skin to be about blonde vs brunette to see how silly the groups are), and there's more of Irish in the US than the current population of Ireland.

Probably loads of other differences too.
by Joker_vD | 2025-06-27 11:08:26+00:00
And if you use 0 as the value of NULL pointer, then -1 can't ever point to an object (because adding 1 to it should generate a non-NULL pointer, so that pointer comparisons are not UB).

So yeah, C implementations have to reserve at least two addresses, not just one. By the way, the standard to this day allows NULL, when cast to a pointer type, to be something else than all-bits-zero pattern (and some implementations indeed took this opportunity).
by potato3732842 | 2025-06-27 11:08:34+00:00
Comically, this is also basically a map of countries in Europe scored based on how convenient the existence of each country is to the kind of people who make us-europe comparisons

Take the absolute value and the numbers and you get an ok map of how likely someone is to be trying to mislead you if they're comparing all of the US to just this one nation.

You could make a pretty similar map with US states vs US average.

Correlation is a hell of a drug[1].

[1] https://m.xkcd.com/1138/
by scrozart | 2025-06-27 11:09:22+00:00
Hard not to feel this way sometimes given the quality of some job listings and the negativity bias here and broader media. In such moments of despair I recall two axioms: change is inevitable and ongoing, and talent rarely resides in the C-suite.

I'm only 10 years in and currently at a science non-profit using a dead/toy framework, and honestly woefully unprepared for market at the moment. I'm constantly looking at job listings, though, and engaging with scads of recruiters to maintain a good feel for the market to inform my next steps. I see plenty of ads that are hyper-specific about the tooling du-jour, but a non-trivial percentage of the listings I see make it clear that higher-level prowess, like understanding a language and best practices, are more important than what ultimately boils down to the ability to RTFM for whatever widgets the CTO/CE is currently enamored with. These are the jobs I'm looking at. Sure, this could narrow your pool during what appears to be a tight market, but you're more likely to have worthwhile interviews. I'll apply to less intriguing jobs to avoid getting rusty at interviewing, though.

This kind of funk also inevitably drives me harder to just _do what I want to do_. What language and tools _do I want to use_? _What kind of problems do I want to solve_ moving forward? If you've sorted these out, great. Sure, this could _also_ narrow your pool even more, but you're more likely to find a high-quality match.

Finally, all of these companies foaming at the mouth to replace people with AI will regret it; it's already happening, in fact. It's happening in less/non-technical jobs (lol Klarna), so I'm not worried about coding jobs at all in the long run (not to diminish and current or short term turbulence, though). Smart execs/founders will see AI for what it is: a force multiplier, only as good as your existing staff. That said, I think it behooves devs to get right with AI/chat-assisted development. Of all the buzzy tools people fall in love with, I think this is the highest ROI I've seen yet.

TL;DR: I'm just not going to apply to jobs that don't give me "smart exec" smells, and I'm only applying if it really looks like something I'll care about doing. I realize this exudes some degree of privilege, hubris, and/or naivete, but I work my ass off and you only live once.
by giantg2 | 2025-06-27 11:09:49+00:00
I think we can still have some eprotecrionist policies while partipating trade. We can even have some tariffs if they're well thought out, such as anti-dumping or on certain sectors (Trump 1 and Biden). Protectionism might not be the biggest factor in economic growth. It feels like the tariffs haven't changed much from a personal perspective. Im more concerned about unemployment due to rates and the section 174(?) changes. The tariffs have nothing to do with all the layoffs. It also feels like AI and automation have a lot of companies just waiting to see if they're really need to hire more people if if they can just use AI. Seems like lots of people are filling multiple roles right now.

I get that the economy is measured by GDP and we did see it shrink in Q1. However, it doesn't feel like a good measure due to all the inequality. It feels like stuff like credit card balances, mortgage defaults, and unemployment are better numbers. Those don't look good but haven't skyrocketed either... yet.

Yeah, the middle class has been shrinking for years. I do think some of the absolutist free trade stances we had played a role. I'm probably going to lose my job soon and if feel like I'll just end up working at Walmart. I've never understood how the candidates that say they're pro labor are also the ones pushing for absolutist free trade and environmental restrictions. Some of these are at odds. If you're free trade, you're just shifting those jobs to the cheaper markets. That's also where the environmental and worker protection seem to be weakest.
by samus | 2025-06-27 11:11:28+00:00
I think rural life is too romanticized though. It will avoid the diseases endemic to sedentary life, but there will be different health issues instead. Preindustrial agriculture and generally jobs with lots of physical labor are not easy on the body. Coronary heart disease and maybe diabetes and dementia will be replaced by work-related injuries and arthritis. There is a reason many countries allow such people to retire earlier.
by AstralStorm | 2025-06-27 11:11:56+00:00
Yeah, right. Do not confuse accessibility with simplicity.

So much accessibility that:

You need to use gestures to access critical functions.

Half of screen readers cannot be connected to their hardware.

You cannot easily get someone to write a driver for exotic input hardware.

There's no zoom feature in the OS.

Recently many UIs just break with big scale factors.

Keyboard support is lacking altogether in some bits of the UI.

Information is hidden and alpears at random.

Not to say Windows or Linux is free of it or better. The platforms are bad in different ways.
by throwaway290 | 2025-06-27 11:12:08+00:00
Never been to US but saying car centric development in Europe is similar to US sounds crazy to me. It's not just Netherlands. Vienna, Budapest, Stockholm, Barcelona, Germany and Switzerland... is it really true people in America take buses and trains as often as in those places? and they are also so well maintained? is it just propaganda that public transport in US sucks outside of maybe NYC
by shireboy | 2025-06-27 11:12:14+00:00
My first intranet job early 2000s reporting was done this way. You could query a db via asp to get some xml, then transform using xslt and get a big html report you could print. I got pretty good at xslt. Nowadays I steer towards a reporting system for reports, but for other scenario you’re typically doing one of the stacks he mentioned: JSON or md + angular/vue/react/next/nuxt/etc

I’ve kinda gotten to a point and curious if others feel same: it’s all just strings. You get some strings from somewhere, write some more strings to make those strings show other strings to the browser. Sometimes the strings reference non strings for things like video/audio/image. But even those get sent over network with strings in the http header. Sometimes people have strong feelings about their favorite strings, and there are pros and cons to various strings. Some ways let you write less strings to do more. Some are faster. Some have angle brackets, some have curly brackets, some have none at all! But at the end of the day- it’s just strings.
Show HN: One Life Game – A browser game where you can only play once
by absurdwebsite | 2025-06-27 11:12:48+00:00
This is part of the absurd.website series – experimental web projects exploring modern digital culture in a surreal, humorous way. In “One Life Game”, you literally have just one shot: once you start and die, the game becomes unplayable forever (in your browser). No second chances. No resets. Just one try, like life itself.

It’s a strange reflection on how games can mirror life — finite, fragile, and shaped entirely by the choices you make.
by seec | 2025-06-27 11:13:31+00:00
It's pretty sad that this is something that many people consider "wrong". There is always some sort of nonsense about being able to do more with money because it gives you power or something like that.

And of course, we keep hearing "greed is good". We are very fortunate that some people could see beyond that in the past because we are resting on their financial "sacrifice". Thankfully there are still people who still think that way today, but it is always infuriating to hear people pretend some are stupid for not choosing the path that would maximize their earnings.

I think it is a sort of projection from "small minded" people who cannot see anything beyond what they would do, precisely because they are intellectually limited and thus cannot properly reason about those "issues".
by JimDabell | 2025-06-27 11:13:37+00:00
Internet Explorer 5–6 was the ActiveX control. Then other browsers implemented XMLHTTPRequest based on how that ActiveX control worked, then Internet Explorer 7 implemented it without ActiveX the same way as the other browsers, and then WHATWG standardised it.

Kuro5hin had a dynamic commenting system based on iframes like you describe.
by fredley | 2025-06-27 11:13:41+00:00
> Smokers actually cost less than non-smokers because they die a decade and a half sooner, and old age is where most expense happens.

This is often mentioned, but it's simply not true. It's not old age itself that costs money, it's the part of your life where you need care and support. This is old age in otherwise healthy people, but smokers don't just drop dead one day, they go through as many if not more years of care and support as everyone else, they just do it younger (which costs in lost productive years too).

https://www.gov.uk/government/publications/cost-of-smoking-t...
by nithril | 2025-06-27 11:15:20+00:00
XSLT/XPath have evolved since XSLT 1.0.

Features are now available like key (index) to greatly speedup the processing. Good XSLT implementation like Saxon definitively helps as well on the perf aspect.

When it comes to transform XML to something else, XSLT is quite handy by structuring the logic.
by fschuett | 2025-06-27 11:16:38+00:00
For deploying Rust servers, I use Spin WASM functions[1], so no Docker / Kubernetes is necessary. Not affiliated with them, just saying. I just build the final WASM binary and then the rest is managed by the runtime.

Sadly, the compile time is just as bad, but I think in this case the allocator is the biggest culprit, since disabling optimization will degrade run-time performance. The Rust team should maybe look into shipping their own bundled allocator, "native" allocators are highly unpredictable.

[^1]: https://www.fermyon.com
by nopcode | 2025-06-27 11:17:01+00:00
The problem of filming/photographing in public is not new and this type of legislation already exists in many (all?) European countries and falls under existing privacy laws...

If a deepfake is made of someone, that person was clearly the subject of the image/video and thus violates his/her privacy. This extra legislation would help protect in case the original image/video was taken with consent (so no privacy issue).
by Alex-Programs | 2025-06-27 11:17:29+00:00
Translating entire sentences is the idea - I'm not sure what setting you mean with "words only"? I really ought to make the settings clearer, but it's hard to do when you know what they "ought" to express.

"Translate Isolated Words" allows it to translate "sentences" of only one word, but it doesn't disable full sentences.

And yeah, atm it word splits by spaces for the dictionary. I hadn't thought to do it with LLMs, though that's a good idea. There's a somewhat related problem when doing Furigana, where it has a hashmap of strings-to-pronunciations, and it starts with a 4-character sliding window looking for matches, then a 3 character, etc.
by axegon_ | 2025-06-27 11:18:48+00:00
Of course I don't have any extensions locally, I am not a lunatic. I don't always have access to my personal hardware and I would never trust an extension to pass my code around over http to a server I don't have full control of. Ddosecrets should have been enough of a warning for most people but I suspect countless more will have to learn that lesson the hard way.
by sim7c00 | 2025-06-27 11:19:55+00:00
I dont know either.

int somearray[10];

new_ptr = somearray + signed_value;

or

element = somearray[signedvalue];

this seems almost criminal to how my brain does logic/C code.

The only thing i could think of is this:

somearray+=11; somearray[-1] // index set to somearray[10] ??

if i'd see my CPU execute that i'd want it to please stop. I'd want my compiler to shout at me like a little child, and be mean until i do better.

-Wall -Wextra -Wextra -Wpedantic <-- that should flag i think any of these weird practices.

As you stated tho, i'd be keen to learn why i am wrong!
by dwattttt | 2025-06-27 11:20:33+00:00
I believe the specific advice they're referring to has been stable for a while. You take your generic function & split it into a thin generic wrapper, and a non-generic worker.

As an example, say your function takes anything that can be turned into a String. You'd write a generic wrapper that does the ToString step, then change the existing function to just take a String. That way when your function is called, only the thin outer function is monomorphised, and the bulk of the work is a single implementation.

It's not _that_ commonly known, as it only becomes a problem for a library that becomes popular.
by btdmaster | 2025-06-27 11:21:06+00:00
Thanks a lot for chiming in! That's nice to hear it's better and improving.

View from 1000 feet: maybe a way to lock a room's users would be interesting? So that new users in, say, a DM room do not get decryption keys for messages from the client. Something like a weaker form of "only send messages to verified users", where you could have a DM room with (at most) 2 people.

Or, instead, maybe an option to disable forwarding session keys older than the user's room join event, to keep forward secrecy so that a new user does not get to read old messages (or does this already happen every 100 messages?).
by hiAndrewQuinn | 2025-06-27 11:21:25+00:00
I doubt you can free healthcare your way out of obesity. You can't even healthcare your way out of obesity when you make it really, really personally expensive to be obese. And obesity is almost certainly the mortality bottleneck these days.

Obesity is primarily caused by the 1-2000 micro-decisions we make each year about what to eat, when, and how much. A free visit to the doctor now and then is just not going to move the needle much on that one way or another for most people, most of the time. Even if it could we have to ask why a $0 doctor visit would be so much more effective than a $100 doctor visit.

No, the effects you're seeing what Europeans are more fit than Americans on average is coming from somewhere else. I think the real answer is the obvious one: Food here in Europe is simply worse tasting than in the US in general. I've been here for 5 years across twice as many countries; I've never had a pizza here that even matches Little Caesar's back at home, in terms of lighting up my little monkey neurons, to say nothing of Costco. If I ever go back home I will break and get one of the two within a week of reaching the airport.

Capitalism is an optimization process that has optimized the heck out of food reward signal. Your only real options are either to be poor enough that capitalism doesn't care about getting you the 'good stuff' - easier said than done when being poor sucks, and when the good stuff is constantly getting cheaper over time anyway - or you fight back with even harder optimization in the reverse direction. You could argue Europe is some mixture of both compared to the US.
by Archelaos | 2025-06-27 11:22:25+00:00
For Germany, it is instructive to compare detailled maps of life expectancy vs. household income. Both seem to be very much correlated.

A clear East vs. West and to a lesser extent North vs. South difference is obvious. In Western Germany, most region with very low life expectancy are those regions that were under strong economic pressure in recent decades (usually former mining areas, such as the Ruhr Area and the Saarland).

Here is a 2020 map of life expectancy: https://www.demogr.mpg.de/media/13419_main.png

And here a 2019 map of household income: https://www.wsi.de/de/einkommen-14582-einkommen-im-regionale...

Differences is smoking might also have an important impact. Here is a 2013 map: https://bilder.deutschlandfunk.de/FI/LE/_f/47/FILE_f4790b165...

This seems to imply an even closer correlation.

Of course, correlation does not imply direct causation. The underlying causalities might be various, complex and different from region to region.
by marzetti | 2025-06-27 11:22:32+00:00
Age 77.. started with Fortran in '68 on an IBM1130, assembler on a Linc-8 in '70, then at UofWaterloo on IBM360/75 with (omg) 3MB ram. Then scientific programming mostly Fortran or asm, switched to turbo Pascal in 88-89, then Delphi and MATLAB. Currently mainly work in VsCode using markdown codeblocks in a way a bit like Jupyter (see VsCode extension Hover-Exec) for a range of stuff including art installations.
by trainerxr50 | 2025-06-27 11:23:31+00:00
American baby boomers hobby in retirement is going out to eat as much as possible and drinking beer/wine. Or they travel to other countries to go out to eat as much as possible and drink beer/wine/cocktails.

All the baby boomer men in my family would be dead if it wasn't for the American health care system.

Even suffering heart attacks, they didn't miss a beat to get back to going out to eat, drinking beer/wine and being massively overweight.

If you go to any restaurant at night it will be packed with fat old people stuffing their face. Most on medications so that they don't have to change their lifestyle.

No country has ever had the BMI of old people that America has right now. It is a wealth curse.
by homebrewer | 2025-06-27 11:24:36+00:00
Last time I paid any attention to Google's high level conference presenters (like Titus Winters), they almost didn't use Go at all. Judging by the sibling comment, this hasn't changed much. For some reason people are thinking that half of Google is written in Go at this point, when in reality if you listen to what they themselves are saying, it's 99% C++ and Java, with a tiny bit of Python and other languages where it makes sense.

It's just a project from a few very talented people who happen to draw their salary from Google's coffers.
by modo_mario | 2025-06-27 11:24:40+00:00
>People might quote Harry Potter a lot, but they don’t quote the entire thing over and over, chapter and verse, on hundreds of thousands of different websites.

I'm fairly certain I could find the entire thing in plain text in multiple places online. A quick google gives the philosophers stone as the second result in pdf format on the internet archive but i'm sure with a bit of looking i'd bump into a lot of plaintext copies.

They might have taken measures to prevent this from being anywhere their training data (i think it would be fairly easy and something they'd likely do) but if they at any point failed for a book or so that they didn't consider wouldn't my original question stand?
by vidarh | 2025-06-27 11:25:56+00:00
Yes and no, as the article says:

> "The Viking Age ends in the 11th century, and we're talking about boats from 800 years later," he said. "But the construction techniques and the way they are rigged and their general performance characteristics are similar enough. Because this is a project about voyages and not a project about boat building, it seemed like a defensible analogy."

His guess - whether right or not - is that this ship-structure is similar enough that it serves as a possible way to identify possible Viking era landing places.
by eru | 2025-06-27 11:26:59+00:00
You could also use group theory to help you.

Basically, pick a large prime number p as the size of your array and a number 0 < x < p. Then visit your array in the order of (i*x) modulo p.

You can also do something with (x^i) modulo p, if your processor is smart enough to figure out your additive pattern.

Basically, the idea is to look into the same theory they use to produce PRNG with long cycles.