skysight-inc/HackerNews huggingface dataset:
As a rule of thumb, yes, compilers should issue warnings where undefined behavior is obviously occurring. (And there is something to be said for compiling with -Werror). However, that's not going to always work, and there are two reasons for this.

The first reason is that undefined behavior is ultimately a statement about dynamic execution of the program. The set of expressions that could potentially cause undefined behavior is essentially all of them--every signed arithmetic expression, every pointer dereference, hell, almost all function calls in C++--and figuring out whether or not they actually do cause undefined behavior is effectively impossible at the compiler level. This is why sanitizers were developed, and also why sanitizers only work as a dynamic property.

For a concrete example, consider the following code:

extern void do_something(int * restrict a, int * restrict b, size_t n);

void my_function(int *y, int *z, size_t x, size_t n) {
if (x > n)
do_something(y, z, n);
}

This code could produce undefined behavior. Or it could not. It depends on whether or not y and z overlaps. Maybe the check of the if statement is sufficient to guarantee it. Maybe it's not. It's hard to advocate that the compiler should warn, let alone error, about this kind of code.

The second issue to be aware of is that there is a general separation of concerns between the part of the compiler that gives warnings and errors (the frontend), and the part that is actually optimizing the code. It is difficult, if not impossible, to give any kind of useful warning or error message in the guts of the optimizer; by the time code reaches that stage, it is often incredibly transformed from the original source code, to the point that its correlation with the original can be difficult to divine.

So I once came across some really weird code that broke an optimization pass I was working on. It looked roughly like this (approximate C translation of the actual IR):

if (nullptr != nullptr) {
int *x = nullptr;
do {
/* do some stuff with x */
x++;
} while (x != nullptr);
}

What hideous code creates a loop that iterates a pointer through all of memory? Why, this (after reducing the test case):

void foo() {
std::vector<std::set<int>> x;
x.emplace_back();
}

So the crazy code was generated from the compiler very heavily inlining the entire details of the STL, and the original code was a more natural iteration from a start to an end value. The compiler figured out enough to realize that the start and end values were both null pointers, but didn't quite manage to actually fully elide the original loop in that case. Warning the user about the resulting undefined behavior in this case is completely counterproductive; it's not arising from anything they did, and there isn't much they can to do to silence that warning.
Results only apply to indoor environment. Maybe source control could be extrapolated to outdoor conditions and close contact.
I think I'm mostly just expressing frustration that this actually works. That anyone looks at that phrasing and says, "Yes, this makes sense."
Even if this is true, I still don’t think someone at high risk should be trusting their life to a piece of cloth.
"This is an open-access article distributed under the terms of the Creative Commons Attribution license, which permits unrestricted use, distribution, and reproduction in
any medium, provided the original work is properly cited."

So happy to see that.
SimuLand, a lab environment to simulate attacker tradecraft
The trick for 11 generalizes for testing for divisibility by n+1 in base n, too
Anecdotally I haven't had a cold in years. I work out 4 days a week and while I wouldn't call it a strict diet I have an upper limit calorie "budget" that I never exceed. While it's certainly possible that masks helped some people avoid all airborne transmissions last year, lots of people were also able to exercise more and make better food choices without the rush of breakfast and lunch commutes.
We are told that content posted on the Internet lasts forever. This is an oversimplification. While some content can last for decades, nothing is eternal, not even on the Internet. The whole truth is that content survives only as long as some person or organization is willing to pay to host it. Servers, electricity, and network bandwidth cost money.

Hosting ,electricity, and bandwidth are cheap. it is more likely someone will forget to renew the domain than not be able to afford it.

What survives is completely dependent upon the values, tastes, and perspectives of the parties hosting it. Much of what the Internet contains has an extremely short shelf-life when compared to the rest of history.

yeah that's cause the stuff you see is the stuff that survived. Most artifact are lost or destroyed.

For many of us, perhaps for most of us, much of what we post will be more or less hidden in obscurity until it finally disappears forever. And, very likely our most profound insights will have the briefest endurance in a society that seems to value only small ideas, easily digested

But the consequences of having your stuff be visible can be great and there is no guarantee it will vanish on its own in any reasonable time frame. Mirror repositories can index content long after it has been deleted by the original owner.

This person vastly underestimates how permanent the internet is.
Transfer them to the United States and simply ban European members?
Oh shit…

I use Gmail (personally and professionally) and these are some strong words - I don’t hate it but I certainly don’t like and cannot fathom what would make me suddenly appreciate it.
If you’re unsure whether to take this jab, you may want to listen to ex VP and ex Chef Science Office of Pfizer who clearly warns against taking this injection: https://rumble.com/vg4inv-michael-yeadon-full-interview-plan...
Happy customer as well. I also like the peace of mind if I find myself in a situation where I need to provide an email to use a service and expect some spam later knowing that I can screen them out and never see them again. No trackers or anything.
Anecdotally, since taking vitamin D3 supplements I haven't been getting colds. Added daily nutritional zinc supplements in 2020 as soon as they were available after I heard the anecdotal evidence D & zinc are effective in Covid prevention. Throughout winter and early spring last year you couldn't get zinc supplements for love or money.

A lot of anecdotes there :).

The American medical establishment has a long history of not getting behind nutritional disease prevention. Some of it is for good reason, but I think there is also a systemic bias.
Yup, all cloud (well, all rental) business relies on rented resources to not be 100% utilised. Oversubscription is how they can offer prices cheaper than buying the resource yourself.
Show HN: JMS with Apache Pulsar
You know, even if you're right we still see much more issues in iOS. For example, a simple Xcode minor upgrade can randomly break some flows.

> - Perfectly working code that needs to be rewritten just because

This issue is much more frequently on iOS than Android, since iOS deprecates features much faster and there is no compatibility layer between versions.
The original requirements should be addressed. The thing being matched is not just select, but actually any one of a set of symbols that appear in K.

We can stick that data into the pattern matching syntax using the or operator:

3> (rewrite-case x '(foo bar * select * fox where * bravo)
((@(or select distinct partition from where
group having order limit) * . @rest) ^(,(car x) _ . ,rest))
(@else else))
(foo bar * select _ fox where _ bravo)

Or put it into a variable:

4> (defvarl K '(select distinct partition from where group having order limit))
K
5> (rewrite-case x '(foo bar * select * fox where * bravo)
((@(member @sym K) * . @rest) ^(,sym _ . ,rest))
(@else else))
(foo bar * select _ fox where _ bravo)

"If an object sym which is a member of K is followed by * and some remaining material, replace that by sym, underscore and that remaining material."

Hash table:

6> (set K (hash-list '(select distinct partition from where group having order limit)))
#H(() (select select) (where where) (limit limit) (order order)
(having having) (distinct distinct) (partition partition) (group group)
(from from))
7> (rewrite-case x '(foo bar * select * fox where * bravo)
((@[K @sym] * . @rest) ^(,sym _ . ,rest))
(@else else))
(foo bar * select _ fox where _ bravo)

This code golfs moderately well: https://news.ycombinator.com/item?id=27227276
> It could very well be a Fungus that likely causes a zombie apocalypse

This is the plot of The Last of Us.
It depends on your definitions. A lot of people would object to defining urban as encompassing having to drive anywhere except to connect to immediate neighbors. I can basically go to my two immediate neighbors. Otherwise I have to get in a car. Is that urban?
it is easy. google indexes almost everything posted on reddit. use site:reddit.com

Google index works better than you think . YOu just have to remember the sub and a few keywords.

You can narrow google search by sub too
I commit the mistake of doing SPA,

ONCE.

But happily revert back. I have a single build.sh script with the proper build steps (them are so simply that make or other thing is excessive).

So, if you already know how do thing step by step, just do that!
C programmers prefer control to "optimization". And if you assume UB cannot occur, you should not generate code that makes it happen.
Radical UB is not required for optimization: in fact it appears to mostly do nothing positive. There is not a single paper or study showing significant better performance for substantial C code that depends on assuming UB can't happen - just a bunch of hand waving.
Having things at the county level that are currently state functions will break a lot of cities, like Atlanta, which are divided into several counties and leads to issues when it comes to regional planning or transit. I think that we should instead remove the city government from having undue influence on the wider region. Beverly hills managed to stall the LA county purple line subway extension for nearly 25 years, and now the costs to do work planned several generations of planners ago are enormous.
This reminds me of the Hairy Ball Theorem: https://en.wikipedia.org/wiki/Hairy_ball_theorem
How about adding third-party analytics integrations that compromise your visitors, tracks them around the web, and fail to protect that data properly as the analytics company gets acquired by another entity?

Stop saving PII for profit/exploitation reasons and you're in the clear.
Providing a Powerful Digital Experience with Branded Content
Heads up The cardiovascular secrets of giraffes
Peering Automation at Facebook
“Since most peering networks already maintain their PeeringDB records as a source of truth for other networks to consume, we see PeeringDB’s OAuth service as an opportunity to standardize a peering management authentication method.”
The Hairy Ball Theorem
> In reality, young people must always take care of the elderly.

this in and of itself is not a problem in my opinion. The problem is the financial and economic allocation is not going to those in need in society, but those who have amassed massive amount of wealth and use it to create massive hoards of wealth, with a govermental system that makes them to big to fail.

Having massive wealth changes the rules of the game completely. You can legaly dodge taxes if you are wealthy, which creates even more wealth.

People seem to think the labour market and capitalism is like chess, in which makes the right choices can lead to a wealthy life, but for the vast majority this is not the case. Most people are stuck playing poker with very bad bets instead.
Twitter reopens its verification process for first time since 2017
The deadliness of a virus doesn't assist its spread. The deadliness doesn't make it more or less successful, everything else being equal, but usually dead hosts are hosts that don't continue to spread the virus, so things aren't equal. In most cases deadliness in viruses is selected out precisely in order to increase their spread.
If the link bellow is accurate then the penalty for being offline is 4 times the base reward.

https://consensys.net/blog/codefi/rewards-and-penalties-on-e...

For someone who is staking 32 ETH on a faulty RPi how big the reward would be? I'm too dumb to figure out the reward value.
It's gotten much much better in the modern times. Android 2.x would break your app in many spectacular ways, but Google has been steadily adding more coverage to its "compliance test suite" that a device must pass to be eligible for Play Services preinstall. On 4.x, there were some Chinese phones, like Xiaomi and Meizu, that meddled with notifications, action bars and list views, sometimes to the point of making your app crash, and I do remember having to work around them. But if you support Android 6.0+, like many new apps do these days, you don't have to worry much about device compatibility.
The library of retro games on Switch Online is laughably small and is one of my biggest gripe with the Switch compared to the Wii (U).
protip: shower once a month to train your immune system during lockdown
So what optimizations do you mean with "these UB optimizations" then? And would it change your mind to see a benchmark proving the usefulness of that particular UB optimization?
> if you start with the basis that the government will force private companies to take on customers that can't pay for service,

EMTALA already does this and I don’t see a push on the right to repeal EMTALA. Universal healthcare is a more efficient model of what is already happening.
I compromised with a similar keyboard without an F-row.

I configured it so pressing 1 and Q together¹ sends F1. I use this far more often than Fn+1, since I can do 1Q singlehanded/singlefingered.

¹ Actually 1 and ", because Dvorak.
you really had that list ready to go...
The current definition of what is urban vs rural is very shaky. I don't think when theses numbers are brought up there is an understanding of what counted as rural then and what counts as rural now.
Unfortunately, a few of my friends fell victim to the Qanon conspiracy bandwagon and the fact that mask pore size is wider than the virus was heavily circulated as a reason for mask ineffectiveness.
>taking a positivist [...] approach to video games.

As a member of the Positivist school of video game philosophy, I think that the only valid statements about videogames are those that can be reduced to empirical fact.
But then they still insist on removing the headphone jacks because "wireless is better".
That might work, I'm interested in this one specifically because in the article that was added, the person reviewing it said it made them feel tipsy-drunk, but never more than that, which sounds absolutely ideal for me.

I do wonder how much is due to the claimed GABA uptake enhancement from the ingredients and how much of that would be attributed to placebo though.
I think there is a fundemental misattribution where the author talks about monolingual speakers.

Speaking to non-native speakers in a language is a seperate skill that can be learned without proficiency in a second language. It takes skill and care to keep your sentence structure simple and independent of semantic nuance or idiom.

People for whom English is a lingua franca have almost exclusively used English to speak to other non-native speakers and have lots of practice doing this.
There was a contract between the US and EU that was supposed to address this: https://en.wikipedia.org/wiki/EU%E2%80%93US_Privacy_Shield

As described in the Wikipedia article, the contract has been thrown out by the European Court of Justice for exactly the reasons stated by the parent comment.

> [Standard contractual clauses] do not necessarily protect data in countries where the law is fundamentally incompatible with the Charter of Fundamental Rights of the EU and the GDPR, like the US.
Svg is typically a lot more complicated than coordinate points... https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Pa...
Ah I dont anyone who moved to law from tech. Sorry I wish I could help!
> Many jets are thin and bright all along their length. “How does it shine? How do we see it?” Chen wonders.

It looks like nobody knows for sure.
There's no agenda. I saw this article and thought it would be a good discussion topic for HN. I haven't read any anti-alcohol articles on HN in the past few months.
Masks work by trapping particles exhaled or inhaled.
More than slightly convoluted. The obvious intention is that the compiler ignores overflow and lets the processor architecture make the decision. Assuming that overflow doesn't happen is assuming something false. There's no excuse for that and it doesn't "optimize" anything.
Realization that somebody's droplets are getting into your mouth and nose makes one want to wear mask even after pandemic is over :)
Genuine question: what's wrong with banning plastic straws?

Edit: I know that paper straws are a pain to drink through, my question was more: why is banning plastic straws an example of "faith-based science denialism"?
> 4. Safety: Idaho allows forests to be managed to prevent destruction of housing from huge wildfires.

I just spent a month in central Oregon and there were proscribed burns going on all over the place. It was the most forest management I've seen in any state.
>No one has any incentive to care about the price of healthcare, currently

That's a problem that can be fixed without making the government the sole customer: Make people pay for their own healthcare.

>Not the suppliers, not the providers, not the insurers

That's simply not true. They all have profit motive.

>And the consumers simply have no choice.

That's only true in emergency medicine, which is the minority of care most people receive.
Turing Tumble is so great.
Here's the manufacturer's (3M) label:

WARNING: This respirator helps protect against certain particulate
contaminants but does not eliminate exposure to or the risk of contracting
any disease or infection. Misuse may result in sickness or death. For
proper use, see supervisor, or User Instructions.

https://multimedia.3m.com/mws/media/1837275O/3m-9132-healthc...
PyCon 2021 Notes
You could get halfway with other solutions. The 3-layer design with the synthetic layer in the middle tries to achieve the same idea. It's not going to be as effective as a certified N95, but it's better than a simple cloth. Not sure how common the idea was globally, but it was quite common to make them in Australia.
> I wonder whether there's any actual examples of the values being brought back from a point where they have disappeared.

I'm sorry, I don't quite understand what you're saying here. Are you asking about examples of people that have been de-radicalized?
In what way is that a "very small" network?

In fact, given how small London is that's a huge network.
The Kinesis Freestyle Pro is mechanical, and otherwise (I think) identical to the Freestyle 2.

https://kinesis-ergo.com/shop/freestyle-pro/
> The move comes on the heels of Israel’s deadly bombing campaign in Gaza...

Of course some 100+ rockets were also launched indiscriminately against Israeli civilians. That apparently is no concern for the Apple Muslim Association.

Condemning violence is one thing. Ignoring violence by one side while condemning violence from the other is something different.

> That Apple DOES NOT make any statement referring to “both sides” or similar...

Basically they support the attacks on Israel and make some thinly veiled attempts at masking this.
> It would be nice for compilers to have an option to automatically introduce assetions whenever they rely on some UB-derived axiom

Modifying a value from a different thread without synchronization is UB. The compiler assumes this does not happen in order to e.g. move things into registers. Could you elaborate how (and how often) you would like to have this kind of UB-derived axiom ("this value remains the same from here to there") checked with assertions?
Most species have social behavior and live in groups, to different degrees. Individuals in a society and cells in an organism are also analogous.

So while you're right to call them acting like cells in organism, I'm uncertain what "than individual animals" would mean.
I miss simpler, human readable, conversational APIs like the IRC protocol.
It's Google Glass 2.0
AWS announces IoT partnership with farming solutions provider Yara
Like in Metal Gear Solid!
>I was suggesting that the government offer enhanced unemployment benefits one year out of ten.

For everyone? At the same time? How would society function when half the people decide to leave?
Ok understood
> I don't know why she took down her blog. I hope
> it was not because she decided to embrace the
> drab adulthood she feared in her teens.

I think the author is projecting, and also baselessly attacking the simple, rich, meaningful lives so many people naturally grow into. At this stage in my life, I find more meaning in "doing" the dishes or knocking back a cold one with other dads at soccer practice, than I do writing a "meaningful" blog post as if I'm some big important nabob like NNT.
As a developer you should specify exactly what you’re doing.
The entitlements plists should be waaay more strict.

And, I want Apple to enforce a stricter policy on certain capabilities.

Different levels of developers, where they will actually be fined, delisted and reimburse customers if they don’t obey the rules.

There is no need to access so many things. Heck, you can do so much in a browser these days.

Don’t touch my stuff, or go to Apple jail. Simple.

No need to monitor key keystrokes. No need to secretly read my contacts. No need to access full folders. If you need that, I’ll give it to you manually.
I also don't see a push from republicans to repeal social security. That doesn't mean it isn't a socialist policy.
Firecudas are terrible for Chia. TBW doesn't matter as much as people think. Some of the lower TBW SSDs will outlast the higher TBW ones (again, Firecuda is an example of the latter).

The standard plot size uses 1.2TB of writes.

You won't wear out your SSD in a few weeks with Chia...you just won't. If you use a 120GB one, maybe...but no-one is doing this.
I don't know the exact breakdown, but the Ford F-150 is a very popular truck and the government buys a huge number of Fords, along with Dodge and Chevrolet. You can buy them at auction when the government is done with them. https://gsaauctions.gov/gsaauctions/aucitsrh/
As a former Glass user, agreed on the need for FOV. While amazing, current AR doesn't feel like "augmented reality", it feels like "tiny transparent phone screen in your eye".
GPS nav hasn't improved much since the 90s, but smartphone nav relying on multiple positioning methods has improved remarkably in even the past 5-6 years. It used to be neither a dedicated GPS device nor a smartphone could handle dense urban areas (where buildings cause satellite interference) if you were moving much faster than a pedestrian.
Where/How do you hang out?
Japanese author of famed 'Berserk' manga dies
Yeah, this right here. Masks efficacy for stopping viral transmission has been heavily studied. I could post literally hundreds more examples of statistically significant, RCT'd science showing they have no effect on viral transmission.

Wearing masks has never been about the science.