skysight-inc/HackerNews huggingface dataset:
To pick the same example from both, I hate both fork() and CreateProcess().

Microsoft wrote "A fork() in the Road" [1] describing the problems with fork(), and they are right: fork() is too simple, it doesn't scale, it is inefficient, and error handling becomes next to impossible.

(In my code, I have the child process return exit codes from 255 on down for error handling. It assumes, probably wrongly but right enough, that most programs won't use those exit codes.)

But CreateProcess() has the exact opposite problem: it's too complex and limited because it takes a large, fixed set of arguments. It takes many lines of code to set up for it, and once you actually start the process, you have no control over it, which sucks if you need to do something with the new process that CreateProcess() cannot do on creation.

Windows does have ways of modifying running processes, which is great and sort of makes up for the limits, but heaven help you if you need to use one of those functions on the new process because you have no control. The only thing you can do is to suspend the start thread of the new process right away, do your thing to it, and resume the thread, praying that the new process hadn't created a new runaway thread before it was suspended.

(And all of that is not even mentioning that the Windows way of passing a command-line is to pass a string to be parsed, not a list of strings. My code has a function literally to take a list of strings and turn it into a Windows-compatible command-line string with all of the juicy backslashing that implies.)

The right API is in the middle: a zero-argument function to create a new, blank process (not a copy of the current process), but to create it in a suspended state, so you know it's not going to run away from you.

Then, you use Windows-style functions to change the process, before it even starts, to set it up. Once you're done, unsuspend it.

That end result gives you as much power as fork(), with the better scalability of CreateProcess(), and better ease-of-use than both. You could even have functions to map in a copy of the current process if you so wish, to implement fork() for process checkpointing!

In other words, talented programmers can implement things and make them work, yes, but it doesn't imply that they are good at design.

[1]: https://www.microsoft.com/en-us/research/uploads/prod/2019/0...
I rarely check the Home (algorithmic) feed or Trending feed, I just check my Subscriptions feed and I get amazing and lots of content. It take me time to build my subscriptions list, usually via recommendations by channels that I'm subscribed.

YouTube is my preferred app to watch videos by a mile, I never ever will change it for Netflix, HBO, TikTok, etc.
You must be in a state that remotely aligns with your perspectives, but many are not that lucky. While theoretically the smaller the government, the more responsive it is, US states are a great counterexample. They associate people under the same government in ways that are divorced of current economic and cultural ties. State governments are also easier to gerrymander: See the many states where the difference in direction between state level elections and the state house is well over 10 points.

Furthermore, the much lower level of oversight in states lead to more extreme, low quality decisions, often which end up with people less happy than with national level decisions. See abortion: Leaving the decision to the states led to fewer people being happy with the laws they had, instead of more. This isn't because there aren't plenty of people that want very strong abortion restrictions, but because state lawmakers in states with Republican legislative majorities are far to the right of not just the median voter of their state, but even the median Republican. Similar things can occur in blue states. And how are legislators acting when they see voter-driven referendums to change legislation? By passing laws demanding 60%+ of the popular vote to overrule the legislature.

You also talk about politicians disconnected from real issues: When I look at the laws my state representatives try to pass recently, they are either not clear 50% of the popular opinion, or focus on key things like, say, legislating high school athletics for trans students. Given that the fact that they know which part of the state votes in favor of the majority of legislators, and which parts don't, how do you think they spend the money? That's right, the parts of the state that don't vote correctly don't get anywhere near the level of investment that matches their contributions to the state coffers. After all, making sure there are fewer people living in those places is a sure way to maintain control of the state government in the long term.

So while I am not unsympathetic to the idea of more local government, States are such a poor example of 'laboratories of democracy' that in a majority of cases, the federal government works less badly. Marijuana is the rare case where things happen to work out.
Hydrogen is a much better gas for this purpose. It’s lighter, can be produced in flight, and is much cheaper.

Forays into the general space by helium airships will pave the way for rewriting the laws prohibiting hydrogen’s use for this purpose. With proper regulation and safety measures, hydrogen can be used.

The biggest issue is dealing with wind.
Some states are actually banning most e-cigarette products while legalizing marijuana, it's bizarre.
`a + ax + ax^2+...`
It was not accurate and did not work well at all. It was completely arbitrary.

I think the ability to withhold funding can be a powerful tool for governments to influence the journalism they fund. I think that's why governments fund journalism. It's at least a risk factor, and it makes the organization state-affiliated by definition.

I don't think it's unreasonable to worry about NPR thinking about how their editorial decisions will affect the government's continued willingness to give them money. I'm not saying that NPR is actually thinking about that, but it's a risk that people should keep in mind when they consume the content.

Leaving funding aside, my comment was mainly referring to state media such as CBC and BBC. I fail to see why they should not get the same label as their non-western equivalents. The BBC is not even really pretending to be independent anymore, and while I don't know anything about CBC's journalism, the fact that their board is appointed (and can be removed) by the Canadian government means that they are not independent of the Canadian government.

I don't know what you refer to regarding the Guardian. As far as I know, no one labeled them state media.
> I saw Mac exclusive apps being posted on here

A Mac app that has been posted on HN and appearing on its front page almost certainly passes a higher quality bar than an app found by searching the Mac App Store.
ChatGPT4 writes Stan code so I don’t have to
That is true. I'm repeating what others have judged and told me.

Of course, feel free to judge for yourself.
Great timing with this! My workplace does a charity pushup challenge every year, and I usually create a team for people looking for alternative exercises. I was considering yoga for this year and was just looking for resources to help provide daily customised sessions. 1 minute of yoga/stretching = 3 pushups or something like that.

This will really help fill the gaps, and I'll probably recommend it to people doing the regular pushup challenge for warmups and healthier workouts.
I think this may be useful for people who are already interested in learning various things on the internet, however I don't think it would necessarily pull most people away from the highly addictive content they are already consuming. In my experience people who are curious will find the resources they need to satisfy their curiosity and it's very hard to get those who aren't curious to engage with anything.
>The Later Stone Age began in the run-up to the peak of the last Ice Age, and many researchers think the period's climate could have contributed to humans' technological and behavioral changes. Some propose that an increasingly volatile climate may have forced our ancestors to get more creative at effectively exploiting resources.

The Quaternary Megafauna Extinction was the well documented, extremely rapid crash in available calories, beginning around 50,000 BC, and accelerating into the Neolithic around 11,000 BC. This crash resulted in widespread resource pressures representing a net-loss in total available calories. Areas of genuine resource scarcity, once a transient phenomena, became frequent and pervasive, driving humans to hunt progressively smaller game, forage more intensively and increased the pervasiveness of hoarding behaviors. In practical terms this meant groups of humans were increasingly pressured to spend more energy or take more risk to earn the same amount of calories. By the year 10,000 BC, for the first time ever, humanity needed to learn how to survive in a persistently resource scarce environment. This pressure induced a Kuhnian paradigm shift in humanity’s behavior from one of nomadic resource sharing to sedentary hoarding.[1]

I'm pretty sure this is the right explanation

[1]https://kemendo.com/Myth.pdf
I was basing that on what I've read so far about WebAuthn. How does Chrome handle key management? For example this is what the Wikipedia article says:

On the client side, support for WebAuthn can be implemented in a variety of ways. The underlying cryptographic operations are performed by an authenticator, which is an abstract functional model that is mostly agnostic with respect to how the key material is managed. This makes it possible to implement support for WebAuthn purely in software, making use of a processor's trusted execution environment or a Trusted Platform Module (TPM).
That also makes it easy for a hacker to steal you phone number
At some point you cross the line between philosophical noodling and outright advocating the execution of everyone involved in the drug trade.
It absolutely adds advantage to those interested in literature, it allows you to see your first language outside itself and generally increases your understanding of your first language. I would consider that a cognitive advantage but it is not exactly an advantage for the general public. Interestingly (at least to me) I have found programming languages* even more beneficial in this sense which I also find ironic, stem sorts often seem to miss the nuances of spoken/written language but as a humanities sort the hard line logical brutality of programming languages has given me valuable perspective on the nuances of the spoken languages.

*I apparently forgot what this footnote was for, like I said, I am a humanities sort
Then perhaps you're being paid too much compared to the other people in society
I pay happily for YouTube, but just so you know... if your politics are considered wrongthink they will happily delete accounts or apply repressive algorithm changes to search results. For example, they kicked well-intentioned people off for suggesting that Covid might have been caused by the Wuhan lab until the New York Times finally published an article suggesting exactly that.

This comment will be downvoted and flagged, but before you do so imagine how you'd feel if you wanted simply to watch a video but Neil Mohan didn't want you to and gave you a shit Fox News video instead.
Bro, reframe this "I have so many entrancing growth opportunities for my attention that I find it hard to take value from someone else's experience".

Really, his bullet points are pretty basic management 101 - - but most managers don't know them and if it helps even one person be a better manager it's worth this time.
No no, there are also people who just don't want to see their industry disrupted.

Example. Almost half of all Japanese people I meet say something along the lines "poor car shops who will be put out of business because of EVs", and will find many critics against renewables (including, most of the time, conspiracy theories, e.g. the West wants to eliminate Japan advance) just because they are sympathetic to the ICE cars industry.

And, last but not least, all the Russian trolls, as well as all the people who are unknowingly repeating them or influenced by them, will disseminate all kind of doubts and skepticism about renewables. Because fossil fuels is something they don't want to see replaced anytime soon.
> Maybe try going outside, you'll find it's actually completly continuous, there is no species change when crossing state lines

Culture is different even in nearby states. I grew up in Virginia, went to college in Georgia, and live in Maryland now. Right before the pandemic my parents moved nearby, after living in Virginia for 30 years. My dad pointed out the other day that Marylanders aren’t like Virginians, something he has realized immediately. Then it clicked for me: Maryland is part of the mid Atlantic (PA, NJ, DE) while Virginia is part of the south. Now I can’t unsee it: the accents, the odd mannerisms, etc.

I married an Oregonian. Oregon might as well be Canada. Weird libertarian Canada. My family is originally from Bangladesh, but at least half of the cultural friction between our families comes from Oregon versus Virginia.
Anybody got a link to the full paper? Being bilingual myself I find the conclusion at odds with my anecdata.

I'm curious to know what were the tests were and corrected factors.
I’ll disagree with the poster you’re responding to and admit that indeed, the states are not so culturally and geographically different that they need to be independent: surely, a rural hamlet in France is as different from Paris as any two parts of the US are.

But there are good reasons other than those to hope the states evolve towards more autonomy. The US political system at the federal level is fundamentally broken, making it incapable of governing the country. Due to a combination of factors: first-past-the-post voting, skewed representation in the senate, media polarization, the filibuster, and others, it is unique among supposed democracies in allowing small minority factions to effectively veto any mildly controversial legislation.

Because meaningfully modifying the constitution is functionally impossible, these issues simply can’t be fixed. But luckily, that isn’t true at the state level! Most states still are functioning, if imperfect, democracies, as evidenced by the very thing we’re discussing in this thread: they’re capable of changing policy in response to changing needs and wishes of the population, in a way that the federal level simply isn’t.
> it's not possible for human beings to write correct C code, measured over time

I agree that C the programming language does not help you avoid memory errors, however, saying it's impossible is too binary. People do make mistakes, whether it's copy editors missing a typo or professional chefs misremembering whether they stocked an ingredient. Projects written in C need longer periods of code review and testing, but they can be made right. The code that took us to the moon was written in assembly after all.
I notice that it's not just bing, why on this very site I see that 18 of your 22 submissions (all within the past 13 months, all to your blog) are marked as '[dead]'.
> But that's my point: that's exactly the promise of every single cross-platform system out there.

Every non web cross platform system doesn't have nearly the investment as browsers do for quality and compatibility. It's not even close. Like, orders of magnitude. I don't like the cross platform toolkits either.

Let's not pretend the web as a platform is the same m'kay? People use it every day from all of these devices, like billions of people. This isn't some unknown, where this speculation is reasonable either. There are issues, but it's not equivalent.
You mean it’s the state of desktop, which allows you to install any apps you want. Again these kind of misdirecting comparisons sound malicious.
Uh, millions of dead Iraqis and Afghans are going to see your wish and say "sure, why not?"
This leans in to what I’ve been saying as an armchair board member:

The value prop of YT is everygreen content.

There is a net-negative effect when they try to be the “right now” platform (they pollute the index of factually-right answers). If YT doubled-down on hosting evergreen content they wouldn’t have to fight for market share against TT/IG/SC/WE because those apps need 10 years to catch up to where YT is today.
It probably used to be just this simple indication that this section was something different (frontmatter) by using a less common but still generally understood number format.

It did used to be more common, especially for things like monuments. But it's become less common over time. I was traveling with a friend of mine who went to good suburban public schools outside of a major city and then an elite technical school. I was somewhat shocked to learn she had never been taught (or bothered to learn) Roman numerals. Even if it's sort of a trivia thing at this point, I just assumed it was something that a reasonably well-educated person would just know.
Been there. Moth balls really work.
I am... OK with the Youtube algorithm. I find that it is pretty good at this point at not giving me stuff I find awful. However, I think it has lost a lot of ground in helping me find newer, more obscure topics that I'd also find interesting, compared to where it was 5-6 years ago.

Overall I think Youtube IS a jewel of the Internet. The amount of astoundingly interesting, informative, entertaining, educational, insightful, important or just plain COOL content that has appeared over the time it has been up is phenomenal, and it is like a Library of Alexandria of our time.

My big fear is that someday, Youtube will no longer be profitable. And then, like so many other beloved services, it will send out an e-mail saying it's been a great X years, blah blah blah, we'll be shutting down in a few months, bye.
Not sure what’s provocative about “people use language X because either they like it or they have to use it”. The same could be said about every tool.
Ask HN: How can I get more stars to my open source repo?
I have new open source project, https://apibrew.io/ I would like to get some advice on, How can I get stars to it? Even feedbacks will be helpful, Do you know what is starting point for it?
I'm aware that there used to be more credits - especially the "giving credit to the people involved" sort - up front.

I don't have a specific recollection of if they included all the "legalese" sort of non-credits like these copyright notices.
I assume it’s great if you don’t have an accent. If you do, you want it to repeat, because it often messes up. And it didn’t really meaningfully improve in 4 years I’ve been using it.
The internet is full! Go away.

https://en.wikipedia.org/wiki/Eternal_September
A lot of that is due to the low memory bandwidth on mainstream CPU sockets: 128-bit bus, going up to around 6GT/s currently. That's half the memory bandwidth of NVIDIA's current entry-level laptop discrete GPU. And more L3 cache on a CPU directly addresses that memory bandwidth limitation (provided it's accessible to the iGPU, which would certainly be the case if AMD put 3D cache on an APU).
"Volume of fire has an accuracy all its own."--U.S. Marine

In the propaganda war, substance is irrelevant and repetition is key.

At some point, society is going to heave a collective sigh and thumb its nose at all of these online scandal-peddlers.

It's all a colossal farce, and cannot implode quickly enough, on the Left of Right.
There are lots of humblebrag posts, but I don’t see much bragging in this one.
Great article. Thank you for sharing your experience.
So one of the two phases of power that comes into my
house went out. I was chatting with the lad that came to fix it from PGE. I wanted to know how much it cost to update my 125amp main panel to 200 amp. He responded , 30-50k after all the trenching work.

At home charging is gonna be a pickle for older homes… esp if you have powerlines that are trenched.
Yeah, why build better tooling or libraries for a language that lots of people use, right? That would be silly!
Using Twitter likes as a "thing to make you feel good about yourself" might give you a short term dopamine rush, but probably leads to long term unhappiness IMO.
I’m not going to guess but I personally did it when I had an Android
Without access to the actual Paper I don’t know anything about the cognitive test that was performed, so no idea what to think of it.

Without the actual Paper we are just reading a footnote.
I'm slightly surprised by the direction they seem to be taking here. It seems like they're going to try to use this as a source of funding for PyPI, rather than focus on its potential to bring namespaces to PyPI.

I also wasn't able to find out how much it will cost. Nonetheless, I'm glad to see this development, and will probably be making use of it for the company I work for.
The dealbreaker for me is the hard 25 MB file size limit. If they raised this to something more reasonable (like 100 MB for parity with Github Pages) I'd migrate in a heartbeat.
I am in management. I evaluated most of the on-duty tools that are available, at the cost of a couple of days of my personal time. At least they all have free trials. PageDuty, Opsgenie, Splunk On-Call (ex VictorOps), AlertOps, Squadcast, TaskCall, etc. etc.

They are all surprisingly hopeless. For example, none of them have SCIM integration to make managing your teams in them automatic. All of them have clunky calendar overrides. None of them seem to integrate well with Outlook / Google Calendar, particularly none take into account holidays. Many have no Terraform provider to manage them, and the ones that do are clunky at best, and hard to set-up/manage. OIDC is hit-and-miss. For example, for PagerDuty you need to call up their support team and get them to manually tweak something that's not in the UI settings to get OIDC for Azure AD sign-ins to work.

It's not that management is apathetic. We genuinely don't want to engineers spending their time working around vendor inadequacies and lashing this stuff together with barely-maintained scripting that they resent having to write in the first place. Why would anyone want that? Given there's seemingly no product out there that lets you avoid that, what should we do? When they're all rubbish, you either choose PagerDuty because everyone does, or Opsgenie as a protest vote, because at least both have Terraform providers and plug-ins for other things like Slack and Sentry, etc.
Maybe but a lot of my family road trips are haul ass to Disneyland or San Diego (from Phoenix) where we leave at 6AM and want that travel day to be usable at our destination. We usually have about a 10 minute stop for gas fill up and snacks or lunch.
But enough about Wikipedia in general. Notwithstanding pure science/math topics, one is safe to assume anything there is at least airbrushed, if not pure propaganda.
> I also don't like how UB turned into “a license for the compiler to undertake aggressive optimizations that are completely legal by the committee's rules, but make hash of apparently safe programs.”

You can have a language where all the behaviour is defined but in my experience most programmers who whine about this in C are just as unhappy because what they actually wanted was DWIM. In a language with defined behaviour their program is wrong, which is their fault, whereas in C they can claim "obviously" it's the compiler's fault.

I like it when it's my fault, I just learned something, and early in my education I assumed everybody was the same but I rapidly learned that most people prefer to be told they're correct regardless, and a language which says "Nope, 4 - 5 is a negative value and this variable in unsigned, too bad" makes those people unhappy, whereas when 4 - 5 = mysterious program behaviour they can blame the compiler engineers instead.