skysight-inc/HackerNews huggingface dataset:
It's 'portable' as originally stated, across various Linux CPU archs.

_GNU_SOURCE is requested by man 2 syscall. Interestingly it mentions it appeared in 4BSD, so possibly it might work (maybe with some changes) under other Unixy platforms.
In CS "garbage" has a bit different sounding, like in "garbage collector". Nonetheless, original poster started it, writing an article "Why Linux scheduler is bad". Next time he'll see it coming.

By the way, Linus' answer is much more informative than yours. I got a lot of useful insights from it and had fun just reading his lively language.
Use Lz4 where latency matters, Zstd if you can afford some CPU.

I have a server that spools off the entire New York stock and options market every day, plus Chicago futures, using Lz4. But when we copy to archive, we recompress it with Zstd, in parallel using all the cores that were tied up all day.

There is not much size benefit to more than compression level 3: I would never use more than 6. And, there's not much CPU benefit for less than 1, even though it will go into negative numbers; switch to Lz4 instead.
> No need for calling code "garbage."

In my opinion calling the code garbage is much nicer than "The author of that post has a common misconception", which sounds like a passive-aggressive way to call someone dumb. Everyone writes bad/'garbage' code once in awhile.
Better to just use Lz4, then.
>Your conclusion imo should just be that women of all races find asian men too weak to date.

Who says this wasn't my conclusion? All women want to date up in terms of class. They also don't want to date black people. Black men and Asian men currently occupy the bottom of the dating ladder.

Guess who sits on top? White people. The problem is none of this is real. White people aren't the best, it's only this pathetic view point of racial inferiority that causes women to see the world like this.

Also I'm only emphasizing on asians because it's disproportionally pathetic. The inferiority complex is off the charts, I can't think of any other race that literally avoids dating their own race to the scale of asian women.

>If the difference is mostly white women not wanting Asian men, then your whole argument is invalid. What's more there's no reason for you to be distinguishing between wants of asian men and women.

Wrong. Not invalid at all. And I never ever made your claim above.

My claim in this context is that asian women dating white men is not the result of asian women trying to run away from strict asian culture. The whole point was to counter an argument made by another poster.

Asian Men wanting to date white women does not mean they don't want to date asian women. They do want to date white women but the ratio isn't as disproportionate as asian women women worshiping white males.

Also why can't I distinguish something? It's not me distinguishing anything. It's reality that is making a distinction.
Why Cryptocurrencies?: The Cashless Dystopia
You just did, and got to pretend you didn't.
I don’t believe any reasonable person thinks that centuries of racial violence and discrimination evaporated overnight and all barriers disappeared for black people. Personally I don’t think it’s reasonable to think experiences or impacts would be the same across different groups of minorities given that many policies and actions were specifically targeted at and impacted black Americans.

That destruction had and continues to have a lasting impact.

There are many theories on why recent immigrants, including African’s, perform better than Black Americans. The psychological impact has been well documented and might help explain some differences in achievement compared to white Americans.
Perhaps I should curb my Netflix binging habits.
An explanation for 2 could also be drugs getting stronger. Given how much more potent modern cannabis is than it was in the 20th century, people might be spending the same amount relative to THC content--but there's much more THC in a gram of cannabis than there once was, so they have to buy much smaller amounts of cannabis for the same amount of THC.
Like all the mainstream Linux distributions out there?

But seriously, IIRC they do 5000 rounds by default, but I've been wondering for a few years how is it that supporting nothing better than SHA512 for the whole /etc/shadow -based system is still ok? How come there's still no support for scrypt or bcrypt?
Regulatory Extortion
I don't think he is the target market at all, the target is likely "extreme minimalists", people who theme their setup more than actually use it.
Zstd knows how to use a user-supplied dictionary at each end. I hope you are doing that.

But if latency matters you might better use lz4.
Masterminds of Programming: Chuck Moore (2009)
An alternate interpretation of the same data - if you're committed to writing a program in a language that requires a runtime / does a lot of work on startup, writing a program that prints "Hello, World!" does not make the most effective use of that language and runtime.

Put that way, most of this post seems like a tautology: if you misuse the tools you are given, of course you're going to get bad results!

It seems reasonable to me that a language should make the assumption that the programmer's use case matches the languages strengths, so by default any runtime setup / bookkeeping / teardown code should run. Failure to remove that extra "complexity" isn't a failure of the toolchain, it's a failure of the programmer to select the right tool for the job.

If the point the author was trying to make was that the complexity being added is never useful, this is not a post that argues that position. A cost / benefit discussion of the specific behaviours being supported by that complexity would be very interesting!
That's an excellent point. It would be interesting to see a chart of the growth of legal pharmaceutical opiates vs the growth of illegal opiates in the past few decades. It won't necessarily show causation ( and maybe not even correlation ) but it would be nice to see how these two opiate markets ( legal and illegal ) grew during the war on drugs.
Yup, it'd make it (also using SYS_exit instead of SYS_exit_group) compilable under various *BSD OSes. Doesn't work for some reason under NetBSD due to some linking problem producing invalid binary for the platform.

$ gcc -nostartfiles a.c -o a -Wl,--entry=_start -static
$ ./a
-bash: ./a: cannot execute binary file: Exec format error
$ file a
a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped\

But the final binary is impressively small, and it seem to contain all relevant code (body of _start and syscall funcs)

$ strip -s a; ls -l a
-rwxr-xr-x 1 user users 2688 Jan 5 07:53 a

Works under FreeBSD though:

$ clang -nostartfiles a.c -o a -static
$ ./a
Hello world!
$ strip -s a; ls -l a
-rwxr-xr-x 1 user user 9216 Jan 5 07:59 a
The world is not enough – Guessing at the game God is playing
I disagree with this sentiment. Linus' answer not only describes the immediate bug, but also gives enough detail and context that other, similar potential bugs related to the scheduler may be avoided after having read the entire post. Also I don't think Linus is being egregiously impolite in his post; he isn't calling the author of the post garbage. Calling the code garbage is not a personal affront, but an objective statement to dissuade others from being misled.

If this was a truly idiotic / trivial mistake I doubt Linus would put much thought or time into such a long post. I also think that if you are going to write a blog post, you are implicitly supposing a place of authority and therefore opening yourself to criticisms. In other words, writing a blog post that is incorrect (in this case, very incorrect) is actively harmful as it misleads others, and it is important to call out wrong posts when necessary. I've posted dumb advice with a know-it-all voice before too (see [1] for an embarrassing HN comment) and I am not at all angry/annoyed that I was similarly called out.

[1] https://news.ycombinator.com/item?id=20017832 (edit: wrong link)
>The following assembly program is the ideal Linux x86_64 program for this purpose. A perfect compiler would emit this hello world program for any language.

I.e. you want your compiler to emit code that isn't portable across unix-like systems (and their future versions) in any degree? AFAIK Linux is the only unix-like system that guarantees ABI stability.

I'm curious what Zig does in this case that it got so "good" results. Does it forgo portability?
If you have the patience for podcasts you have the patience for audiobooks. A substantial difference between the two is the typical amount of effort in creating what you’re hearing.
I upmodded this not because the content is good (it's kind of disturbing in most ways because consumerism-as-comfort is inherently so, though the core advice is sound), but because it highlights an oddity in publishing I've noticed recently.

So this person is an executive at an advertising agency (it undersells him somewhat in the Post's author's bio box).

What's his motive? He doesn't have to have one, of course, so let's put that as an option. Does his agency work with consumer goods businesses? You check their website, and the answer is "yes." So another possibility, then, is that his agency works with large grocery store chains or similar.

You look at his most recent posting on that site, and it's a hit piece on a (fairly bad, actually) business aimed at the same demographic his agency claims to be able to target. In it, he also recommends the demographic in question goes, shops, and makes food themselves.

Sketchy so far, you think.

But then you look at his other posts on the WWW for this sort of thing.

Almost exclusively, they're about how others should buy and prepare their own meals. He's been on this beat for at least seven years and probably more: he had an op-ed in The New York Times on exactly this in 2013.

At this point, it gets close to impossible to figure out if it's some odd attempt at content marketing (likely, given that's what his company claims to do), or just a fun obsession (also likely, given his monofocus).

I've been noticing this thing more and more when I read more or less any op-ed. It's fascinating to me.
>"The author of that post has a common misconception", which sounds like a passive-aggressive way to call someone dumb

Not at all. It's a polite way to say they're ignorant of a particular thing. It would be rather insecure of them to read into it and think they're being called dumb across the board.
The war on drugs has worked for those it was meant to work. It has helped governments grab more power, engage in more violence and create the prison industrial complex we all abhor on HN.

>The monetary cost of U.S. domestic drug policy is equally remarkable. Since the War on Drugs began more than 40 years ago, the U.S. government has spent more than $1 trillion on interdiction policies. Spending on the war continues to cost U.S. taxpayers more than $51 billion annually

That is $1T to polices, contractors, private prisons, prison guard unions and so on. It is an economy in itself.

Here is plenty of information on the topic.

https://www.cato.org/publications/policy-analysis/four-decad...
The sign-up requirement is a big onboarding hiccup.

Like yo, I don't even know what it really does yet, why are you asking me to create an account? Do you really expect your users to capture your value prop based on just screenshots alone?
It's important to realize that you are not your code. Linus' reply comes off as passionate but he clearly cares enough to write such a detailed response.
> In Seth's concert example, this is particularly relevant: your spouse might be a huge Springsteen fan, for instance.

Your example misses the whole point of OP's demonstration of why sunk costs make no sense. OP's demonstration focuses on a single metric (cash), a single focused investment (time spent searching for the tickets) and a single critical change that exposes how the sunken cost fallacy negatively impacts decision-making (a random person offers you 10x the cash for your tickets).

The example illustrates that the amount of resources invested in the project in the past should not be a factor in the decision-making process because it leads to poor, irrational decisions. That's the core message of the sunken cost fallacy.

Your example fails to reproduce the problem because it switches the focus to an entirely different metric (utility) and frames the problem in a way that the new metric is actually negatively impacted by the change, thus the rationale decision is to not sell. That says nothing about the sunken cost fallacy because poor decisions are not alternatives to good decisions.
> I would liken it to learning programming languages. Learning new languages isn't considered "locking you into a language". It's even widely considered beneficial because it makes learning more languages even easier and brings new perspectives to the table.

Partly true, if you don't plan on using the language. But this seems only true, because the majority of programming languages today are open source and portable across different platforms. On the other hand, some time ago C# implied .Net Framework and that would lock you into the Microsoft+Windows ecosystem.

In the same way, using SQL that's understood only by PostgreSQL isn't going to be as much painful as using something specific to Oracle databases when the company behind it goes haywire as Oracle did with Java (if not for OpenJDK).
mkinitcpio is being replaced with dracut so zstd won't probably happen.
Right.

There is really only a single place volatile actually works, and that is for memory-mapped hardware registers. Anybody who says it is useful for anything else is badly mistaken.

Except in MSVC, where it kinda/sorta means atomic.
Not GP, but I was in that thread. The most extensive non-Japanese book I know of is Grammaire japonaise systématique by Reiko Shimamori. As you may guess from the title, it's in French.
I get what you are saying. I agree with most of it. There is a time and place for debt. When you need to expand an existing growing business. A business one has started with their own money, validated it to work and would like an extra piece of equipment to scale up. Debt for the sake of debt is indeed a problem. As for government debt I think that is off topic for this particular thread. That's a whole other story.
I guess that's why it is provided by an individual, instead of as an officially supported solution.
And this is the year of the linux desktop...:p
Would be nice to have examples, so after login user can use them, to check how tool is working, what are layers and scenarios.
Sometimes no player finds a set. In that case in real life it often helps to rearrange the cards. Maybe this would be a good feature
Can anybody familiar with this vertical comment on tends, leaders and/or opportunities in this vertical (team wiki/knowledge-base)

Per my research, this space is crawling with options:

1. Coda

2. Notion

3. Tettra

4. Wrike

5. Confluence

6. Box Notes

7. Dropbox Paper

8. Slab

9. Basecamp

10. MSFT Teams (in a way)

11. Click Up

12. MSFT SharePoint

13. Marvin

14. Monday.com

15. Many many smaller notes apps
IT is time incompetent PgnE monopoly is broken and we have more private players in the fray. At least all bay area cities should have a plan to protect themselves from pg&e's incompetence.
I have no issue with you asking for a reference for this, but when I read your comment I did a double-take. To someone familiar with deep learning, this claim is completely self-evident. The article is indeed almost farcically out of date, and LSTMs haven’t been close to the state of the art for years now.
Is there a reason to believe that there's a difference between TV viewing and passive textual content consumption on the web? I used to think so, but nowadays I'm not so sure. Passive consumption of media designed to entertain, be it visual or textual, seems too similar.
I am under the impression that this long, vocal post, consisting of many assertions and no measurements, would have been judged less favorably if it were not from Linus.

I used to agree with many of Linus rants, but not this time though.

The gist of the reply, as I understand it, is that the benchmark is measuring random spikes while the spinning thread is scheduled away. But the benchmark clearly stated that they are using one thread per core and that the host was otherwise idle.

It could be that, still, some random task pops up once in a while, replacing the very thread that has the lock. But then, rather than calling the whole benchmark garbage I think it'd be more fair to just ask for it being rerun with, say, two free cores. Or use auditd to detect and invalidate those runs.

Linus also calling everything random sounds annoyingly slopy: varrying the scheduler or the OS led to significantly different measurements. Maybe the explanation for those differences are wrong but the measurements are certainly not random.
I feel like we're ignoring the obvious answer: because most people in AI right now are overwhelmed by the necessary mathematical background and comfort necessary to produce first-principles generative innovative algorithms and models, so all they're left with is following the latest trend, which is locked on deep learning right now.
Yes, Linus can still be abrasive, but he's gotten a LOT better than he was before his road to Damascus moment.
This all sounds very good, and I grant that Linus knows what he's talking about, but didn't this whole thing start with a bunch of game developers that noticed massive stalls when porting games to Google Stadia? Stalls that, presumably, didn't happen on other platforms (Windows and PlayStation, using a variant of FreeBSD).

If these kinds of spinlocks are so fundamentally misguided, why do they only cause problems on Linux?
I fail to see how your example goes beyond the "boring" version.

モンタナにいるひとはうつくしいひとだ。

This sentence is accepted by the parser shown in the article and is conceptually the same as 「築地 で 食った 寿司 は うまい 寿司 だった 。」 (save for the use of past tense, which, for this purpose, is irrelevant).
In my shop we only pay for hardware.
It won't, though.

Companies that use it won't, without law requiring it. Police departments won't either.
How will it handle inboxes with 30+ emails in them? And the whole archiving / labeling / folders process? I'd love to see concepts for those. I am, on the lookoit, for a nicer email client.
I’m a software engineer, but I have a degree in English lit. I find I love technical writing. Maybe it’s because I’m often writing about systems I built, so I understand them well and the writing comes fluidly — it might be less fun to write about systems I don’t know as well. Still, I find technical writing one of the parts of my job I most look forward to: presenting to my colleagues a proposed implementation, for example, is both a social aspect of engineering and a way to make sure your design is comprehensible and hence simple (simplicity being a hallmark of good design). I tend not to stress too much over whether I’m writing well: the goal is just to communicate ideas, after all, not to make art.
I highly recommend https://draw.io
Huawei Technologies adds 100M yuan in registered capital
Absolutely agree that grandparents were able to successfully impart useful life lessons. This is why I allude to the fact that our parents generation educated whole villages because they were hardworking (implied), generous and selfless.
Nice post. But why this emphasis on bittorents illegal use cases in the beginning? It's just a protocol and that's it. What people use it for is diverse and something different. In a post about a new car nobody would even mention it's possible use in illegal steet races.
Just be aware its not posix
Haute Baroque Capitalism (2017)
It's great advice, but can be depressing. The question of "why bother doing anything if you're not advancing your field?" feels like a bucket of ice water on the head.

The world still needs a few workers doing non bleeding edge stuff, and they deserve to be content with life, too. People doing CRUD work aren't necessarily a waste of life.
The final conclusion after throwing the blog author into the dumpster (which I’d be more polite about, but that’s Linus for you) is that unless you spent your whole career researching and implementing locks, you should use something that was created by somebody who did. Which is some damn good advice if you ask me (disclaimer: I didn’t research or implement any production-grade locking primitives.)
Yes from former colony and still reside in another former colony on the African continent. I am staying away from commenting on government influence just commenting as a person and my observations. Government is a whole other conversation.
> The possibility of your time slice ending skews all the time measurements, for example."

If you were forced to summarize the entire first third of the email into ten words, that might be valid. As-is, it's way too short to be a proper explanation. It's more of a reminder note. If someone doesn't know exactly what you mean at a single glance, it's useless. Linus has an actual explanation in his email.
There is a legacy from centuries of white supremacy as a legal and cultural mainstay that isn’t fully understood, but certainly has a lasting impact.

One of those is internalized racism and the societal norms that often cause even black people to apply common harmful stereotypes to other black people.

https://psmag.com/social-justice/black-cops-are-just-as-like...

https://www.npr.org/sections/codeswitch/2017/02/04/513218656...
South East Australia and several other places will become uninhabitable because of fires, drought or floods.

Self driving cars will be the norm, but we still have a steering wheel for unexpected situations.

Trump will be reelected and start a new war. A big attack will be done on american soil.

Cannabis legal in almost the entire US and europe (except Sweden and Norway).
Yeah you're right, I should allow users to load examples. Thanks!
I’ve found this “First Greek Book” [1] to be a good starting resource. It gets you through Xenophon’s Anabasis which is a great starting book.

1: https://daedalus.umkc.edu/FirstGreekBook/
Show HN: Job board for companies that value work-life balance
When you say "the code is bad/wrong/garbage", that's a statement about the code. It gives the person who wrote it an out: they can say "Oh, right, I totally knew that, just slipped my mind for a second", or "This is why I shouldn't write blog posts about mutexes at 3 AM" or something. I've certainly written garbage code at times, and you probably have too -- it doesn't mean you're dumb or you don't know things.

When you say "the person who wrote this code has a common misconception", that's a statement about the person. You've jumped to a conclusion about the reason the person wrote the bad code. You're telling the person to accept that they don't know as much about mutexes as you, that they're ignorant, that they're a worse programmer (albeit in a fairly narrow category).

This is why I think GP's wording comes off worse even though it's superficially more polite.
Don't use dispatch semaphores where mutexes (or dispatch queues) would suffice. Apple platforms have a QOS mechanism that donates priority from higher-QOS threads to lower ones when they're waiting on locks that the higher-QOS thread owns, but with semaphores the system doesn't know what thread "owns" the semaphore and so it can't donate priority. Mutexes (and dispatch queues), including os_unfair_lock, will donate priority accordingly.

Which is to say, dispatch semaphores shouldn't be used if you're initializing them with a value of 1, you should only use them if you have an actual pool of resources you're protecting.
...on the X12 window system!
> game will become unplayable after a decade or so if/when Denuvo decides to shut down it's servers.

Which is even more of a reason for a publisher not to remove it. Opens the possibility to do re-releases in the future.