MurphyA/hacker-news huggingface dataset:
by hnlmorg | 2025-04-06 09:28:42+00:00
The GP is correct in terms of super old systems.

In said systems, RAM was such an expensive resource that we had to save individual bits wherever we could. Such as only storing the last two digits of the year (aka the millennium bug).

The computational cost of infrequently rescanning the config files then freeing the memory afterwards was much cheaper than the cost of storing those config files into RAM. And I say “infrequently rescanning” because you weren’t talking about people logging in and out of TSSs at rapid intervals.

That all said, sshd was first written in the 90s so I find it hard to believe RAM considerations was the reason for the “first match” design of sshd’s config. More likely, it inherited that design choice from rsh or some other 1970s predecessor.
by jeroenhd | 2025-04-06 09:29:29+00:00
There are a few minor, uncommon edge cases, probably only encountered by minimisers, where automatic semicolon insertion may cause unintentional behaviour, so semicolons are required. One of the specs; https://262.ecma-international.org/7.0/#sec-rules-of-automat... (link from an earlier comment of like) spells it out in detail.
by INTPenis | 2025-04-06 09:30:58+00:00
This is super interesting. I can only speak anecdotally but my older brother has ADD and he has already spent 4-5 weeks writing a powershell script to automate a trivial task at work.

But whenever I visit he makes huge breakthroughs and I notice that he really wants me to come visit, and he asks me more and more questions on IM and shares his thoughts and progress.

He has a hard time coming out and saying what he feels but I'm observing that he works better with me present.

What's funny though is that I'm the absolute opposite. When someone is present and only slightly focused on what I'm doing, I act as if I have ADD.
by like_any_other | 2025-04-06 09:31:30+00:00
So often when media report on these speech crimes, they will allege that the messages were threatening or harassing or hateful, but rarely show them. Policing speech is a very delicate matter, so at the very minimum, the public should know exactly how the law is being applied, and not just take the police & court's word for it. To that end - does the UK police keep or publish a database of messages/speech that triggered police action or conviction?
by pjmlp | 2025-04-06 09:32:00+00:00
Not only was the acquisition during the 1990's, as someone that happened to be a Linux zealot up to around 2004, usable was quite relative in 2000, if one had the right desktop parts.

And it only became usable as Solaris/AIX/HP-UX replacement thanks to the money IBM, Oracle and Compaq pumped into Linux's development around 2000, it is even on the official timeline history.
by tom89999 | 2025-04-06 09:32:37+00:00
Take a closer look how often the waiters change/quit. In the beginning phase of such a restaurant, all is nice and well. For the google-recension. Then, price will rise and service will get worse. Even high priced restaurants serve dwarf-sized dishes, 2 potatoes and a tiny slice of meat. The wine maybe expensive, but isnt it just grape juice? Also, the food industry is very creative to produce stuff that looks like home-made, at a cheap price. Or the recycling approach. Put sugar on your potatoes and let the dish half finished go back. Wait for the next customers complain about "sweet potatoes".
by rockwotj | 2025-04-06 09:33:50+00:00
It’s not really copy and patch, the whole point of the copy patch is so you can inline that in your compilation output and it’s a fast baseline interpreter because individual builtin functions are optimized (via the compiler output you’re copying from) and inlined (which is why you need to patch to update what registers are being used. In this model you jit only control flow really, then inline the implementation of each bytecode operation (in contrast to sparkplug [https://v8.dev/blog/sparkplug] which just calls a builtin instead of copy/patch). It’s still JIT which is vastly different than an interpreter.

> JIT will be things of the past

Sorry no. JIT is not going anywhere. They mentioned in the article JIT would be better performance just more effort than they wanted to put in (a good tradeoff!) JIT powers Java, Wasm and Javascript VMs and are certainly the way to get the fastest code because you can give the CPU code that it can do a much better job predicting the next instruction. With interpreters you’re often limited by the indirection of loads when looking up the next function to call, and generating code for the control flow outside calling your “builtins” is precisely what Sparkplug is doing.

At the end of the day, like most of engineering, choose the right tool for the job, which in this case is simplicity (which is often the right choice!), but that doesn’t mean it’s always the right choice. For example if browsers did this then Javascript performance would tank compared to what we get today.
by _factor | 2025-04-06 09:34:23+00:00
You’re very confident in your opinions.

It’s not immoral to recognize that you and your family and most of the people you know are split between penis and vagina.

It is immoral to police thoughts you disagree with. Believing race exists leads to dehumanization and hate. Maybe skin color doesn’t exist next? It’s just a representation with utility of similar feature/genetic groups that happened to evolve under similar environmental conditions. Is this scientifically unsound also?
by antirez | 2025-04-06 09:35:05+00:00
The problem is not commas, but the fact the specification does not tell you MUST, in a conforming parser, handle extra commas at the end. While commas are not very useful in this case, they have some value because:

1. They help humans parse the JSON object: we are helped by structure. 2. They add redundancy of information and allow for simpler spotting of syntax errors.

What JSON really needs is to extend its syntax to allow strings that are prefixed length, without the need of a binary protocol. "foo": 6="foobar". Otherwise JSON forces you to parse byte by byte, which is extremely inefficient for large amounts of data.
by entuno | 2025-04-06 09:35:57+00:00
It's never going to be perfect, because then you get into the arguments about exactly what a "fake" review is. But it could be better.

Because as you say, it's pretty common for companies to just go out and buy reviews. You see it all the time on places like Amazon - where a new product suddenly has hundreds of 5* reviews, all saying similar things, from accounts that just go round giving 5* reviews to all kinds of products. It's blatantly obvious to anyone who ever takes a cursory look at the reviews, let along to the company who has all the backend and analytical data about them.

Hopefully this means that companies are required to start doing something about that, or at the very least to respond to complaints like yours rather than just ignoring them.
by pjmlp | 2025-04-06 09:36:26+00:00
Not really everywhere, exactly because of GPL, most embedded FOSS OSes are either Apache or BSD based.

It is not only Netflix, Sony is also quite found of cherry picking stuff from BSDs to their Orbit OS.

Finally, I would assert Linux kernel as we know it today, is only relevant as the ones responsible for its creation still walk this planet, and like every project, when the creators are no longer around it will be taken into directions that no longer match the original goals.
by ornornor | 2025-04-06 09:36:52+00:00
That’s scarcity mindset and it decimates your potential for negotiation. If you really truly believe you are a commodity and have nothing at all to offer compared to any other candidate, it’s worth either learning something new to get out of that commodity category and/or look at your experience + knowledge outside your core specialty and market that better.

It sounds cliché but there is nobody like you. We all have unique experiences (life + professional), hobbies, knowledge no one else has or at least not in that particular combination. That’s your « unfair advantage » as some call it and you absolutely can use it to your advantage.

The choice is yours.
by maccard | 2025-04-06 09:37:40+00:00
On every large codebase I’ve worked on , updating a low level function has required more work updating the tests than updating the application using it.

Unit tests have a place, but IME are overused as a crutch to avoid writing useful bigger tests which require knowing what your app does rather than just your function.

> Integration test are slow/expensive to run compared to unit tests and reduce your iteration speed.

My unit tests might take under a second to run but they’re not the ones (IME) that fail when you’re writing code. Meanwhile, integration tests _will_ find regressions in your imperfect code when you change it. I currently use c# with containers and there’s a startup time but my integration tests still run quickly enough that I can run them 10s or hundreds of times a day very comfortably.

> If you’re doing a lot of mocking then your design is not good.

This is the “you’re holding it wrong” argument. I’ve never seen a heavily unit tested codebase that didn’t either suffer from massive mocking or wasn’t decomposed into such small blocks that they were illogically small and the mental map of the project was like drawing with sand - completely untenable.

> And only public interfaces should have testing.

This is the smoking gun in your comment - I actually disagree and think you should infer this. Services (or whatever you call them) should be tested, and low level functionality should be tested but the stuff in the middle is where you spend 80% of your time and get 10% of the benefit
by LightBug1 | 2025-04-06 09:37:56+00:00
No public facing advertising. At all.

No sponsored advertising. At all.

If advertising "skirts through the loopholes", fine - at least we'll recognise it as underground (like darknet now). The liberal version, I don't even understand how you got there so won't comment. That was wild.

And you seem to ignore the issue the OP mentions about not being able to unilaterally disarm.

It's easy if you try. But you won't try ... what a shame.
by akoboldfrying | 2025-04-06 09:38:31+00:00
> is money being exchanged in order to promote a product?

So if I paint my store front's sign myself, I'm good, but if I pay a signwriter to paint it, it's illegal?

I guess I better become "friends" with a signwriter, so that they don't mind making a sign or two for me "for free". And so that I don't mind giving them a widget or two from my store sometime in the future.
by tom89999 | 2025-04-06 09:38:33+00:00
Look how many people wear headphones nowadays. Many of them at high volumes. Try to watch a movie and to listen to conversations in that movie. I am constantly using the remote to turn down loud explosions and amp up the very silent speakers. Its a problem of the studios and movie makers, not everybody has or wants a 7.1 sound system. The younger generation also is more short-sighted than ever. Smartphone and screen time is increasing. Also, loud music increases thirst, which is good for the owner. Another aspect is waking the fight mode in humans so the waiters are more vigilant after their night out the day before... Most of them are young uni students, earning some cash for partying.
by szszrk | 2025-04-06 09:38:36+00:00
I feel a bit like that, when we in the team started to introduce agile practices. Corporate agile practices, of course.

And while some of those aspects are important and we sucked at it, we are also stripping away any relation we had with each other. Insight into what we really struggle with, releasing tension...

Twist is that it's driven by youngest team members and they love it, because that's what they did in past jobs. So we cut some meetings time, but now we have no idea what we are doing and need more meetings ;) Incentive to actually be on the same page dropped, we are becoming strangers.

I still struggle if I should keep trying to fix that or if it's just "going upstream" and will make me seen as problem maker.
by mkl | 2025-04-06 09:38:49+00:00
Nested ifs are my preference:

bool function_with_cleanup(void) { int *buffer1 = NULL; int *buffer2 = NULL; FILE *file = NULL; bool success = false; // Allocate first resource buffer1 = malloc(sizeof(int) * 100); if (buffer1) { // Allocate second resource buffer2 = malloc(sizeof(int) * 200); if (buffer2) { // Open a file file = fopen("data.txt", "r"); if (file) { // Do work with all resources... fclose(file); success = true; // Only set to true if everything succeeded } free(buffer2); } free(buffer1); } return success; }

Much shorter and more straightforward.

One-time loops with break also work if you're not doing the resource allocation in another loop:

bool function_with_cleanup(void) { int *buffer1 = NULL; int *buffer2 = NULL; FILE *file = NULL; bool success = false; do { // One-time loop to break out of on error // Allocate first resource buffer1 = malloc(sizeof(int) * 100); if (!buffer1) { break; // Error, jump to cleanup } // Allocate second resource buffer2 = malloc(sizeof(int) * 200); if (!buffer2) { break; // Error, jump to cleanup } // Open a file file = fopen("data.txt", "r"); if (!file) { break; // Error, jump to cleanup } // Do work with all resources... success = true; // Only set to true if everything succeeded } while(false); // Free resources in reverse order of acquisition if (file) fclose(file); free(buffer2); // free() is safe on NULL pointers free(buffer1); return success; }

Still simpler to follow than goto IMHO. Both these patterns work in other languages without goto too, e.g. Python.
by sahbic | 2025-04-06 09:39:27+00:00
I’m excited to share my latest article where I explore leveraging LLMs for competitive advantage in rugby. Having worked closely with a Rugby staff on optimizing team performance with data, I wanted to see how using the latest and greatest features of top AI providers can help augment tactical insights.

Key points:

Multi-Model Strategy: By asking identical tactical questions to several LLMs, we gathered diverse insights from different sources on team performance, strengths, weaknesses, and strategic opportunities.

Battlecards: Our approach feeds into a web app that produces battlecards, helping coaches quickly assess opponents and fine-tune strategies.

I’d love to hear your thoughts on the scalability and robustness of using multi-model AI strategies in sports analytics and how similar methods could benefit other competitive domains.
by vo2maxer | 2025-04-06 09:39:45+00:00
Loved it. Five quotes from the many:

“I’d love some pie.” “-I think what you did was… -What? -I think what you did was… -What? -Was so romantic. -Oh, baby, you’re bleeding.”

“Son of a bitch was right. She tastes like a peach.”

“You got me in a vendetta kind of mood. You can tell the angels in heaven you never seen evil so singularly personified as you did in the face of the man who killed you.”

“You’re so cool. You’re so cool. You’re so cool.”
by asar | 2025-04-06 09:40:35+00:00
Really interesting method. I've been calling a similar strategy the library effect. Whenever I work in an environment where other people are productive (or at least look productive) I can focus much better and get in the zone. It's now gotten to a point where I'm actively seeking desks with my screen exposed to the room, so people would be able to see me procrastinate, guilt tripping me to limit this sort of behavior.
by lelanthran | 2025-04-06 09:41:20+00:00
> In both cases I think your license does nothing, compared to a normal MIT license.

I've read it very carefully, and I'm still of the opinion that an explicit prohibition needs to be tested in court before it can be ignored.

IOW, until it is tested, it stays. After it is tested, then your comment about it being superfluous will apply. Right now neither of the two alternatives apply.

If someone wants to make a test case out of my little prohibition, they are welcome to.
by defrost | 2025-04-06 09:42:19+00:00
> To that end - does the UK police keep or publish a database of messages/speech that triggered police action or conviction?

The UK police keep records of all police actions that result in arrest or warnings. Any evidence gathered at the time or later is attached to the file per action ID#. The article here is drawn from the results of an FOI request to the UK police database.

The UK court system keeps a database of all actions advanced to prosecution before the courts. The numbers that enter the system, the numbers pleaded out, mediated out, dropped, brought before a judge, trial results be they dismissal, guilty, innocent.

As per the article, of the some 12,000 arrests or warning per recent years, only some 1,100 resulted in a sentence.
by yunohn | 2025-04-06 09:43:30+00:00
> People who work there.

They’re paid to work on and like the product.

> People who come across the product in a shop or in/on a market.

The salespeople at the shop and market are paid to like and sell the product.

Even getting your product into a store shelf is a marketing activity, and chain stores charge a lot of money for the privilege.

> Reading (unpaid) reviews.

This can be a hobby, but most people need to make money from the work they do. This is why this area is covered by companies that employ and pay people to use and review products.

Also, this is recursive - where did this unpaid reviewer hear about the product?

> unbiased, factual information

What is an unbiased fact? Is vim better or emacs? How do you decide between the two? First you “hear” about them, and hopefully they didn’t “bias” you on way or another, and then because they’re (luckily) free, you can try both and decide for yourself what the “facts” are. But what about vscode and jetbrains and etc? They’re backed by corporations, and have marketing behind them, but they’re great products too!

You see where this is going once you generalize across industries? People pay for ads so that they can tell people what they think is an unbiased fact about their product. If they’re lucky, they also get word of mouth. But in a massively populated world with millions of products, this obviously creates a market for said “word of mouth”. And in turn, attracts bad actors, who lie about their product or manipulate you for politics etc. Some cases are clear cut, but others are not. It’s up to the viewer to decide at the end of the day.
by Who_99 | 2025-04-06 09:44:05+00:00
After trying to replicate my theory for almost 8 months, I came to realize that it is not necessary to replicate exactly what evolution did. We can create what is easiest to achieve based on the resources we have. Nature doesn't have these resources. Nature, as a creator, can only work through cause and effect, but we humans, as creators, can manipulate this cause and effect. So, I thought of creating a model using my time's resources to build a algorithm of how the brain may work (if you want to know more about the theory, let me know in the comment section, and I will provide the file). All the other details about the model can be found in the GitHub repo.

We have built calculators, not robot hands, to do calculations. Do not ignore this just because it seems simple; I have iterated many times on this idea to get to this point. I can say that, though it may seem simple, there is a lot of explanation for why it is simple and why it should be.

im looking for a team, do join if you find this interesting.. please let me know what you think about this model in the comment section
by akoboldfrying | 2025-04-06 09:45:48+00:00
> all of our communication channels are corrupted by companies who want to make us buy stuff

This is simply not true. You can buy or rent a server right now, run any kind of communication software on it that you want, and use that to communicate with anyone anywhere in the world, 100% ad-free. There are even pre-existing software stacks, like Mastodon, that make setting this up trivial.

I honestly find it disturbing that you don't appear to realise that you are asking for control over someone else's communication platform.
by 1rvinn | 2025-04-06 09:47:17+00:00
find it hard to go through excruciatingly long github repos and pdfs? struggle no more, just enter your mindpalace. mindpalace helps you understand the repo/pdf visually by providing concise explanations along with mindmaps. and the ask ai feature allows you to ask anything about it. hop into your mindpalace - understand visually, understand better.

try it out here - https://mindpalace.streamlit.app
by leni536 | 2025-04-06 09:48:17+00:00
While mostly agree, they do have some questionable practices. Like pretty much guaranteeing a middle seat if you don't reserve one, except if you purchase "avoid middle seat" from the popup right before checkout. Or deliberately breaking up random seat allocation for group booking, even if the seats are for an adult and a small child.

They do offer free reserved seating options though for certain group bookings, so I'm not complaining much. I could even arrange things through customer service chat with them.
by ozornin | 2025-04-06 09:49:35+00:00
> how to police the boundaries

Any existing policy inevitably has a gray area, no matter how elaborate it is. That's okay if the author didn't cover corner cases in a short essay.

> You don't just magically know what to buy.

Knowing what you need is not magic. I don't remember much advertising lately that would tell me how a good can satisfy my existing needs. Mostly, they are trying to make me feel I need something I didn't need before
by ssttoo | 2025-04-06 09:51:42+00:00
I recently started on my first title contribution to the project, it’s a rewarding experience https://github.com/stoyan/edith-wharton_the-custom-of-the-co... It’s HTML all the way down

The step-by-step: https://standardebooks.org/contribute/producing-an-ebook-ste...

In a nutshell: start with a Project Gutenberg text, clean it up to a high standard, have it peer reviewed and published
by southernplaces7 | 2025-04-06 09:51:57+00:00
I'd love to know who the assholes who flag perfectly relevant, useful and well-sourced and debate-worthy posts like these are?

Is there perhaps some coterie of Trump-supporting, Musk-loving orangutans on HN that come out of the woodwork selectively and explicitly to flag content that's in no way outside moderation standards? That aside, the very fact that random readers, for entirely opaque, possibly idiotic and mendacious reasons of their own, can just flag any post is absurd on a site like this that likes to pat itself on the back for supposedly being open to broad, reasoned discussion of many, possibly controversial subjects.
by quadrifoliate | 2025-04-06 09:51:59+00:00
The article and the analyses in it seem to have overlooked a couple of things:

- Decline in quality of food: As far as I know, pan pizza in the 90s at Pizza Hut (that the article talks about) had the dough made in house; modern versions have reheated frozen dough. I feel like this is an important distinction. If I'm just reheating frozen pizza, I can do that at home.

- Decline in quality of service: The article mentions this in passing (server knowing the order of a frequent customer) but doesn't go any deeper. In my experience, a lot of the servers (not just at chains, but everywhere) these days are younger people who seem pretty indifferent to the customer experience. Certainly I don't think that any servers at a Pizza Hut will remember someone's order in 2025.

The factors I mention above are hard to measure, especially over time. But I do feel like they have contributed to the decline of chains to some degree as well as things like orders to go, did delivery apps, etc.
by A_D_E_P_T | 2025-04-06 09:52:02+00:00
> As per the article, of the some 12,000 arrests or warning per recent years, only some 1,100 resulted in a sentence.

That's actually a troubling statistic. It implies that the police are throwing their weight around on flimsy legal grounds -- as an intimidation tactic -- or are coercing "settlements" outside the court system.