MurphyA/hacker-news huggingface dataset:
by moron4hire | 2025-11-08 21:12:27+00:00
It's there a way to define routes in a nested, hierarchial fashion, preferably across multiple modules?

For example, with react-router, my root route object array I define by spreading out other route object arrays that I've imported from other modules in my project. And each of those do the same thing, recurring as necessary until I get to the full depth of my route tree.
by ericmcer | 2025-11-08 21:12:28+00:00
Seriously there is too much shit to worry about to micro manage each facet, unless your like a Bryan Johnson billionaire with a staff.

Beyond just heart disease & cancer taking you out entirely its: my eyesight is going, my hearing, every joint in my body could fail, my brain is slowing, etc.

There is just way too much shit to do anything other than be like: sleep, exercise, eat better and don't drink too much.
by ffsm8 | 2025-11-08 21:12:43+00:00
Fwiw, Marko predates svelte quiet significantly.

It was originally created by eBay iirc, back in 2014 or so.

It's syntax was even stranger back then, like writing "h1.myClass my header" to create a <h1 classes=myClass>my header</h1> and similar
by dathinab | 2025-11-08 21:12:53+00:00
sure the smart tab group features are kind useless (but tab groups are grate)

but I don't understand why people make such a deal about it

it looks a loot like "I don't like this so it mustn't even exist even if some people like it" mentality

like

- all of this features are opt in, they don't just randomly send your data somewhere or randomly eat your CPI resources (without you having enabled them)

- the smart tab group features(1) are the only very visible and kind dump/useless one, and you can disable them without tweaking internal configs unser "Addons > On-device AI" (but it won't disable the button in the group tabs menu which is used to enable that feature in the first place)

- for many users side translations is an important must have feature, it's one of the AI features, and having a local on-device no data send to servers translation is very desirable (to be fair US users probably don't care nor realize it matters, but it really matters) (To be fair the OP didn't disable this either)

- for increasingly many users integration with chat bots (e.g. ChatGPT) is a must have browser feature(2). The integration is also only visible in a context menu(3) and hidden in the a selector for the side bar and needs to be explicitly setup before it does anything. So a feature some people want and treat as must have and now can have and for everyone else it's pretty much out of the way and not pushed onto you at all. So why insists that it's not okay to have it even in a selector hardly any power users will ever use (because the other options there are bookmarks, and history, both with well known widely used keyboard shortcuts)

- the preview was a "Labs" (i.e. experimental preview) feature you have to explicitly enable and then use the right hot key to use, and it's one of this "some people expect this feature in 2025" features (but not sure what happened to it, it's neither in Labs nor enabled in any FF browser I have, so maybe they discontinued it)

(1): They IMHO are pretty dump and seem more like a way to setup the whole infrastructure around them with a trivial to implement feature then a in depth feature mozilla cares about. I guess.

(2): On HN it often seems like only enthusiasts and not many non-tech people use ChatGPT and co. _That is not true at all_. When it comes to "simple" ChatGPT usage far more non technical users use it then technical one. Like for dump stuff like shopping list, holiday check lists, etc. The problem OpenAI has isn't that they don't have a lot of users, it's that they need a absurd amount of high paying users. But the tasks most non-tech people use generic ChatGPT for aren't worth a lot. Like even the Plus plan is a "only if you are wealthy enough to burn 20 bucks every month without caring" option in such a context and the Pro plan just absurd.

(3): Is anyone except non technical users still using browsers context menus in a way where a "Ask AI Chat-Bot" entry matters???? Like copy, past, undo, redo, select all have trivial short cuts. Language/spell check is rarely touched and inspect has a short cut where you press Q after right clicking.
by standardUser | 2025-11-08 21:13:37+00:00
> I don't think anyone is meaningfully harmed by being algorithmically shown job ads stereotypical of one gender rather than another

If you show me a lower paying girl job instead of a higher paying boy job, and I apply for and get the girl job, how is the company tricking me into applying for the lower paying job based on my gender not a problem to you? How was I not harmed by having a better opportunity hidden from me based on my presumed gender?
by ekr____ | 2025-11-08 21:13:52+00:00
> What is the supported way?

The settings UI.

> > you shouldn't complain that Mozilla changed the prefs and reenabled these features.

> Then they should provide a reliable way of getting what I want.

As I said in the comment you are responding to, it's perfectly legitimate to complain if Mozilla didn't provide a setting to disable these features (though it seems they have done so in at least some cases). However, if they don't do so, and you decide to disable them in some unsupported way, you shouldn't be surprised that you get unexpected results.

> This notion that software developers know better than me is poisonous.

I don't think this is really a reasonable proposition as a general matter. A browser is a very complicated piece of software and each individual configuration point is additional development and testing burden, both separately, and in combination with other configuration points. Developers need to make all kinds of decisions in order to manage engineering complexity. In some cases, where developers know that people will want to configure things, they'll provide configuration options but it's not practical to do so for every feature, and inevitably in some cases they'll get it wrong (see "legitimate to complain" above).
by ryandrake | 2025-11-08 21:15:17+00:00
In the USA, we have come to expect a certain level of formality, transparency, and adherence to due process when it comes to how law enforcement operates. Or, at least that's what we tell ourselves the standard is. Granted, we've been backsliding in this department for decades, which really started accelerating during the War On Terror. It's not new with this administration. But, we have strayed a long, long way away from the idealized "uniformed cop visibly walking the beat on the street."

The whole "masked plainclothes men jumping out of an unmarked van, dragging someone off the street into the van, and swooping away" thing is what the villains in the movies did, not the good guys.
by jmye | 2025-11-08 21:16:20+00:00
It certainly isn't Peter Thiel, Alex Karp or JD Vance. Nor is it the vast majority of "big tech" who have all undeniably made the world significantly worse for a few extra advertising dollars.

But, hey, I'm sure all the Meta engineers think they're doing transformative, important things and not just like, figuring out clever ways to give teenage girls depression faster.
by spacechild1 | 2025-11-08 21:16:35+00:00
> And `std::thread` is fine but if you want to name your thread you still need to get the underlying handle and call `pthread_setname_np`.

Yes, but here we're getting deep into platform specifics. An even bigger pain point are thread priorities. Windows, macOS and Linux differ so fundamentally in this regard that it's really hard to create a meaningful abstraction. Certain things are better left to platform APIs.
by pedalpete | 2025-11-08 21:16:43+00:00
This is the direction we are going, but at the moment we are doing iOS only, but with the plan of learning the users UX needs in iOS before investing in Android, which is a bit strange because most of our team are on Android, but our users are on iOS.

Every time I see a new project like Valdi, I am hoping for something that is truly magical and cross platform, but I'm always steered away by comments like yours and people saying "you have to do native".

For context, I am a dev, and I've done RN apps in the past.
by rvnx | 2025-11-08 21:17:37+00:00
Situation: Men are clicking on job of mechanics, more than women.

Consequence: men are now more likely shown mechanics job.

What is gained: more accurate content, more interesting content, more engagement.

As a result: men are more likely to be shown jobs interesting for men, and women are more likely to be shown jobs interesting for women.

Which means: Increased chances to find a matching job, and to save time doing so.
by eesmith | 2025-11-08 21:18:39+00:00
It isn't illegal, in the sense that no one will be arrested for saying it.

As I recall, it's a bit more subtle. If the workplace continues to allow discrimination based on a protected characteristic then it will be considered a hostile workplace, which is illegal.

Age is only a protected characteristic for people 40 years old or older, which is every member of Gen X.

This presumes that le-mark's account took place in a workplace. On Twitter, about 6 years ago, a millennial wrote “Ok Boomer” to William Shatner, who replied “Sweetheart, that’s a compliment for me”, as Shatner, born in 1931, would have been in the Silent Generation.

That millennial did nothing illegal.
by jslabovitz | 2025-11-08 21:18:56+00:00
I've used Averia (Serif Libre, specifically) for at least a decade as my primary font for email, web pages in 'reader' mode, writing long-form text, etc. I find it extremely legible, and even calming.

Ironically, I've been a typographer for decades, both for print and online. Averia might seem an odd choice for someone intimately familiar with typographic theory/history and the vast catalog of possible fonts. But there's a certain pleasure and comfort in a font that is not trying to stand out or do anything particularly special.
by AIVH | 2025-11-08 21:19:00+00:00
We're building Linux that understands natural language commands.

Example: "Install Oracle 23 AI with GPU acceleration" → System detects your hardware, installs correct CUDA version, configures everything, validates it works. Done in 5 minutes.

Problem: Developers waste 30% of their time fighting package managers and reading documentation.

Solution: Embed AI at the OS level. The system understands intent and optimizes for your hardware.

Open source, seeking contributors. We have 3 initial issues ready for PRs.

Tech stack: Ubuntu 24.04, Claude/GPT-4 for intent parsing, Firejail sandboxing, Python orchestration.

Feedback welcome - what would you want an AI-powered OS to handle?
by seneca | 2025-11-08 21:19:08+00:00
> If you show me a lower paying girl job instead of a higher paying boy job, and I apply for and get the girl job, how is the company tricking me into applying for the lower paying job based on my gender not a problem to you? How as I not harmed by having a better opportunity hidden from me based on my presumed gender?

Not highlighting something to you is not the same as hiding it from you. If you want a job atypical of your demographic, you have the ability to look it up and apply for it. The fact that you might not do that does not justify forcing people to do dramatically less efficient advertising by knowingly including cohorts unlikely to engage with what they're offering.
by hexbin010 | 2025-11-08 21:19:11+00:00
I hate to invoke the comparison, and not to diminish the Holocaust at all, but to give you a better idea of what's happening in the US right now: what's happening could be compared to the Gestapo rounding up the Jews.

Innocent people are being rounded up by a faceless secret police, violently, in a terrorising manner, and taken to detention centres, with their human rights abused at every stage, with no due process and their fate unknown. This is beyond reporting to the local police department.
by cwmma | 2025-11-08 21:19:23+00:00
So first off, no shit the college board things the SAT measures good stuff, it's their test.

Second nobody said the SATs don't measure something, but that something is ability to take an SAT test which is highly predictive of how well you can take other tests. Which as our society puts lots of stock into tests isn't nothing but it's not measuring anything inate.
by inglor_cz | 2025-11-08 21:19:49+00:00
In my previous comment, I was talking quite explicitly about political taboos, not societal taboos.

When I was a kid, the general population of Czechoslovakia would not be shocked by a joke about stupid drunken Soviet Communists, but if someone snitched on you, that joke would still land you in prison.

As with Iran (and I noticed your Persian handle), I absolutely understand that there is a lot of agnostic and skeptical Iranians, but saying that Allah does not exist in front of some henchmen of the Islamic Republic will likely lead to trouble, am I correct?

the logical next step

Well, would it be? We're 100 years downstream from those times. It is a bit like saying that if a modern American city wants to reintroduce streetcars, it will logically resurrect the wooden boxes of the 1920s that will shake your bones whenever they accelerate.

As of now, we know preciously little about natural intelligence, and I personally don't believe that "ignorance is strength", neither am I a fan of fear masquerading as wisdom. We have likely missed some low hanging fruit because of our deliberate ignorance.

If we are slowly conquering cancer, which once seemed intractable, we could slowly conquer stupidity as well, but that requires knowing something about the subject first, instead of blindly trusting some faith.

It is well possible that 100 years from now, something like "glasses for the brain" will exist, something that sharpens your thought process much like glasses sharpen your vision. Of course that the road to this will be full of potholes, but we should try anyway.

so the idea that one subgroup of humans is superior to another

Why should higher intelligence be considered a basis for "superiority"? We don't consider richer, more beautiful or more eloquent people to be "superior" to the poorer or uglier ones, and we should treat differences in intelligence the same.
by nuertey2025 | 2025-11-08 21:19:54+00:00
```c++

// To lessen verbosity, try defining the following convenience aliases in a header:

using SystemClock_t = std::chrono::system_clock;

using SteadyClock_t = std::chrono::steady_clock;

using HighClock_t = std::chrono::high_resolution_clock;

using SharedDelay_t = std::atomic<SystemClock_t::duration>;

using Minutes_t = std::chrono::minutes;

using Seconds_t = std::chrono::seconds;

using MilliSecs_t = std::chrono::milliseconds;

using MicroSecs_t = std::chrono::microseconds;

using NanoSecs_t = std::chrono::nanoseconds;

using DoubleSecs_t = std::chrono::duration<double>;

using FloatingMilliSecs_t = std::chrono::duration<double, std::milli>;

using FloatingMicroSecs_t = std::chrono::duration<double, std::micro>;

```
by skybrian | 2025-11-08 21:20:43+00:00
If the bubble bursts then lots of investors will discover that they're poorer than they thought. I think the big tech firms will come out of it okay, though, due to holding lots of cash and little debt. They have other sources of income.

But apparently there are ways to keep the debt used to build data centers off the books? What happens if the data centers are no longer needed? I can't tell if that's an accounting fiction (the tech company has to buy the data centers anyway) or if the tech company can say "never mind, I don't need any more datacenters" and bondholders lose their money.
by john01dav | 2025-11-08 21:20:51+00:00
> If a platform can't afford to hire moderation resources to do the job effectively (read: skilled resources in enough quantity to make effective decisions), then it's not a viable business.

But, it is viable. Many profitable businesses exist that don't pay for this.

One may instead mean that they want such businesses to be made non viable, in which case we should critically consider which business models that we might currently like other consequences of may be made non viable. For example, will users suddenly need to pay per post? If so, is that worth the trade-off?
by bigbadfeline | 2025-11-08 21:20:51+00:00
> In its first decade (1998-2008), Google's total revenue was approximately $27.9 billion.

And now OpenAI has Google as their competitor. Besides, Google established a search monopoly by side deals, Android and browser push but they still lost the Asian market. Now OpenAi's got to overcome not only Google, Amazon and Microsoft but also Baidu, Deepseek and the other Asian and European competitors because nobody wants to lose the "AI race" - it's too risky. Without a monopoly, there's no high profit.
by hexbin010 | 2025-11-08 21:21:14+00:00
It's very clearly against the guidelines, that's why

https://news.ycombinator.com/newsguidelines.html

> Off-Topic: Most stories about politics, or crime, or sports, or celebrities, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.
by hshdhdhj4444 | 2025-11-08 21:21:40+00:00
> When I see that it is widely accepted that ApoB is better to measure than LDL-C, but the industry continues to measure LDL-C, but not ApoB, I wonder why. It makes me skeptical

Because this is a recent understanding and healthcare tends to be a conservative industry that moves slowly. Sometimes too slowly.

And also because LDL remains an excellent measure. The risk with LDL isn’t false positives. If someone has high LDL they likely have an elevated risk of heart disease. The problem with LDL testing is that someone with low LDL may still have a high risk of heart disease which may be captured in APoB testing.
by pedalpete | 2025-11-08 21:22:08+00:00
Is this significantly different from the near mid-air collisions that happen on a regular basis?

The audio does an excellent job of showing a layperson how difficult it is to interpret and who's going wear based on sound, and then I had to go back through the video to see the turn.

These people aren't being paid to do this right now? Is that right? I'm not American, but that's what I've heard.
by rsolva | 2025-11-08 21:22:39+00:00
> If online 'personalised' ads were banned how would personalised be defined ?

Sorry, maybe I wasn't clear. I'm not against contextually relevant ads. Ads related to gardening makes sense in a magazine about gardening. There is no need to aggregate enormous amounts of personal data in such a scenario because the topic of the magazine (or webpage) is enough to give an idea of the type of readers you get.

I was talking about the current prevailing practice of collecting massive amounts of personal data, fine grained enough to make a psychological profile more detailed than what your closest family and friends could produce. Just to show you ads!

Context can be deduced from the topic of a website, no need to collect, package and sell data so intimate that it could be used against you in horrific ways by the higest bider, be it a nation state or a company.
by proteal | 2025-11-08 21:22:40+00:00
It has to do with how ATC needs to be able to communicate with all planes in the air, even ones built 100 years ago. They have to use radio so everyone can hear everyone else. There’s no other technology that is as ubiquitous as radio, so they have to work with what they’ve got. Upgrading to other stuff would be an absolute nightmare, though they are making progress on less critical fronts.
by senfiaj | 2025-11-08 21:23:12+00:00
Honestly I don't know... I'm somewhat skeptical about these "next big thing that will fix all your pains in web development". There is so much fragmentation in JS libraries / frameworks. Angular, React, Vue, Svelte, Asto, SolidJS, NextJS, Nuxt, Qwik... The list is so overwhelming. Almost each one claims that it fixes a problem in other framework, and a year later the other framework fixes that issue... I think it's better to stick to a big old player, such as Angular.
by seneca | 2025-11-08 21:23:15+00:00
> Discrimination is not rooted in economic efficiency so I don’t follow the argument that market forces would correct it.

It absolutely is in this case. The whole reason to target ads is to make the people who receive them more likely to engage with them. For instance, including men, elderly people, and children in the target demographic for a preschool teacher job advertisement would make that advertisement significantly less efficient, which is why it's not done.

Forcing companies to disallow targeting of ads because some people are offended by the population's job preferences is absurd.
by al_borland | 2025-11-08 21:23:20+00:00
The only thing I really miss at work after moving from Windows to macOS is AutoHotKey.

I tried Hammerspoon. I thought having a more normal language (lua) would make it easier, but it felt more like fewer batteries were included, which made the ramp up seem steeper. Trivial things in AHK seemed like they needed a lot of extra supporting functions to enable it in HS. Some rose colored glasses could be involved here as well, as AHK had a lot of its own quirks I had to work around to make it reliable… but that was for robust code, not simple functionality. I also had a lot of downtime at work when first using AHK… time I didn’t have when I was trying to get HS going. I stopped using it while trying to diagnose some mouse/windowing issues I was having. It’s safe to say it wasn’t the problem, but I haven’t gone back to it.

AppleScript exists, and JavaScript support has been added, but it seems like Apple doesn’t care much about it anymore.

Shortcuts isn’t as powerful, and without an Apple ID (which I can’t have on my work Mac), I don’t think I can actually share or migrate anything I make, which makes it feel like a dead end. It’s also pretty slow.

Automator also seems like it will be sunset at some point, in favor of Shortcuts.
by mrighele | 2025-11-08 21:23:35+00:00
Not op, but if I was paying for ads on a platform, I want to make the best use of my money, and target users that may more likely react positively. If this means that ads looking for mechanics are more likely to be seen by men, so be it, why should I show them to somebody not interested ?

Unless somebody says explicitly "no women", there is no discrimination in my opinion.
by js2 | 2025-11-08 21:23:51+00:00
FWIW, these lines are not equivalent:

@major, @minor, @patch = parts[0] || 0, parts[1] || 0, parts[2] || 0 self.major, self.minor, self.patch = parts[0] or 0, parts[1] or 0, parts[2] or 0

The Ruby case is intended to handle strings like "1", "1.2", and "1.2.3".

The Python code will throw an IndexError as written. Which is why I did this in the namedtuple example:

parts = [int(x) for x in version_string.split(".")] + [0, 0]

That ensures you'll have at least three parts so you can then:

self.major, self.minor, self.patch = parts[:3]
by nicole_express | 2025-11-08 21:23:59+00:00
I mean, "right" is a social construct. It is likely more effective ad targeting, but European law outlaws this despite that, because they believe it is better social policy, decided through the democratic process.

Like, if it was a bad idea to do, there'd be less reason to outlaw it, right? Since there'd be no incentive for companies like Facebook to do it anyways.