skysight-inc/HackerNews huggingface dataset:
I have a question about LEB128. I use a similar format in my code, but with two changes:

1. It's big endian.

2. The "last byte" bit is inverted (so it's 00001 instead of 11110).

I changed the last byte flag so that it is easy to count the number of values in an array - you just do this:

let mut count = 0;
for byte in bytes {
count += byte >> 7;
}

And the reason I used big endian is because it makes decoding simpler. Encoding is more difficult but data is only ever encoded once, and is commonly decoded multiple times.

let mut value = 0;
for byte in bytes {
value = (value << 7) | (byte & 0x7F);
if value & 0x80 != 0 {
return value;
}
}

Vs the original implementation which has do to this basically:

let mut value = 0;
let mut shift = 0;
for byte in bytes {
value |= (byte & 0x7F) << shift;
if value & 0x80 != 0 {
return value;
}
}

Here is the generated assembly in both cases: https://godbolt.org/z/6FbX_E

No idea if it would be faster than the new code but surely it is faster than the old code?
I think the other thing to note is that you aren't really making an engine just making the game. You might have some reused bits culled from one game to the next but that's not really "an engine" so to speak.
I'm going to add "poka-yoke" to the list of things that I make students commit to memory in my law school contract-drafting course; it'll be a synonym for "R.O.O.F" — Root Out Opportunities for [Foul]-ups.

(This is another example of how legal-contract drafters can learn from the software world, including concepts such as, for example, orthogonality; modularity; R.O.O.F.; D.R.Y. [Don't Repeat Yourself]; graceful failure; and the benefit of sometimes explaining why things are done the way they are, to help future readers understand.)
Yes, but the inverse is a polymorphic decision loop operated by committee, which is just another way of describing a bureaucracy. And as bureaucratic complexity increases (via self-modifying policies and processes), the structure naturally tends toward greater inefficiency, which eventually results in stasis and decision failure, even though the engine of the bureaucracy just keeps chugging along. And of course with large bureaucracies, it's extremely difficult or impossible to gather enough insight and accountability to identify when a bureaucracy's inefficiencies have made some or all of the bureaucracy untenable, because that requires some unilateral force(s) powerful enough to pierce the many various veils of the bureaucracy's components to understand the sum total of its parts and adjudicate on a calculus of its inefficiencies... Which the bureaucracy was built to circumvent to begin with. In the end, bureaucracies can be at least as insane and deadly as any psychopath warlord kings with little fiefdoms raiding their neighbors.

Such is the nature of our existence that we will grapple with this delicate balancing act as long as there are humans, and along the way there will be tragedies that seemed avoidable in hindsight, but which were extremely difficult to stop and essentially impossible to predict. And in the aftermath of each, of course, various interested parties will spin the tragedy into attacks on political opponents and outsiders, with the victors taking home the prize of being able to choose the next form of grift to impose on the lucky survivors: "This time, it will be different..."
Browser should not be an arbiter of it wanting to access camera/microphone/bluetooth/gpu/etc. Browser should only be able to ask host and it should be hosts' job to allow/deny access based on a policy, asking a user, time of day, etc.
It doesn't have to be a bad thing. Thinking of how close I became to someone for no reason other than empathy makes me feel pretty good.
Understanding the concept of “eudaimonia”, discussed in this work, is something that has genuinely improved my life.
Does there need to be a control group? Can we not detect if the vaccine is working or not without one?
This seems to be good advice for anyone with not-top-quartile luck, not only bad luck.
Most economists say we should listen to health professionals and not re-open to early. And that if we do re-open too early its likely to cause more long term damage to the economy

http://www.igmchicago.org/surveys/policy-for-the-covid-19-cr...
Why are you bringing down the RDS stack to make cloudformation udpates? Can you share an example of something that makes you need to do this over and over again?
Testing’s Ability to Contain Virus Overstated, Study Finds
From what I've heard they're roughly comparable, some projects will swing one way, some the other.

Rust has solid incremental compilation now though so you shouldn't be paying the price of a full rebuild often.
I only shave if I'm going down to the shops.
> The Ocado

Who are running a service to almost 0% of their normal customers right now
Perhaps co-incidentally, today (24th April) is the day of remembrance for the Armenian Genocide
If You’re a Remote Worker, You’re Going to Be Surveilled. A Lot.
I don't think they are going to infect people intentionally. They are giving the vaccine and control to healthcare workers who are naturally very likely to be exposed throughout he course of their work. They will then compare the infection rates between the two groups.
As an interesting anecdote, the non-prime thermometer I ordered yesterday already shipped. But of course, I actually paid shipping for it, which probably put me near the front of the queue.

My prime orders got badly delayed though.
That's so kind. Thank you. When people ask me what I do, 99% of the time, I have to pull out my phone and say "easier to show you then try to explain it".

Thanks for the kind words, glad you enjoyed it.
> The more challenging and complex your action is, the higher can be the satisfaction when you finally get a good result

But this assertion is just not true.
Simple actions can be very rewarding and give a lot of satisfaction.
And that's exactly what you can get in Animal Crossing.
>What does the library do? Throw an exception? Associate an arbitrary timezone (e.g. UTC)? Associate the local, current timezone?

Naive datetime is what datetime.utcnow() returns. UTC is essentially a "default" timezone. I've always thought it made most sense in a library to assume it's UTC.
Notably, "Similar to prior data, hypertension, obesity, and diabetes were the most common comorbidities."

State of health is clearly essential in this fight. And more actionable than magic bullets or vaccines.
ignoring the pandemic doesn't work

Allowing it to spread kill many more people and overwhelm our healthcare system would result in a worse economy in the medium term

http://www.igmchicago.org/surveys/policy-for-the-covid-19-cr...
Some Companies Seeking Bailouts Had Piles of Cash, Then Spent It
Hysterium – Windows Trojan LSD trip
I am missing that plan from SBB. Wish they could offer something like that here in the UK
I'm not sure if you are referring to me since I have commented on this topic a few times. But if it was (no biggie ;)) I never mentioned that sweden had negative difference. What I meant was that Sweden (and now Belgium) seems to be the only countries where the number of excess deaths match their COVID deaths, while most other countries have a big difference (excess deaths in Sweden: 1200, COVID deaths: 1150, other countries do excess deaths: 1200, COVID deaths: 450 (numbers are made up)). So I have difficulty to compare Sweden numbers to others because I don't believe the others (or in my case, Portugal's) numbers.

When I first read the NYT article, Belgium wasn't included, they added it later. The interesting thing is other countries say the non COVID excess deaths are people 'afraid' to go to the hospital or something like that, and the numbers are right/lockdown is right. But now with Belgium, that did pretty much the same measures as other countries, doesn't show the same results, so I'm even more sure the 'they died because they were afraid to go to the hospital' is bullshit
15-64 is a pretty wide age group covering everything from kids to senior citizens. I wonder why they havent divided it further into at least adolescent/adult and possibly +50
If SQLite sends writes to the disk you cannot use cloud run, as it does not have a persistent disk.
Now Virtual and in Video, Museum Websites Shake Off the Dust
On Magic The Gathering being Turing-complete, this is an interesting quote:

> Our result is also highly unusual in that all moves of both players are forced in the construction. This shows that even recognising who will win a game in which neither player has a non-trivial decision to make for the rest of the game is undecidable.

At first I thought this was pretty mind-blowing for a game, but actually this is directly comparable with a Turing machine; each step is forced, mechanical and very easy to derive, and yet, the overall behaviour is generally undecidable.
I had a quick search, but finding examples where the same project has been implemented in C++ and Rust with reported compile times seems to be rare...

There is a benchmark from way back in 2016 here: https://users.rust-lang.org/t/are-there-any-compilation-time...

Dev build was 2.91s for Rust vs 8.48s for C++, release build was 5.97s for Rust vs 9.79s for C++.

Would need to find much more recent examples for the comparison to be worthwhile.
Here's the information sheet - https://www.covid19vaccinetrial.co.uk/participate-trial-oxfo...

> If you participate in the study until the end, you will receive a total payment of between £190-625, dependent on group.

My housemate hoped to take part but was not selected.
Look, I have no horse in this race, but this is clearly a personal attack in the reply above. Regardless, on what basis are you disagreeing with someone's interpretation of life as having no meaning or lacking in depth?
It's not just the way this is phrased, it's that there is no English-language formulation that works at all. Swap "shirt" for "tie", because paisley is quite common on ties. Now, try:

* tie without paisley
* tie not paisley
* non-paisley ties
* ties that aren't paisley
* ties other than paisley

You guessed it, in each case, at least half of the results are paisley ties. The only way to actually get what you want -- the set described by X, minus the set described by Y -- is to use the exclusion operator in the search, "ties -paisley".

This is great, and makes intuitive sense to somebody with multiple computer science degrees. But not only is it hard to explain to an outsider, it's actually quite hard to get them to think in a way that accommodates this capability, that is, in terms of set theory.
I’ll take “performative” erudition over a lack of any erudition at all.
Apparently a controversial question considering the downvotes. PWAs are not AMP or some proprietary technology. https://en.wikipedia.org/wiki/Progressive_web_application

I don't see how it is a terrible idea that needs to be killed. Sounds like a technological regression if support were to be removed. It's not like you're not allowed to still build native apps so please make me understand this argument.
Researchers solve 'link discovery' problem for terahertz data networks
Regarding A Plague Tale, I used to work at Asobo Studio on the Engine/Tools team. That was during the Toy Story 3 / Disney Pixar Heroes period. The in-house engine is called Zouna and is very good. However, the piece of software that was the most interesting to me is their in house level editor called PAWAP (can't remember what the acronym meant) . It's a 20+ years old C++ codebase dating back to Kalisto (where most of the founders of Asobo used to work), of course modernised over time. I changed code that was written before C++98 was standardised! The Engine team is amazing there and it shows in the games.
Straw man - you're making an argument against a point I didn't make or even insinuate.

I didn't say organisations can or should ignore politics - of course, politics affect every organisation, especially those that work across borders.

My entire comment was about the childish behaviour of the WHO represenatative when asked about Taiwan[0] - he was literally one step away from putting his fingers in his ears and shouting "na na na na na!".

[0] https://www.youtube.com/watch?v=tCFPFWsIPmM
Genuinely curious - how did you know that it was a trans-national submarine cable? I mean, I would probably have dismissed it as a local fiber optic cable or something...
It was in fact punishable by death in Christian countries. In theory it's also still a sin in Islam. That's why most of the first bankers… were not Christians or Muslims if I can put it that way.
It’s entirely possible that they’ve literally bottomed out on the labor pool in some areas, what with the increase of risk to drivers and increased robustness in the social safety net.

It’s kind of hard to plan around the “what if we can’t get more workers” scenario.
Chrome extension to copy links to threads
I think what you mention is completely stopping infections, which is certainly a great goal - albeit a very costly one for many countries which started the right actions too late, too little.

Flattening the curve is only about spreading the same number of infections over time, so that at a given time, the health system is not overwhelmed. It will not reduce the number of infections, and will likely augment the number of survivors, who might have to deal with hard long term consequences.
HTTP: //buddysupplement.com/collagen-refresh-lemonade/
Collagen Refresh Lemonade
One instrument which you have to consistently have on Collagen Refresh Lemonade For Healthy skin your sustenance weapons store is actually a kitchen scale. People feel they are acceptable at eyeballing rate size, yet examines have demonstrated over and over that people are unpleasant at evaluating. This issue can be maintained a strategic distance from by A kitchen scale. Other than the remainder of the noteworthy perils, it causes you to seem more established and may bring about wrinkles. Blood dissemination into the external layers of the skin is diminished in smokers, which cuts off the wellspring of basic supplements, for example, nutrient and oxygen A. Moreover, smoking diminishes the skin's versatility making it progressively defenseless to hanging and stretching out from the articulations that are rehashed, made while smoking. Follow your shopping list undesirable bites and shoddy nourishments Collagen Refresh Lemonade Tributes won't entice you, at whatever point you're in the shop. Guarantee that your dinners are at present giving you.

http://buddysupplement.com/collagen-refresh-lemonade/

https://youtu.be/bH4oIsZ5rHE

https://twitter.com/annetteook/status/1252789264510787585

https://sites.google.com/site/specialoffer4health/collagen-refresh-lemonade-100-natural-price-uses-benefits

https://www.completefoods.co/diy/recipes/collagen-refresh-lemonade-2020-new-skine-buy-now

http://buddysuppleme.over-blog.com/2020/04/collagen-refresh-lemonade-reviews-free-trail-product-2020-benefits-buy-now.html

https://medium.com/@s04h/collagen-refresh-collagen-refresh-lemonade-get-here-official-supplement-beautiful-skine-2c9318aa8697
Large ambitions and a Social Anxiety Disorder. (Why I will become a CTO one day)
What I increasingly observe in europe, is the opposite: diverse gardens with different flowers, bushes and trees.

The sterile garden type still exists, but has gotten very uncommon. And I have seen lots of europe in the last years. So it is really cheap, to target garden owning people, when you have large areas with monoculture and insect poison everywhere.
I don’t mind that programs provide output that can be chained and so on, but what annoys me is when portable (cross platform) apps m, like e.g git, doesn’t provide core functionality without the assumption of a specific environment. It's fine to let the user sort the outputs using an external program. But if the sorting is so commonly required that it's a "core feature" then perhaps the program itself should do it.

Since most developers use windows, most windows users use cmd as their shell and git is the most common vcs around, it wouldn’t surprise me if the most common environment for git is ... Windows cmd. Where there is no sed/grep/awk etc!
You have to do your own math to compare the excess deaths for the period of week 13-15 (around a thousand extra deaths) and the reported covid-19 deaths (just over 500).

It's difficult to find any article that I can cite for the disparity, as pretty much no-one wants to report it.
It could cause extra death because people are reluctant to seek help for other ailments, for example the number of people coming to ER with heart attacks have decreased drastically in Sweden (-25% between February 24 and April 5).
Ocean biodiversity has not increased substantially for 100s of millions of years
Solid aluminum is not hard to come by. You can probably just walk into your kitchen and pick up a frying pan.
Amazon Essentials Women's Patterned Tank Swing Dress
> If that is the death rate for people who need ventilators then a lot of the arguments for "flattening the curve" are less compelling.

edit - to the downvoters who refuse to read anything before downvoting, here you go:

Boston 25 News: "According to a story in The Washington Post, autopsies are showing that many people who died from the COVID-19 virus have hundreds of microclots present in their lungs at the time they die. The autopsies were not revealing pneumonia as was expected, but lung damage from blood clots and the damage was appearing in the kidneys, liver, heart, intestines and brain, the Post story reported."

This is the death rate of people being incorrectly treated. If you treat patients thinking that pneumonia is their primary problem, putting them on ventilators, when the primary problem is that they have microclots in their lungs and you fail to treat the clots (which has been the case until very recently), you're going to kill a large percentage of those patients.

Tens of thousands of patients have died because the medical system somehow didn't notice the large volume of blood clots in patients.

It's the blood clots causing the high mortality rates, sudden deaths that are difficult to account for, and the oxygen problems re the lungs. They're finally beginning to address this by immediately treating patients with blood thinners. The virus causes an extreme increase in inflammation, which is causing blood clots including in the lungs which is causing oxygen deprivation.

A horrific mistake has been made over the past few months of just ventilating everyone with breathing problems, when it was the blood clots in the lungs causing the problem. They tried to solve the wrong problem.

https://www.reuters.com/article/us-health-coronavirus-usa-bl...

https://www.livescience.com/coronavirus-blood-clots.html

https://www.boston25news.com/news/trending/coronavirus-are-b...

About a thousand articles are out there over the last week about this.
The graphics of A Plague Tale are astounding. Great job from all of them.
Also of note for HN readers: in "Bouches-du-Rhone", a high-density population area, a ransomware attack has rendered the local cities unable to send the statistics for the second part of March, which they sent manually. I'm not sure how resolved this is, but it shows (yet again) how cyberattacks can have real-life impact (and this isn't a hospital…)
I retain an average of less than two friends from each previous job - that's how many people with values that I share I can find in any given company.
I think rationality is both overvalued and undervalued for day-to-day life. Being able to write out the Bayes formula or recite the list of logical fallacies on the spot isn't useful for much at all, and nobody has time to do proper Bayesian updates on anything. But I do think that internalizing rational thinking is useful for honing your intuition.

Our modern world is more complicated than what our brains were used to. It's no longer just social issues and immediate survival in small communities. We aren't used to dealing with things too small to see with your eye, and distances too large to walk. We aren't used to a world when most rewards cannot be attributed to a particular person's work. We aren't used to a world, where the main threat to your well-being isn't bandits or wild animals, but the constant barrage of salesmen and advertisers, utilizing hundreds of years of research to trick you into doing something stupid. We aren't used to a world, where almost all relationships are transient.

For the last point, consider this comment. I'm an Internet stranger. You've probably read my other comments in the past, you'll probably read some more in the future. But quite likely, you won't connect all of them together and attribute to a single person in your head; you'll see each as a piece written by a different Internet stranger, next to all other comments here. Every comment is thus a momentary interaction without prior context, and which doesn't give you any context for future interactions. The same is true for most news you read, and most social media comments you see. This is not exactly useful for our intuitions, which are optimized for processing actual relationships with people. So I think it may be helpful to study rational thought in order to calibrate your intuitions for these new times.
But then by definition it is also necessarily ("surely") the least "profound" and "magical" thing anyone ever experiences.
The highest laws of the country were written specifically to ensure that restriction of speech is permissible when it causes significant harm to the population without any benefit outweighing that harm.

It is illegal to yell “fire” in a crowded theater and that is permitted under our country’s highest laws.

The case you’re making is that corporations, who do not have the power of military force over their citizens, should be held to the same standard of law as the governments that do.

As those governments legally have the right to prioritize the greater public gonod over individual rights, your logic implies that corporations, too, should be expected to prioritize the greater public good over individual rights.

This seems in direct contradiction to your point that speech should not be restricted, and so I cannot accept your reasoning as presented.

I think the root of my disagreement is with your phrase “self-serving speech”: the nation’s free speech restrictions must serve the nation’s citizens as a whole, in order to be legal. They must prioritize the welfare of most over the welfare of few, and do so only in circumstances where the harm is great if left unrestricted. The nation did not put into place such protections at the corporate level, resulting in YouTube, a platform with a population greater than that of our nation, having no legal requirement to prioritize the welfare of most over the welfare of few.

If your position is that YouTube should be bound to the same onus of responsibility as our nation, then YouTube should be taking much more aggressive action to censor content than it has done to date. It should be restricting individual speech where the welfare of the world’s citizens is at risk of significant harm, exactly as our nation’s laws are.

It seems like your true argument is not with YouTube, but is in fact with the theory that the welfare of the entire population is sufficient cause to restrict individual freedoms; and that this view applies both to YouTube’s policies, and to United States constitutional law. It’s your right to hold that view and express it in general, but I cannot agree, as I consider its outcomes both unjust to the greater good and unsupported by law.
Also, fiber optics needs repeaters, so as a first rough estimate resource you can very quickly determine between which two repeaters the cable was broken.
It is a small proportion of the population (5-10%) but it has a disproportionate effect because they take up the space that previously remained wild because too impractical to farm, and there was not that much of it.