placeholder

Introduction - The Rust Performance Book

This book contains many techniques that can improve the performance—speed and memory usage—of Rust programs. The Compile Times section also contains some techniques that will improve the compile times of Rust programs. Some of the book’s techniques only require changing build configurations, b...

Click to view the original at nnethercote.github.io

Hasnain says:

Bookmarking for later rereading.

“Some of the techniques within are entirely Rust-specific, and some involve ideas that can be applied (often with modifications) to programs written in other languages. The General Tips section also includes some general principles that apply to any programming language. Nonetheless, this book is mostly about the performance of Rust programs and is no substitute for a general purpose guide to profiling and optimization”

Posted on 2022-07-19T17:27:15+0000

placeholder

Good Managers Write Good

In my time observing managers, one observation seems to repeat again and again: good managers write well, and bad managers write poorly. In fact, the best managers I’ve ever had were not just good writers, they were terrific. And the worst managers I’ve ever had were not just bad writers, they w...

Click to view the original at staysaasy.com

Hasnain says:

This resonated with me. Though I think this forces more causality on this relationship than there actually is.

“Writing is the opposite. Writing is a commitment to durable and transparent ideas. Writing says: I am here, I believe this, I stand by it.”

Posted on 2022-07-19T17:22:27+0000

placeholder

NBC 7 Investigates: San Diego Police Face Scrutiny Over Woman's Murder

Neighbors called 911 begging for help nearly two hours before police arrived to the victim’s Rancho Penasquitos home.

Click to view the original at nbcsandiego.com

Hasnain says:

“Officers found Connie’s lifeless body inside her condo Wednesday morning, June 15. But neighbor interviews, dispatch records, 911 call timestamps and surveillance video all gathered by NBC 7 Investigates show the calls for help started nearly 12 hours earlier.

Around 7 p.m. the night before two neighbors called 911 reporting a man banging on Connie’s door and screaming. Over the next hour, at least five more calls rolled into 911, but no officers were dispatched. Then, just after 8 p.m., neighbors heard and saw something that prompted dispatchers to speed up the police response.”

Posted on 2022-07-19T04:36:35+0000

placeholder

Hasnain says:

BRB ordering a ménage a trois from Ike’s (on Dutch crunch of course)

“Michelin-starred chef Brandon Jew grew up eating it as a hungry teenager, buying big sandwiches after school from Mister Pickle’s on the Peninsula. “The thing about Dutch crunch is that you didn’t really see it in grocery stores,” he says. “And if the options were white, wheat, sourdough, or Dutch crunch, it was like, what’s Dutch crunch? Texturally, it’s really satisfying … and once you have it for the first time, you’re going to keep ordering it.” And of course, once locals have grown up eating something, there’s always a sugar sparkle of sandwich nostalgia.”

Posted on 2022-07-18T00:55:50+0000

placeholder

Hasnain says:

I agree with this piece in that the US definitely needs to step up on immigration or it’ll suffer from brain drain. I wish it didn’t have the thinly veiled “china bad” trope in its messaging and instead focused on the root causes of the problem at home. But I’ll take what I can get.

“It’s not just a matter of enticing new immigrants but of retaining bright minds already in the country. In 2009, a Turkish graduate of the California Institute of Technology and the Massachusetts Institute of Technology, Erdal Arikan, published a paper that solved a fundamental problem in information theory, allowing for much faster and more accurate data transfers. Unable to get an academic appointment or funding to work on this seemingly esoteric problem in the United States, he returned to his home country. As a foreign citizen, he would have had to find a U.S. employer interested in his project to be able to stay.

Back in Turkey, Arikan turned to China. It turned out that Arikan’s insight was the breakthrough needed to leap from 4G telecommunications networks to much faster 5G mobile internet services. Four years later, China’s national telecommunications champion, Huawei, was using Arikan’s discovery to invent some of the first 5G technologies. Today, Huawei holds over two-thirds of the patents related to Arikan’s solution—10 times more than its nearest competitor. And while Huawei has produced one-third of the 5G infrastructure now operating around the world, the United States does not have a single major company competing in this race. Had the United States been able to retain Arikan—simply by allowing him to stay in the country instead of making his visa contingent on immediately finding a sponsor for his work—this history might well have been different.”

Posted on 2022-07-18T00:41:28+0000

placeholder

The DynamoDB paper - Marc's Blog

This week at USENIX ATC'22, a group of my colleagues1 from the AWS DynamoDB team are going to be presenting their paper Amazon DynamoDB: A Scalable, Predictably Performant, and Fully Managed NoSQL Database Service. This paper is a rare look at a real-world distributed system that runs at massive sca...

Click to view the original at brooker.co.za

Hasnain says:

Just went ahead and read the paper, it’s a pretty accessible read. Some great insights from running and operating a system at scale.

“What's not to love about a 99.75% cache hit rate? The failure modes!

The downside is that caching introduces bimodal behavior. In the case of a cold start where request routers have empty caches, every DynamoDB request would result in a metadata lookup, and so the service had to scale to serve requests at the same rate as DynamoDB

So this metadata table needs to scale from handling 0.25% of requests, to handling 100% of requests. A 400x potential increase in traffic! Designing and maintaining something that can handle rare 400x increases in traffic is super hard.”

Posted on 2022-07-15T07:01:47+0000

placeholder

Unimaginable abortion stories will become more common. Is American journalism ready?

In America after the end of Roe v. Wade, one brave source, on the record, is often the best we are going to get. Countless other stories will never be told.

Click to view the original at niemanlab.org

Hasnain says:

“In America after the end of Roe v. Wade, one brave source on the record in the final story will often be the best we can get. Obviously, reporters and editors must make sure that their reporting is accurate and true! But those who believe that the end of legal abortion in many states is newsworthy will need to figure out how to report and publish these stories with a few more constraints than they’d prefer. If performing or receiving an abortion now counts as activism, well, then journalists will need to be okay quoting “activists,” unless they only want to tell the anti-abortion movement’s side.

Countless abortion stories will never be told at all. It won’t be because they’re lies. It will be because telling them is too risky, because patients and doctors and staffers and volunteers will face arrest for coming forward.

The facts will live on in the shadows. The women and children’s real lives will continue. Even if their stories seem “too good” to be true. Even if you wish they weren’t.”

Posted on 2022-07-14T06:31:04+0000

placeholder

What’s Really Going on in Those Police Fentanyl Exposure Videos?

It’s nearly impossible for an overdose to be caused by brief contact with the drug. It is possible these videos will worsen the danger for those truly at risk.

Click to view the original at nytimes.com

Hasnain says:

“These viral “exposure” videos have a way of inverting reality. The people with whom the police interact every day, the civilians and communities they are sworn to protect, are often people whose main crime is that they are struggling with addiction — which is to say that they, not the officers prodding at the contents of their pockets, are the ones in the most danger. There’s concern that these videos will only worsen that danger, not just by making people so terrified of invisible fentanyl traces that they hesitate to aid drug users experiencing overdoses, but also by driving the use of criminal charges to punish people for exposing police officers or emergency responders to drugs.

The story from Kansas City reported that, before the officer collapsed, he was on his way to deliver food to families in need at a local church. Suddenly, he and his fellow officers were dispatched to a burglary, where they found a few pills on the suspect — someone, perhaps, who turned to theft to sustain a drug addiction. This is a story that makes the police sound brave and sympathetic, but its central question remains obscured: What are they really so afraid of?”

Posted on 2022-07-14T06:27:44+0000

placeholder

Hasnain says:

Great read on the thrill of learning biology from the principles of exploration. Education in general can be quite boring; more so for biology (my experience concurs). Even though there’s so much fascinating stuff to learn!

“I’ve never come across a subject so fractal in its complexity. It reminds me of computing that way. A day of programming might involve constructing an elaborate regular expression, investigating a file descriptor leak, debugging a race condition in the application you just wrote, and thinking through the interface of a module. Everywhere you look—the compiler, the shell, the CPU, the DOM—is an abstraction hiding lifetimes of work. Biology is like this, just much, much worse, because living systems aren’t intentionally designed. It’s all a big slop of global mutable state. Control is achieved by upregulating this thing while turning down the promoter of that thing’s repressor. You think you know how something works—like when I thought I had a handle on the neutrophil, an important front-line player in the innate immune system—only to learn that it comes in several flavors, and more are still being discovered, and some of them seem to do the opposite of the ones you thought you knew. Everything in biology is like this. It’s all exceptions to the rule.”

Posted on 2022-07-14T05:20:31+0000

placeholder

Unchecked AB Testing Destroys Everything it Touches

Every infuriating thing on the web was once a successful experiment. Some smart person saw Normal site: 1% sign up for our newsletterThrow a huge modal offering 10% off first order: +100% sign ups …

Click to view the original at zumsteg.net

Hasnain says:

Great read on A/B testing and the perils of short term thinking.

“How many executive groups will, when shown an AB test for something like “ask users if we can turn on notifications” showing positive results that will juice revenue short-term, ask “can we test how this plays out long-term?”

As product managers, as designers, as humans who care, it is our responsibility to never, ever present something like that. We need to be careful and think through the long-term implications of changes as part of the initial experiment design and include them in planning the tests.

If we present results of early testing, we need to clearly elucidate both what we do and don’t know”

Posted on 2022-07-14T05:13:37+0000