skysight-inc/HackerNews huggingface dataset:
There is a huge amount of gratuitous reference count updates and double ptr indirection (see for example their string_slice). Those add up quickly.

The rest is a lot of string manipulation. If you are not taking advantage of being able to layout your objects carefully and avoid memory avoiding allocations, I wouldn't expect C++ to have any particular advantage over Go or Java in in this particular scenario.
2x seems to work well most places... it's definitely fractional scaling that sucks.
I've been using Unix for 20+ years, switched to pwsh as my main shell 4 years ago (on both Windows and macOS).

Here's my notes: https://github.com/mikemaccana/powershell-profile/

Last few weeks I've been going back to bash, mainly to try out WSL/Ubuntu's defaults, but will probably move to pwsh there too. I like the consistent naming (which means I can guess commands) and avoiding the scraping that's inherent in text-only shells.

nushell looks like one to watch too. It's a lot further behind than pwsh but has a faster growing community.
Heh. The WebSocket implementation I wrote for KJ does in fact provide backpressure (the send() method returns a promise that resolves when it's a good time to send the next message). I guess I'm surprised to hear that most don't...
That R0 assumes we are taking essentially no measures to stop the virus though, right? I don't no much about it but it seems like the R0 would drop significantly if we keep doing social distancing, expand testing, make people wear masks, etc.
That must mean that well over 10% of adult male (from the other statistic that 90% of veterans are male) Americans have served in the military. I never would have thought the number was that high, especially with the military being all volunteer for decades.
WHO currently represents the scientific consensus.

No, they don't tell you what to do, it is your government that does that, or in this case a private entity.

But anybody with a brain would go for the scientific consensus.

(Even though, just to be clear, I don't agree with what YouTube is doing here)
What's terrifying is with all these professional analysts in here, yours is the first comment I've seen that asks this obvious question.
I installed PowerShell on a Debian machine a while back so that I could use (VMware's) PowerCLI modules / commands.

That worked well enough -- exactly as on Windows, AFAICT -- but I can't imagine ever trying to replace my "daily shell" (zsh, in my case) with it.
Where does that happen for you?

In my experience with PowerShell on Windows, you have to approach it more like interactive python with shortcuts rather than a regular shell, and once you’re accustomed it works fine. The main issue is that it doesn’t work like a classic shell, it just has some affordances to look like a classic shell in common use cases.
Sending Azure Monitor Outage Notifications to Microsoft Teams
I am not interpreting it that way, I believe in the consensus estimates. The parent commenter (articbull) thinks these serological studies (SC, LA, and to a lesser degree NY) prove that the IFR is much lower than we thought because the actual infection numbers are much higher. The NY study, using reasonable assumptions, looks like the IFR might be between 0.5% - 1.0%, but the SC study was claiming 0.1-0.2%. And I am arguing, in the hypothetical case that the SC study is correct (I think it is flawed), then we have under estimated R0.

Considering we have been under lockdown for over a month (which greatly impacts effective transmission), and considering our estimates of latency hasn't changed dramatically, I think my above assumption is fair.
In your example, did the twitter platform enable the crime? Did the twitter user in your example pay to use the twitter platform that enabled the crime?

Is it okay that a search engine looks like malware sometimes? You'd think that Google would want to wipe its ass.
in CppCon 2016: Chandler Carruth “High Performance Code 201: Hybrid Data Structures"[1] he says:

"but the standard deque data type is really quite bad. I wouldn't recommend anyone use it for anything. if you look at the implementation constraints, the constraints placed upon its iterators, and its invalidation constraints, it's painted into a very unpleasant corner and it has very few opportunities to be an efficient data structure."

[1] https://www.youtube.com/watch?v=vElZc6zSIXM
TLP can be very effective. Have you tried it?
> Wojcicki: "So people saying, ‘Take vitamin C, take turmeric, we’ll cure you,’ those are the examples of things that would be a violation of our policy

> Who: Fact. There is no scientific evidence that lemon/turmeric prevents COVID-19. In general, however, WHO recommends consuming adequate fruit and vegetables as part of a healthy diet.

> Potential Youtuber early January: There is news going around of a new SARS-like pneumonia outbreak in Wuhan on Chinese Social Media. SARS was very contagious, so if this is SARS we should be very worried of a pandemic, especially with our interconnected world.

> WHO: Preliminary investigations conducted by the Chinese authorities have found no clear evidence of human-to-human transmission of the novel #coronavirus

> WHO: Not a pandemic

> WHO: China is transparent and setting new standard for outbreak control

> WHO: Advice members not to ban travel from China
> patching the bytecode

Tell that to the developers who barely grasp that the JVM exists.

But yeah, the degree of helplessness people engineer themselves into without a second thought is absurd. I guess it's a blessing that the Play Store isn't embedding the Maps SDK and crashing before it can update the Maps SDK heheh.
Social media platform is not an operating system. You can't just decide and switch. If you delete your account, you're missing out on updates from your friends who all are still there. Doing this you're only hurting yourself, not corporations.
I think it's ethically unacceptable. We're basically throwing everything we've learned with drug safety out of the window.
I too would sign up; I signed up here: https://www.thecovidchallenge.org/ to support the effort.
> This is still far smaller than other pandemics in the last 100 years.
> What makes things different..

We are still in the early days of this pandemic. The history of COVID-19 is still being written. No one knows how long we're in for or what the final death count will be.
Instagram is stupid. On desktop, you cannot upload photos unless you fake being an iPhone with developer tools, I kid you not, go ahead and try. Just change the user agent and the screen size with Chrome dev tools and the upload photos menus will show up.

I don't understand this, why in the world would they prevent their users from uploading photos from the their laptops?

These weird UX choices never made sense to me. If you don't want users to do anything in a browser, then just remove your website, and force them to download your app, problem solved.
I jumped to Linux in October when I built my new desktop... so many issues... After so much time battling with MacOS and Linux Desktop on different issues... was actually surprised how much I like WSL2 in Windows of all things. Only been using it since early March, had to jump back to windows for a project.

Definitely a better experience than I remember a year and a half or so ago. The new MS terminal works pretty well, and the Docker WSL2 support is very seamless. VS Code with WSL extensions works great. I spend most of my time in that space and have had so few issues.

Note: editing \\wsl$ files in windows is a little slow, same for wsl editing mounted windows drives... but in the sandbox has been really great.
Infecting, or at least exposing, healthy, unvaccinated, people with the virus?

Pretty sure that would never make it past an IRB review.
Ok, maybe this dispute is based on different definitions. I don't think 2X is "approximately", but I do agree that we don't have enough data right now to know the exact difference so I can't say for sure that COVID-19 is more than 2X as dangerous.

I also agree that COVID-19 does appear to be way less dangerous for the under 18 group. However practically none of the under 18 group is able to isolate themselves away from the 18 and over group so there is no real societal benefit to this distinction.
If YouTube had a showdead feature I would be greatly assuaged. I can't think of a reasonable way they could implement vouching, though.
Thanks! That makes sense. I don't get the name, but this is what we call that now?
Most Dictators Self Destruct. Why? (2017)
The FTC says it's illegal:

Anticompetitive practices include activities like price fixing, group boycotts, and exclusionary exclusive dealing contracts or trade association rules, and are generally grouped into two types: agreements between competitors, also referred to as horizontal conduct.
Because you should be able to find a good hash data structure for your language. You shouldn't be able to accidentally get a bad one. It should arguably be the first data structure you reach for.
Nah its oppression.
How the French Foreign Legion teach French to 150 nationalities in 6 months
SD is thermal. So neither optical or magnetic. Parent seems like clickbait.
Nozomi – The API suite for data polling, storage, and aggregation
Is this any different than Walmart selling Great Value products, or Google putting its Flights module first on the search results page?
This is not a good decision. The WHO advice has been contradictory to the common sense of anyone with a basic scientific background.
We use chimps in biomedical research precisely because of that overlap, why do you think it's not a helpful measure?
I fee like I've seen a lot of thick steel plates around the right size sitting around in old workshops. You could probably find something cheaply from a scrap dealer.

Thick aluminum or copper seems more rare, I don't know if it's commonly produced.
The WHO has been spreading misinformation from the start, including claims that covid does not spread from human to human after it was abundantly clear that it does[0], claims that travel bans would be unnecessary to halt its spread[1], and claims that people should not wear masks[2].

These are not mere edge cases. We have structured our public organizations in a way that gives credentialed "experts" enormous amounts of power, but without making sure they are _actually good at what they do_. This move by youtube further enshrines credentials on top of the grave of competence. This is how you end up with the FDA banning covid tests for more than a month, how you end up with a completely ineffective CDC, or (to return to the topic at hand) the WHO spreading nonsense.

The fact of the matter is that the twitter shitposters I follow were far ahead of all the major health organizations on this topic, but if they mention covid in a tweet they'll get their account suspended now. This censorship is not about censoring bad info, it's about censoring any "non-official" info regardless of its veracity.

[0]: https://pbs.twimg.com/media/EUN7LIXUMAY_2DI.jpg

[1]: https://pbs.twimg.com/media/EVCIDfoWAAc-mq0.jpg

[2]: https://www.who.int/images/default-source/health-topics/coro...
This is a very early step (phase 1). They are giving the vaccine to small number of healthy people to make sure it is safe in that population. From there they have to go on to larger trials that look at both safety and effectiveness. The phase 2 and phase 3 trials will take much longer.
Well this isn't the ebola epidemic of 2014 now is it? Rules that apply to countries with extremely deficient medical systs don't apply to the richest country in the world.
I've wondered recently if this simple (but powerful) feature would be enough of a differentiator for a search engine challenger to gain serious market share.

Imagine if Duck Duck Go offered that by default?
But....why?

They could've just saved themselves the trouble and said "Anyone fancy doing this in C++? No. Great, that's that tricky question off the table!" Rather thna going through this ridiculous exercise of writing bad C++ in order to justify not using C++. If we really believe that this is just a way of idnetifying a revealed preference fine, but engineers should be smart enough to not need to trick thesmlves into coming to the obvious conclusion.
Didn't anyone read Brad Stone's book? This is Amazon's play. Jewelry was one category they had trouble making work, but many other categories fell to them. They did it with Diapers.com and really everyone they wanted to acquire. And really the only thing keeping the regulators off of them is that it doesn't harm the consumer because prices are kept low. That's really the only test for antitrust cases to proceed because of a slippery slope.
Can confirm, work issued MBP 13" is vastly slower and hotter than my personal Aero 15x doing the same workload.

And even when the Aero is running games or training a neural net, it's only ~70°C
> He said the deal is off once he leaves and it is my last chance

Standard sales pitch tactic: "manufacture a sense of urgency"
It was the second or third time someone had used my email for Instagram.
Same in Australia. I've been amazed at how well Amazon has been sticking to quick deliveries even here. We don't get same day (or even next day, as I'm rural) but I haven't had anything take more than 3 working days, which is the same as pre-COVID, despite ordering 10x what I usually do.
I wonder why this has been such an issue for Microsoft. If I remember correctly, the entire Computer Management program and all of its subcomponents have no functional UI scaling. As pretty as a Retina monitor is, I'm glad that I went with a cheaper, lower-resolution monitor with good color accuracy and reliability. With subpixel hinting, it's very sharp from my usual sitting position. With laptops, I can see the advantage of going HiDPI.
Please don't take HN threads into nationalistic flamewar.

https://news.ycombinator.com/newsguidelines.html

Not sure what it is about flowers that brought out such extremes this thread, but...wow.
It calls printf. Perhaps this is a better example: https://godbolt.org/z/fwhLH4. (I updated the link above, too.)
>I grew up in the St Louis area.

There were 2 primary reasons I believe St. Louis as a city and a metro failed to emerge as a large area with great prosperity.

1. The scheme and charter. In 1875 the city forced a divorce from the county. The county at the time was a large rural area and the city wanted to expand. Everything wrong with the area sprung from this decision. The latest effort failed spectacularly. It'll be a generation before they come back together.

https://www.stlmag.com/news/politics/st-louis-great-divorce-...

2. St. Louis chose river transportation over rail.

https://books.google.com/books?id=cHvo-Nr4bFkC&pg=PA37&lpg=P...
I don't find those obfuscatory at all either, and instantly understood them upon first reading. I think they are a form of "data-oriented" style of programming, where array indexing and selection via ?: are preferred over "code-oriented" control flow statements. In my experience, the former actually tends to create more concise and maintainable code, since it often means a lot of the logic becomes table-driven and easily modified. The latter tends to result in very long and "branchy" code with lots of if/else statements that ultimately contain tiny bodies that don't do much.

Combining multiple booleans into an integer and using that as a switch or index is another related technique.

To modify an old saying slightly, perhaps "one person's obfuscation is another person's simplicity and elegance."
What WHO is saying is that there is no solid proof that wearing a mask will do much to protect you. And they are correct in saying that.

They do not say that masks offer no protection. They also don't say that you shouldn't wear masks.

Actual scientists give advice based on available evidence. When there is no evidence, or available evidence is too weak, they don't give that advice and they also don't fall in the trap of considering a lack of evidence as being evidence of absence.

This is what politicians do, like Trump.

Let's not mix these.
For some people, that might be an easier sell than 18 years of child support.
Could just have an interface to request access for use, such as with camera and sound/microphone.
If your country is invaded, is it unethical to let young, healthy volunteers form an army and fight back, even at some risk to themselves? It shouldn't be illegal to let people take reasonable, calculated risks for the good of everyone.
Sometimes you luck out and can get same-day delivery, sometimes you have to wait a couple days.

Which is ridiculous. Why don't they just let me schedule the delivery up to, say, 2 weeks out? They'd retain more customers and smooth out the demand spikes that are as bad for retailers as they are for consumers.
Ask HN: Economics/public sector to data science/private sector
I'm 34 years old, have a degree in economics and have worked my entire career in the public sector running the occasional regression and doing mainly data wrangling and data cleaning tasks. I would like to transition to a data science role in the private sector, but feel I have nothing tangible to show.

I have zero experience working on projects for ‘clients’ or with large datasets or relational databases. I've also never used AWS/Azure or any cloud platform. Also, never had to scale any process or ‘train’ neural networks or run any other ML algorithm in Python.

Instead, most of my coursework and work experience has focused on working with academics and non-profits. The tool of choice was always Stata (and very rarely R). Small datasets and files saved locally and shared via email are the norm. I have dabbled with Python/Pandas for basic data cleaning tasks and created a few Tableau databases, but nothing major or ‘scalable’.

I follow the HN and the DS community enough to know what (I think) I need to know to become a data scientist. I figure my experience with Stata and data cleaning/wrangling, as well as my courses in applied statistics and econometrics, will at least be of some help. I even sense that I could take if given a data science role, I could learn on the spot after putting in the hours especially in the beginning.

However, I lack real world data science experience and have nothing to show to convince someone to let me get there in the sense that I would easily be screened out. My age doesn't help either.

Any advice?
Fair enough.

FWIW, Cap'n Proto's approach provides application-level backpressure as well. The application returns from the RPC only when it's done processing the message (or, more precisely, when it's ready for the next message). The window is computed based on application-level replies, not on socket buffer availability.

My experience was that in practice, most streaming apps I'd seen were doing this already (returning when they wanted the next message), so turning that into the basis for built-in flow control made a lot of sense. E.g. I can actually go back and convert Sandstorm to use streaming without actually introducing any backwards-incompatible protocol changes.
Sellers use Amazon FBA (Fulfilled By Amazon). Their inventory sits with Amazon and irrespective of platform where transaction happened, Amazon ships it in their own box.
> If people start to starve because we stopped being able to produce food or people start dying of other causes because our basic infrastructure start collapsing, then you can start talking about ethical dilemmas.

I think its a safe bet that this is already happening on small scales. Noone is measuring the degree.
Per Amazon's policy - no, the seller can not have lower prices on their own website than on Amazon. In practice, for now, it is not enforced (at least in my experience).

https://sellercentral.amazon.com/forums/t/same-price-on-webs...
And don't forget about the 1904 Olympics in St Louis as well. Easily as strange as the expo: https://www.smithsonianmag.com/history/the-1904-olympic-mara...
Polestar 2 Electric Car, US pricing officially announced: $59,900
That is also why all the major players with vaccine development already in humans (including but not limited to this one) have already started making manufacturing deals with large pharmaceutical corpoprations.

Vaccination on large scale will likely require tens of millions of doses, if not more (and let's not forget you may need more than one inoculation).
I suppose you’re right. It is left to the user to not try to connect v1 to v2. Not sure what happens if on Tuesday morning I connect my v1 client to what was on Monday night a v1 server.

That said, I admire opinionated design.
This is midly-nitpicky, but those numbers only include public elementary school teachers. There are a lot of private/parochial school elementary teachers out there. There might very well be more female elementary school teachers then female veterans.
Or print one for a 4x5 camera if you have a 3d printer: https://www.thingiverse.com/thing:3145482
"We call this jet the ball cooker"
It's turtles all the way down. You can sometimes vote with your feet (if you have the wherewithal)... but that applies to the city, county, state, nation level as well.
>Shouldn't it be:
>Half of the population is dumber than the median.
>??

Probably not. Imagine a population of three people. The middle person is not dumber than themselves.
How do you handle the bandwidth costs? These are probably a negligible proportion of the costs at the scale of an Instagram, but hosting providers still have a big profit cut at smaller scales.

For example, I could host all my images directly on my Linode, but the cheapest Linode has only 1 TB of outbound transfer a month (for $5), and over quota you're actually charged more than that, $10 / TB. That comes with only 25 GB of storage. They'd also probably be pretty slow for most of my visitors, since they're hosted on a single server somewhere in California.

If you want faster distribution around the country and globe, you might consider S3... that same 1 TB of data out is going to cost you $90 / month.

Meanwhile, it's clear the REAL costs are not that high. Flickr Pro is a mere $5 a month, with the same high quality (uncompressed) photos, and a global CDN. You can store an unlimited number of pictures with Flickr Pro. This is already way cheaper and faster than anything I can set up on my own, as far as I know, and SmugMug is still making money off of this, presumably, enough to cover their free tier.
>Oh! What do you do about those YouTUbe videos that tell you to drink bleach because it saves you from SARS-COV2!"

Also you should be free to sue the content creator, maybe instead of censoring content youtube should have better "know your creator" type legislation?
It wasn't sudden, and was already in progress by 1904, but St. Louis in the 1850s was the second largest port in the United States after New York. As railroads became a thing they favored Chicago, possibly because St. Louis politicians were protecting the river boat industry.

At the dawn of railroads St. Louis was three times the size of Chicago, by 1904 it was reversed.

␄

Caveat: I didn't vet those numbers too closely and in the case of St. Louis it matters. St. Louis is one of several US cities whose urban centers are politically separate entities from their surrounding suburbs. So when you see a list of "Cities with the highest X rate!" and X is correlated with population density then St. Louis and Baltimore will usually be high on the list.)
Looking at the census publication directly[0], seems Wikipedia is wrong then.

[0] https://www.census.gov/content/dam/Census/library/publicatio...
I think it's more likely I've just been too deep in JS-land. Does KJ send() do any internal buffering, or wait for the OS to tell it to send more?
Have a Canadian prime account. Some items ship next day, others take over a month. I suspect locally-stocked deliveries are fine, it’s listings at further remote warehouses that are taking longer, maybe? Normally everything arrives within a day like clockwork at my location, especially during the holidays.

Also, despite delays, Amazon still delivers. Staples just cancelled my orders.