skysight-inc/HackerNews huggingface dataset:
I think its because, from my perspective anyway, people who get to high positions tend to:

1) be competent at understanding the tradeoffs inherent in controlling a system

2) be competent at understanding how to maintain or advance their position of power

Almost every other country in the world has now opened up suggesting that the vast majority of leaders now consider a zero covid strategy to mean one or both of the following postulates is true:

a) the damage inflicted on the system by a zero covid strategy outweighs the damage caused in loss of life and the (temporary) health care system collapse

b) a zero covid strategy poses a serious risk to their position of power

It could well be that Xi/CCP have become hubristic about their positions of power and the extent with which they can control reality (arrogance). Or they could have simply misweighed the tradeoffs or underestimated the threat of a zero covid strategy (incompetence). If either of these aren't true then there must be an unknown at play which leads me to wonder if they have extra information regarding the tradeoffs that everyone else does not possess. If, for example, you knew or suspected that 25% of those infected would be dead within 10 years, it might be prudent to keep that information to yourself, particularly if you were a dictator who believed he would still be in power in ten years time and had military expansionist plans.

I do believe in Hanlon's Razor (never attribute to malice that which is adequately explained by stupidity) so arrogance or incompetence are vastly more likely to be the real cause but, given the murky origins of covid, I'm not sure that we can entirely rule out the hidden agenda either.
edit: heh, posted to the wrong comment.
It's surprising to see so much debate about when or where UB "happens".

Unfortunately this article doesn't refer to the best tool to root out UB - UBSan. If you write C or C++, you should have a UBSan+ASan build that is configured to terminate with an error when it encounters violations. You'll save yourself a lot of hair-pulling later. Then you don't have to wonder about the nebulous topics like what "line" the UB "happened" on.

For some compilers, when they add an optimization that capitalizes on an aspect of UB, they will also add a corresponding warning. So make sure you have warnings enabled -- and in most cases you'll want -Werror because generally no one scrutinizes the build output unless there's a failure.
ok, thank you. The context seemed to imply the parent, but OP to me implies the person who posted the link so it wasn't clear what you meant.
Gotcha!

https://docs.stepci.com/guides/organising-tests.html

We will also support reusable sessions/credentials soon
Being independent or in a co-op, what would be your training system?
How is crypto/blockchain %100 not beneficial if it makes Sci-Hub libgen funded?
Am I wrong here or is it at very basic level makes these services stay alive?
The CDC is so out of line with what European countries are recommending. I mean it's almost like our health care agencies have fallen pray to corporate capture. I'm sure academia (as a pure representation of the objective search for truth) is immune to this though, so Notre Dame adopting such a policy is proof that we should trust the science and comply.
While I'm in favor of TS, I'm in favor of it for practical reasons.

Since the new ESLint is going to be highly modular, TS would shine in defining these modules' interfaces in a robust way. Whether to use TS deeper down, or whether to enforce the use of TS across the codebase, is another question. Prototyping is often easier and faster with plain JS, while typing well-defined parts later may be helpful for maintenance purposes.
What a BS term. As far as I understood, there's nothing critical nor ignoring about it. But we have to come up with cool-sounding buzzwords for marketing's sake. What they call critical ignoring is about being intentional with the way you live your life and not drifting into whatever way your environment pulls you.
That's what the article says, but I think there's a disconnect between "lava flowing out" and "eruption rifts".
Is there similar guide but for developers, describing how to use libav, up-to-date example audio player, etc?
> Someone seeing that function may be tempted to say that it's not UB to call with a NULL value as long as the dereference doesn't happen (say, bar() could call exit() or it could run an infinite loop).

An infinite loop is UB for precisely this reason: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1528.htm So an infinite loop cannot prevent the invocation of UB, because an infinite loop is itself UB.

I would expect that a call to exit() inside bar() would prevent eliding of the NULL check. If the program calls exit() before the dereference, it does not invoke UB and therefore should run correctly. I tried your example and Clang and GCC do not actually elide the NULL check in this case, probably for this reason: https://godbolt.org/z/cnWPz3o59

> The standard talks about executions in the sense of theoretical executions by the C abstract machine, not actual executions of the compiled binary. I thought the other comment was rendering to the latter notion of execution, but perhaps I was wrong and it was also talking about the former.

I don't see how this would change the analysis. Running the binary triggers actual executions of both the abstract machine and the physical binary.
It’s certainly a lower barrier of entry, which is both good and bad. I can mock up an app on my iPad or build some simple utilities quickly, but one things get complex it can become difficult to debug.
> If you care that much about 1% you are probably already writing the most performance critical parts in Assembly anyway.

I call this hotspot fallacy and it is a common one. This assumes there is relatively small performance critical parts that can be rewritten in assembly. Yes, sometimes there is a hotspot, but by no means always. A lot of people caring about 1% is running gigabytes binary on datacenter scale computer without hotspots.
It is pretty clear that the quoted is propaganda from the first sentence. When I read "... Western water forces, through insidious and poisonous means such as the Internet ..." as the opening, what comes after is always propaganda.

This does not mean that it cannot contain true statements, but that it could only be useful by providing clues about the goal that the authors want to achieve; not from taking the words as information. My 2c.
See also: https://github.com/WyattBlue/auto-editor (automatically edit video and audio by analyzing a variety of methods, most notably audio loudness)
It's not just a memorization trick; that's exactly what the statement means. If you do

int *x, y;

You're saying that both *x and y are integers.
> Has this been shown empirically?

I have no idea. However, if you expect national intelligence agencies to only be interested in stuff that has been shown empirically, then I have some very bad news for you (to take one of the _funnier_ examples, the CIA spent nearly 20 years researching "psychic remote viewing", ie magic: https://en.wikipedia.org/wiki/Stargate_Project).

That said, you'd expect that this would work (the double-whammy disruption, that is, not the magician-spies).

Take the "Guccifer 2.0" example, for instance. "Guccifer 2.0", that is the Russian military intelligence agency, stole and leaked emails from the DNC, causing political disruption. It was then revealed, in pretty short succession, that Trump lackey Roger Stone had been in communication with "Guccifer 2.0", and that "Guccifer 2.0" was a GRU officer. This caused further political disruption, and didn't obviously cost Russia anything, so, really, why would they _not_ reveal it?

And it does seem to be a trend; it's not like this is the only example of Russia saying "we totally deny these claims [wink]".
They aren’t testing for ‘false’ in this case but for success.

Functions which return 0 on success I always compare with 0 as “if (foo()) error();” easily gets confusing. If I see “if (foo() != 0) error();” then I can easily tell what’s going on because C is funny like that.

Conversely, if I’m testing for truthfulness or NULL I’ll use the boolean operators.
This is a good map showing the flow areas and how long lava could take to reach those areas: https://www.usgs.gov/media/images/mauna-loa-eruption-respons...
This is an ad that gets posted around a lot of places.

> To solve this problem at scale, we've adopted a radical approach: we're building an open-source billing API for product-led SaaS. Our API and architecture are open, so that you can embed, fork and customize them as much as your pricing and internal processes require.
I'm not a fan of this either. In addition to what you've said, it ignores that one reason these 'alternative' sites have been so successful is that they often are good at pointing out the mistakes and misleading nature of mainstream institutions. That's often how they grow an initial trusting audience to begin with, and why they can so successfully bang the drum of 'don't trust the mainstream media': Often that media isn't trustworthy.

My go to is how the mainstream media treated the war in Iraq when it was started. Of course Iraq has WMDs; the President says so. The only counter examples I found at the time were from online orgs and discussions back before those were as prominent.

"Just trust us" isn't a good reaction to the current problem. If some institution wants to be trusted, they have to actually be trustworthy, but that takes $$ and effort. Which is not supported in the current landscape.
It's still possible, just the path is different to most. There are career/executive function/ADHD coaches who specialise in technology. Finding one is the hard part, but ask around for recommendations and look in to ADHD support groups. A good coach will be able to point you in the right direction and you can always change who you see.
No, it's not just "in Egypt". That's completely wrong.
In Czechia out of stock since spring 2022. Only old models like 2 or 3 are available.
No, it's square meterage
1. Yes, that's the point. 10x doesn't say "compared to what", but hints at "compared to now"
2. For sure. My 3 former companies let people spike while working, and I've seen mediocre engineers (lots of bugs, rework) become ok (barely any rework, a few bugs from time to time)
The lie that being humble is a virtue is something you have to unlearn.

In reality if you won’t shout about how great your work is how can you expect anyone else to care about it.
I didn't realize it on first playthrough but since the rank is ordered on the flop you do have a clue that way
Programming Language Design Stack Exchange
The interesting bit is this:

> But there are challenges: The greenhouse industry has flourished in part because of cheap energy, but Western Europe is facing soaring gas prices. And the country’s intensive animal agricultural practices are also at risk. This summer, a conservative government coalition pledged to halve nitrogen emissions by 2030, which would necessitate a dramatic reduction in the number of animals raised in the country. Farmers and ranchers have protested, and it remains to be seen how this standoff will be resolved.

Overly intense exploitation of the environment, whether in agriculture or other domains can easily reach unsustainable levels. Technology, being an entirely human invented category does not have sustainability built-in. To the degree that we have actually become dependent on such artificial intensity the outcome can be catastrophic.
That matters because it shows that there still is a need for the maintainer to go and make sure the labeling is correct. So having multiple top-level categories doesn't help with the maintenance burden.
Avoid “China Insights” or anyone self claimed as China watchers if you don’t want to become victims of propaganda.
I agree, this is over extrapolating. There was no opportunity for them to not get to this point really unless COVID had gone away at this stage.

It strikes me this is a face saving exercise at this point but they can also use it to stress test supply chains, stress test a general emergency situation, stress test their surveillance.

Not much downside for an authoritarian regime.

To assume they have hidden knowledge on long term dangers doesn't fit the observations IMO. Really, my guess is that the whole thing from the start is a facing saving exercise because of an accident in a culture obsessed with saving face.
Magma City / Ta-Koro
I mean, they probably do - so if 9/10 people said the word is "apple" and I said it's "banana" then it will accept apple. But at the same time I can't imagine I was the only one doing this.
I can't imagine maintaining a large JS codebase without types now. For places where you really need dynamic typing the any type is there for you.

I certainly would never take a job in a pure JS shop.
On the other hand, a society where sex work isn't stigmatized is less degenerate than one who is.
I could not find in the post anything saying that they are going to abandon the current ESLint and let it rot while they write a new version from scratch.

> I don't believe continually to make incremental changes will get us to where ESLint needs to go if it wants to be around in another ten years.

The scale of years for rewrite and migration seems right.

Rewriting from scratch may make plenty of sense. A completely new architecture should not be held back by any remnants of the old implementation. The old test suite is indispensable though, and the old sets of rules are an important source to consult (even if not to directly incorporate).
Your quote feels deceptively lacking in context. In particular, the second part ("Unless... truth") is in response to a direct question about a viral hoax that suggested an imminent lockdown. It seems quite reasonable to me that the government should be the one source of truth on their own intended policies, just as it seems reasonable that a news reporter's publications should remain the source of truth on that reporter's writing and perspectives.

https://www.snopes.com/fact-check/jacinda-ardern-truth/
I have a few issues with this pro Netherlands agriculture piece:

1. Vegetables grown in the Netherlands tend to taste very bland in my experience (personal taste), tough I can't complain for the price as they're usually the cheapest option in local supermarkets. If you want great tasting organic veggies you get them at the farmers market which has higher prices than the supermarkets and is only open on certain times of the day/week making convenience an issue as well.

2. The conditions I witnessed in which animals are farmed in the Netherlands are appalling.

The amount of diseased animals (infected bloody wounds and swollen limbs from puss), overpacked in their own feces, will turn anyone vegetarian.

To be fair, the Netherlands is not alone here but in general, then animal conditions I witnessed in places like Germany, Austria or Switzerland were on average better than in the Netherlands.

Disclaimer: I work in tech for the farming industry
On average maybe, but not necessarily.

When thinking critically, be mindful of sub-perceptual heuristics.
This looks really cool! One suggestion for a feature since it doesn't seem to be implemented would be to add podcasts that can also be mixed in to the station. There are some podcasts which I find interesting, but not enough that I actually plan to listen to every episode.
No. You want a parametrized "Money" type, one that can do calculations in varying numbers of decimals, and configurable rounding. There are legal requirements that make this necessary.

One (from memory, not exact) calculation I've had to implement for a customer:
Multiply prices by whole numbers. Prices are given in cents subdivided to 5 digit precision, result should have 10cent precision, rounded down. Then, for the tax calculation, get taxes from some tables, 3 different taxes for each line item. Apply the first two taxes, Euros with 10 digit subdivisions, then round "according to trade custom" (which is the usual "up from .5 cents, down from below .5"). Then add the third tax, Cents with 5 digit subdivisions, round down. Then add all the line items and their taxes, separately as well as together.

And if there is a Skonto, take care to properly unravel the tax stuff again.

I've had to do it in plain Typescript, it is possible, but it really sucks. Those days when you yearn for COBOL... ;)
The Hawaiian volcano Mauna Loa has begun erupting
strncpy does have its odd and rare use-case, but 100% agree that it is not at all a “fix” for strcpy, it’s not designed for that purpose, and unsuited to it, being both unsafe (does not guarantee NUL-termination) and unnecessary costly (fills the destination with NULs).

The strn* category was generally designed for fixed-size NUL-padded content (though not all of them because why be coherent?), the entire item is incorrect, and really makes the entire thing suspicious.
The Netherlands might be a small country, but it's the second-largest exporter of agriculture in the world, after the United States.
I think memcpy is fine because it operates on a special type that is allowed to alias anything. Strict aliasing has other fun issues like the impossibility of implementing malloc-like functions or the lack of any requirement for access to non-char members of structs to work at all[0].

[0]: https://stackoverflow.com/questions/49298704/how-reason-abou...
For some of us meetings are 90% of the job.

I mostly integrate with other teams' services. Most of my time is talking with them (in "Meetings") about their API and reading through their documentation.

Code is like 10% of my week, maybe 20-25% if I'm starting with a fresh service.
We have an in-house psychologist who does regular _confidential_ 1:1 chats with people. More often if they need.

The difference between them and a run-of-the-mill external psych is that they can actually influence company policy (for real - hiring them was the CEOs idea). They also know the company and the people there, which helps a lot in understanding people's chemistry and habits.

In addition the company reimburses for all external training courses taken which you can even in some way say are connected to what you are doing - or want to do at work.

Does this make everyone 10x? Nope. Has it made a huge difference in the way I work? Yes.
These days it is not quite unknowable, if you always runs your programs with the address sanitizer and UB sanitizer on. They aren't perfect but they would provide a pretty good indicator of whether there was any UB or not.
Looked into this and it appears it was not the case; the docs were confusingly written, and the docs appear to have been rewritten some time ago

https://marc.info/?l=gcc&m=102068997020453&w=2
The contract is that libX_foo can return null. But a specific implementation might not. Now you need to remove the caller side check to shut up the compiler which will leave you exposed to a future update making full use of the contract.

Also consider code that call libX_foo via a pointer. After specialization the compiler might see that the check is redundant, but you can't remove the check because the function might still be called with other function pointers making full use of the contract.
To clarify, this site is currently a proposal. More users need to express interest for this to move forward.
You’re reading that paper wrong. It says that the cumulative risk of death, long Covid, etc increases with the number of infections. Of course it does: the only was it wouldn’t would be if reinfections has zero or negative risk.

(I’m ignoring whether the paper is correct in the first place.)
Don't worry, you will increasingly find that there are trusted media and scientific sources who will tell what it's acceptable to think. Otherwise, people will be at risk of reaching different conclusions.

"The Party told you to reject the evidence of your eyes and ears. It was their final, most essential command."
"Teaching C" seems to be a good read too:
https://news.ycombinator.com/item?id=32798826
You imply that the (unconfirmed) harm to the individual is more important to avoid than the harm to the society done by removing potentially insightful comment thread. Why is that?
Musk has sent another email to Twitter engineers warning them about code reviews
The Last Real American Dictionary
Create a Defined-C dialect.
Certainly, they are more reputable. But I think that a healthy level of skepticism is good and not flat out believing anything from reputable sources is to be expected.

In the US, the New York Times has perhaps the best reputation but they distributed false stories leading up to and during the Iraq war.

I don’t like this idea of “good” sources and “bad” sources and don’t think people should promote trusting sources that are deemed “good.”

Herman and Chomsky write about this in the 80s [0] and I think it’s still valid today. I don’t think we should promote narratives of dualistic struggles, especially if we are presented as being on the righteous side.

[0] https://en.wikipedia.org/wiki/Manufacturing_Consent
But this is also one of the big problems of SwiftUI. Because it is effectively a fancy DSL for combining interactive lego pieces, many subtle interactions are just assumed implementation detail. Like how should a "tap" on a Rectangle with a transparent color be interpreted if the rectangle is offset. Because the underlying framework (UIKit) has no notion of these things and because the SwiftUI DSL can't foresee all permutations of its members (Rectangles, HStacks, Spacers, GeometryReaders, etc), oftentimes people build a certain combination of things that results in a certain behaviour. But then the next iOS update this behaviour changed because it was just an ever-changing implementation detail. This leads to constant churn.

I agree that at some point we will see less of these surprising behaviours, but as long as Apple iterates on SwiftUI they will happen again and again.

Also, regarding performance, any performance optimisation will lead to more of these surprises. To keep my example: Maybe at some point an engineer will add a SwiftUI optimisation for offset rectangles and suddenly the tap doesn't work anymore.

After using SwiftUI a lot I'd rather use a more deterministic framework. Or, have it be open source so I can understand what's happening under the hood. The current game of build, inspect and pray every version update is frustrating.
Hong Kong asks search engine to place correct national anthem info
> -Werror to turn warnings into errors. I recommend always turning on at least -Werror=implicit, which ensures calling undeclared functions results in an error(!)

"Implicit declarations" is such a frustrating "feature" of C. Thankfully, in more recent clang builds this warning is enabled by default.
I like that a lot! However, it makes things like

int *x = &a;

a bit more confusing/inconsistent.
That is also an excellent point. It's a bit harder to get objective figures on, though. Still, these are goals that lie in the same direction, and breaking up the old old-boys networks is going to be part of both.

Also keep in mind that lots of companies are already doing this, and have been for a while. Lots of companies today have much more diverse boards, in several dimensions, than they had 30 years ago.
I understand what you say and the appeal for it. However, I have to admit that one of the reasons I like Golang over Python (Although I develop in both frequently and enjoy them) is because of the language mentality of libraries over frameworks. I prefer many explicit different dependencies glued together from one's own logic than a batteries included Framework where big part of the magic happens under the hood and ways of doing things must follow an specific path that does not always applies for your specific business case. I think this approach gives a better flexibility (and can cause annoying paralysis by decision too).
Why combining RAID 1 mirror and RAID 6 array in the same pool?
One of the stated goals of this rewrite is to support running in the browser.