skysight-inc/HackerNews huggingface dataset:
> then I know to convert the loop counter to unsigned, which it ought to be anyway

See below.

> Every time a pointer is dereferenced and the compiler uses that fact to cause some other statement to have no effect?

No, every time any logic in the compiler does any UB-based inference. And that's essentially always. For example, you can't reorder variables unless you assume the abstract machine semantics and memory model. You can't elide repeated loads either. And eliding reloads is a very simple case of some expression having no effect.

More generally, for every compiler optimization I can tell you a UB source that breaks that optimization (i.e. a UB-backed guarantee of the standard that the compiler has to rely on). So should we not do any compiler optimizations at all? That's freely available to you in every compiler.

> That's an argument for why it shouldn't be two's complement, not for why it has to be fully undefined behavior.

Sorry, I don't understand your point. Why should integers not be two's complement? How would that help?

> If you're going to make signed integers never overflow when used as a loop counter, what's wrong with documenting that and offering a warning in -Wall or -Wextra when it happens?

What do you mean "when it happens"? The compiler can't in general determine at compile-time whether a loop counter will overflow. Are you suggesting all loops with signed counter should produce a warning because everyone should be using unsigned loops? If you want slow-but-safe-by-default language then you are simply at the wrong address with C++.

> If you're removing code the programmer wrote...

That's essentially the compiler's whole point. Cut through all the abstraction and generate efficient machine code. Yes, I want that three-iteration loop unrolled, I don't actually intend to perform 3 increments and 4 comparisons (and special overflow handling) in machine code. Yes, I want all those container access functions (full of unspoken range assumptions) or recursive variadic templates (full of unconditionally-false-once-expanded ifs) inlined and not appearing at all in the assembly. Try running a no-optimizations build of any larger piece of C++ software and see what I mean.

> ...or making conditional statements unconditional because it can only happen in the presence of UB that's a huge red flag that there is a bug in that program and the compiler should not be silent about it.

You're thinking of trivial situations where the compiler could reasonably guess that relying on UB causes an unwanted optimization. But you can't build a compiler around only the nice and happy cases - what if that situation occurs 4 levels deep in some template code where 3 other functions were already inlined and the compiler can see that in that specific case some condition cannot be true without UB. Would you like a warning about every such case?

It's just not the compiler's job to second-guess your code. There are tools (specifically linters) that are built to detect these easy cases you're thinking of and help you find these bugs (but they won't help you with bugs in the hard cases either).
http://archive.is/xMFni
Exactly, conservatives try to paint Seattle as hell because they have to deal with people throwing coffee... They really don't want to see poor people on the streets, that's all. And the police exists to fight real crimes, not the imagined crimes that conservatives fear everyday: walking the streets while being poor.
> the coanda (Bernoulli) effect

Those are two different effects.
Hmm, I don't know how I feel about this. I tend to find that with most content creators I watch, the sponsors they pick for their videos tend to be more relevant to their audience than standard pre/midroll ads might be. I'm okay with supporting their channel typically with a sponsorship.
My house has windows on every side for similar reasons, but it's back firing big time. I have to keep them closed at all time because of noise, and they let the sun in, requiring even more A/C. We have blackout/insulating shades, but it's still not as good as straight up walls.

So millage will vary.

Similarly with light, in winter by the time I get home its pitch black either way, so it wouldn't change a whole lot. And in summer the light from the windows doesn't play well with TV/monitors/etc.

Cats like the windows a lot though.
"Improved thermal conductivity and dielectric properties of hBN/PTFE
composites via surface treatment by silane coupling agent" has a good discussion you might read if you were interested in learning more, there are a number of good citations in that paper, the most useful might be "Dielectric properties of surface treated multi-walled carbon nanotube/epoxy thin film composites"
Thank you for reminding me to double check, it turns out I only have 1.6 gigs left. (And 25 or so on internal storage)

I think I only have a 128 gig in here now that I'm counting. (The menu only tells you free space, not capacity) I have 31 "games" installed, where NES, Genesis, Spyro, Crash, Hotline Miami, and Contra collections each count as 1.

The top three are Spyro, (which isn't even out yet) Smash, and Zelda, which are 14.8 to 15 gigs. I could get rid of Zelda and not really notice tbh.

Next biggest is Doom 3 at 8.8, then a bunch of 6.x games. 16 of them are 1.1 or smaller.

So not quite as dire as you're making it out to be, but in fairness my tastes skew more indie and retro than the average.
The internal codebase at Google is organized like a bazaar.
> because customer experience isn’t a KPI and so won’t get them promoted?

In a way, I think you may be on to something. At least indirectly.

Amazon are constantly pushing the narrative that they are obsessively customer-focused and constantly thinking about long term. I have my reasons to believe this might have been true at one time, but now is mostly about optics.

Having interviewed at the company a few years back, there sure was no long-term thinking about anything they internally advocate for potential new hires.[ß] To be honest, I was only exposed to one segment of their business, but I still find it hard to believe that kind of culture would be limited to a single part.

ß: an extreme example: one of their more senior managers explained to me that a 1-year old team is already too old and ready to be disbanded. Knowing, from personal experience, that it can take two years to build a well-functioning team - that was a massive red flag.
You mean, bury. If you bury a corpse, without embalming it and doing funny things to it, it rots like everything else.
I've concluded the opposite- you have to tolerate even people who want to kill you. While simultaneously preparing for and preventing war.

This is sort of the lesson of Europe from the 30 years war to doay.
I can write FizzBuzz, but otherwise I found it to be something that you usually use a rarely used operator (in my field, webdev) for.

Either you:

1. Use modulo 2

2. Bitwise AND with 1

3. Divide as x and check if floor(x) == x

4. Swap variables

And probably there are other ways as well. I have just disproven myself I think.
Accessibility and empowerment are important to liberal society. The fact is that there is high demand for motor vehicles even in large municipalities for children/families, the disabled, the elderly, or anyone moving large packages. This is a plurality of the populace, even in urban centers. Banning cars in favor of public transit will greatly reduce their mobility and their voice in society. Electric cars are a great way of serving this demand with a much smaller local and global environmental impact. The fact that the wealthy also enjoy the comfort of private vehicles doesn't make them immoral.

Certainly we can use fewer, greener parking lots. Certainly we can use better public transport. Certainly the _majority_ of transit in Asian and European metros is public, and should be in America. But a plurality of transit even in the densest hubs is private. There are plenty of cars, and there is plenty of real need for them.

Condemning cars is reductionist and elitist, and at the risk of an ad-hominem attack, usually advocated by those who can afford expensive taxis when they need them, and don't often need them since they are young and single.

Maybe the dynamics will change with self-driving vehicles whose hiring will be more economical than ownership. But that is so far not a practical short- or medium-term reality.
In that case, "I'm downvoting you because you're wrong" could be condensed to "you're wrong."
What else is the data being sold for besides advertising?
You Colluded with Russia, Want to Buy Greenland and I'm the Ignorant Traitor?
The East India Company analogy doesn't fit. Google doesn't have a private army to subjugate the countries it trades with. Gandhi working at some other company might be a better fit, but even that isn't a good analogy. A lot of these people don't see themselves as Gandhis, Kings, Mandelas, etc. but only as their followers, who did have regular day jobs.
If you don't trust it you can use it in a VM without network access, or something like Qubes (essentially the same). Personally, I use Opensnitch (a personal firewall like Little Snitch) on Kali Linux, but it isn't foolproof.
Solving community problems come with community sacrifices. I'm a big proponent of housing first, drug rehab second. It is exponentially harder to get clean without housing and a support network. Decriminalizing drug addiction is a good step in that direction IMO. I think another side of this coin though is we need to bring back institutionalization of mental health care. Implemented today it would be vastly different from the 80's and before because our understanding of therapy has gone from stirring up and injecting memories into people to cognitive behavioral therapy which is very much a feel good form of therapy. I question your statement about the guy on the 1-5 ramp attempting to throw small women off the overpass. How is attempted defined here? Does he grab them? If so he would definitely be arrested for battery charges. I get the impression he is probably chasing them and saying he is going to do it. That seems like a legitimate reason to get someone mental health help but not a legitimate reason to incarcerate someone. As long as we have this gaping hole in our system that just ignores mental health problems or tries to categorize them as criminal we will continue to have this problem.

Source on housing first being effective: https://ajph.aphapublications.org/doi/full/10.2105/AJPH.94.4...
... or fleeing to suburbs...
I know what types of sturgeon caviar's you're discussing. The types of dishes I'm thinking of would often be using caviar as an ingredient.

Even with the high salt content, if you're using caviar as part of a larger dish you can adjust things out. Nobody would eat an entire cup of salted anchovies by themselves, but if used as part of a soup that could neutralize the flavor, they might.
Those topics are also the most likely to devolve into hostile confrontations because they are emotionally loaded and highly complex. No one person is going to be able to devise a solution to the major problems in those domains, let alone be able to hold that solution in their head and effectively argue it. This is why we have vastly complicated social and political structures for dealing with these things. It all has to be broken down into the simplest possible parts and handled in a case by case manner by whole institutions of people in order for us to even have a hope of approximating a correct solution.
Nice to see Valve acknowledge their mistake and try to make good.
Do you need statistics to tell you that it's wrong to not prosecute violent repeat offenders?
> ie, the people who can't handle politics and think the worlds constantly on fire so they think they're justified in ignoring social grace and time/place taboos.

That is likely correct but it doesn't change the fact that as an organization grows the chance to have such people in their midst grows and it's enough to have a few of these that culture shift will be required to deal with it.

That is, you can't really fire someone for "starting threads about politics at work"[1] until you come up with a rule that bars such discussions.

[1] Which of course will be portrayed by those fired as "silencing <social issue they care about>" but having published rules enforced equally usually should provide sufficient protection in court against such claims.
I fully support legalizing all drugs, but don't understand why the latest wave of criminal justice reform tolerates property crimes. Crimes like smash and grabs, purse snatching, bike thefts, vandalism, littering, and shoplifting clearly have defined victims and lower the quality of life for everyone.

It's perfectly possible to be a heroin addict and an upstanding citizen at the same time. The same cannot be said of a bike thief. The vast majority of even hardcore homeless drug addicts do not engage in malicious property crimes. It's only a small fraction, that also tends to be the most violent and socially pathological.

Vigorous enforcement of property crime improves the life for everyone in the city. Doubly so for the otherwise law-abiding drug users, who most often bear the worse brunt of the anti-social property criminals. The best way to sell drug policy reform to law and order conservatives is to redirect those resources to non-victimless crimes. Not just throw your hands up in the air and give up on enforcing any laws whatsoever.
Related to trigraphs are the alternative logical operator keywords like `and` and `or`. I'm surprised people don't use them more often because they're nicer to read than && and ||. In C, you must #include <iso646.h> but I think they're standard keywords.

C++ code example on Godbolt: https://godbolt.org/z/ED6tXK

https://en.cppreference.com/w/cpp/language/operator_alternat...
I am from Brazil, my SO family is from the Amazon.

A lot of this situation is rather complicated, but I will try to write a little of what I know.

1. This is dry season, and fires are common, not just human-started ones, natural fires are common too, fires do have a role in the ecosystem.

2. A lot of the alarm raised by the media is more due to the hate on the president than for good reasons, for example people are using as number of the "increase of fires" comparisons between 2019 and 2013, but 2013 was a year where the amount of fires was particularly low, there was some recent years where the number of fires were just a little behind the current number, and the current number is still waaaaay smaller than what it was some decades ago.

3. It is illegal to clear land using fire in Brazil, usually the ones doing it are tiny farmers that don't have resources to clear land the correct way, or megacorporations that don't care (Cargill is a common culprit, not saying they are the ones at fault this time, but often they are).

4. Brazillian laws are kinda loopsided in ways that incentive people to do some weird stuff, for example brazillian environment laws are MUCH, MUCH harsher than other laws, this actually decreases compliance, because getting caught is so dangerous compared to some other crimes, that doing other crimes to not get caught is incentivized, there was a infamous case of a mayor of a town that just outright murdered cops because the punishment for murder was smaller than the punishment he would get if the cops managed to get to his property and investigate it.
I'm not a statistical expert. Can someone who is comment on how the population selection exclusions described below may or may not effect the results?

> This evaluation included 318 adults who were suspected of recent violations of the uniform controlled substances act (VUCSA) and/or prostitution offenses and were deemed eligible for LEAD by arresting officers. Individuals were ineligible for participation if any of the following exclusion criteria applied: a) the amount of drugs involved exceeded 3 g (all drug classes were eligible); b) the suspected drug activity involved delivery or possession with intent to deliver and there was reason to believe the suspect was dealing for profit above a subsistence income; c) the individual did not appear amenable to diversion; d) the individual appeared to exploit minors or others in a drug dealing enterprise; e) the individual was suspected of promoting prostitution; f) the individual had a disqualifying criminal history (i.e.,conviction for murder 1 or 2, arson 1 or 2, robbery 1, assault 1,kidnapping, Violation of the Uniform Firearms Act 1, sex offense, or attempt of any of these crimes); g) within the past 10 years, the individual was convicted on a domestic violence offense, robbery 2,assault 2 or 3, burglary 1 or 2, or Violation of the Uniform Firearms Act2;or h) the individual was already involved in King County Drug Diversion Court or Mental Health Court.

Source: https://docs.wixstatic.com/ugd/6f124f_f4eed992eaff402f88ddb4...

From a layman's perspective, my question is would the exclusions shown above favor inclusion of people less likely of recidivism?
It's certainly not just Seattle either, the large-scale homeless/junky situation describes basically every west coast city.

There's obviously a much deeper problem.
"It's better now than it was during the worst crime wave in American history -- the 1980s."

You're not wrong, but you're also not setting a very high bar.

I think it's important that cities be safe, livable places. Seattle still is, for the most part. But ask some of your younger, single female friends where they will and will not go at night, and you may be surprised that it includes a large number of neighborhoods.
Taking a picture of a tent is not doxing. They could've even used the tent platform in the playground at gasworks with their own tent but they could not be bothered to lift a finger :c
TS Kelso at AGI put out an interesting white paper with more details: https://www.agi.com/resources/white-papers/analysis-of-the-i...

Kelso is also the brains behind CelesTrak for debris tracking: https://www.celestrak.com

There are also a number of videos on YouTube of the collision profile, made using AGI's Systems Toolkit: https://www.youtube.com/watch?v=7oRC9dHKI9Y
There is still the possibility that border agents could implant devices with a persistent backdoor. Especially if the devices are taken out of your sight during the checks
I'd love to be on the grants committee when someone requests funding to set up a shower in their lab.

The thing that makes this more interesting is that if you have a large shower (eg a wheelchair wetroom) then the shower curtain behaves differently depending on where you are inside it. Try walking up and down your bathtub next time you have a shower.
It has been done before. See the physics winner for 2001: https://improbable.com/ig/ig-pastwinners.html
There's no video (that I know of) but Sourcehut has put up a website with a set of steps/instructions for email based pull requests:

https://git-send-email.io/
Yes, and at certain points how you refer to a person is political because they are trans, what do you do then? What is the sensitive, non-harmful way to refer to a trans woman as a male? What is the sensitive, non-harmful way to refer to a trans woman as a woman (if you believe referring to trans women being seen as women is a hateful thing)?

Similarly, what happens if you believe espousing homosexuality as normal is hateful? What is the sensitive, non-harmful manner to ask your co worker to never bring up his husband, ever, in the workplace?

I'm not asking meanly, I genuinely don't understand.
can actual dehumidifier be used as a more environmentally friendly solution?
It does not silence anyone, it just means that their speech needs to take place outside the workplace.

In my experience, most people who complain that curbing political discussion in the workplace amounts to silencing them have views that are well in line with the status quo at the company.
>This isn’t the first time that Google has used disingenuous arguments to suggest that a privacy protection will backfire. We’re calling this move privacy gaslighting, because it’s an attempt to persuade users and policymakers that an obvious privacy protection—already adopted by Google’s competitors—isn’t actually a privacy protection.

Exactly. Firefox and Safari have both implemented and keep improving the type of fingerprint protection that Google is throwing their hands in the air about.

This summary is a thorough response, pointing out just how ridiculous and meritless the original post[1] from Google was.

[1] https://www.blog.google/products/chrome/building-a-more-priv...
These articles are useless without knowing what the actual content of the post was.

It sounds like a colleague turned over a post that was on her facebook and the company responded to that. They didn't go seek out the posting to remove her. That's like complaining about being fired because a coworker reported you for sexually harassing them in text messages at home.

Not defending China or Cathay; more than likely they have negative and self-interested political motive. I'm just saying, we can't judge either side without all the details.
What's more important to talk about than your immortal soul? The problem is when I think those not saved by Jesus will burn for eternity and you think religious people are the bane of advanced civilization, and there's no way to reconcile these views, this is a problem. It doesn't matter how fervently you or I hold our beliefs, discussing them is only going to lead to discord.

Does this mean you and I cannot work together towards shared goals? I don't believe it does! We can each hold very strong and opposing views on some things, but if we both agree that e.g. we want our rivers to be cleaner, why shouldn't we work together on a river cleanup?

Forcing divisive discussions in every context makes collaboration on those goals you do share difficult or impossible. There are very good reasons to compartmentalize political/religious feelings (and the two don't seem that different these days).
Star trackers, please.
What SLAM algorithm do they use to achieve such high accuracy?
Remember, man, thou art dust, and to dust you shall return.
Functional Programming in Bash
Ok, now go re-read Google's official response.

Note that they did not respond to "we should not assume that it is evidence of discrimination, and that policies designed to engineer an outcome closer to 50/50 are likely creating discrimination"
lol the passed out addicts I pass every day, the piles of needles, the shit, the broken car windows, and the constant sound of either police or ambulance sirens would beg to differ.
I thought there was a glut of sockeye a year or two ago? I remember seeing it everywhere.
PanModal: Better support for thumb accessibility on Slack mobile
Can anyone suggest a hobbyist/entry-level 3D scanner? I have a 3D printer that I would love to replicate or modify some real-world objects on.
I think this is very telling, as a symptom of a diseased democracy.

People wouldn't take their fight to these environments if democracy was working, because they'd have faith in the due processes of government. But once they start thinking things aren't working, they'll go to their next seats of power. In this case it's the workplace where they can influence their coworkers and the policy of a big tech corporation.

These people are not a majority so democracy isn't fully broken yet, but the cracks are showing.
*Creaform technologies start at $35K.
Ask HN: Are any of you working on Cicada 3301?
Since this has become a recent hot topic again I was wondering if any HN people are actively working on this?

Or could it be that any of you worked on this but quit, or recently started?
The practical solution (which is what i do) is to flag a submission if the article cannot be read.
The result will be that the article will be flagged (unless enough HNers pay for that website's subscription so it is ok for it to be shared)
Dealing with Platform Inconsistencies as a North Korean Front-End Developer