placeholder

Fixing the Next Thousand Deadlocks: Why Buffered Streams Are Broken and How To Make Them Safer

I am fortunate enough to work on a production Rust service (a real one, not cryptocurrency nonsense). Rust virtually eliminates the kinds of stupid bugs and gotchas that are endemic in other languages, making it much easier to develop and maintain our project. Unfortunately, Rust is substantially le...

Click to view the original at blog.polybdenum.com

Hasnain says:

This is a surprisingly hard problem that I’m always worried about introducing - I’ve seen this cause issues before too.

“Making these changes won’t be easy, but that doesn’t mean they shouldn’t be done. Before Rust came along, achieving both memory safety and C++ levels of performance in a practical, easy-to-use language seemed impossible. And this change doesn’t even require a new language! It’s just a matter of redesigning a commonly used library to be less error-prone. Hopefully someday, deadlocks too will be an almost-unheard of class of bug. Even if this proposal isn’t suitable for implementation as is, I hope this starts a conversation so we can find better ways to address the problem.”

Posted on 2022-07-31T02:34:47+0000

placeholder

In Remote Alaska, Meal Planning Is Everything

A combination of bush ordering, communal eating, and never-ending resourcefulness keeps the tiny town of Bettles (population: 63) exceedingly well-fed.

Click to view the original at eater.com

Hasnain says:

This was a great read on life in rural Alaska. It brought back a harkening for a simpler way of life - and it was an engrossing story told over food.

“Pagkalinawan reminded me, “People who come up to Bettles are amazed that we eat better than they do. I always tell them we can’t just go to a restaurant; we know what we want to eat and have to plan ahead for it.”

A friend from New York City, an amateur chef who studies food systems, came to visit and we hosted a potluck with the theme “eat local.” Adam went to the river and caught grayling, which was served over a bed of sauteed greens with a rhubarb sauce. Our neighbors brought moose burgers, locally grown potatoes cooked with our garden rosemary, and blueberry cobbler. We stayed up late, which can be hard to realize during the peak of the summer when the sun is still high in the sky, sharing food and drinking Bota Box wine. Although this was a gourmet meal, in many ways it was just as great as the store-bought hot dogs and macaroni salad we had eaten together hundreds of times before; the quality of a meal is really a reflection of the company you share it with as well as the long process and coordination it takes to get everything on the table. Then before bed, with the sun just starting to near the horizon, we all walked over to the small shop on the airstrip and finished the evening off with Mounds bars and Doritos.”

Posted on 2022-07-28T03:45:34+0000

placeholder

Two Weeks In, the Webb Space Telescope Is Reshaping Astronomy | Quanta Magazine

In the days after the mega-telescope started delivering data, astronomers reported new discoveries about galaxies, stars, exoplanets and even Jupiter.

Click to view the original at quantamagazine.org

Hasnain says:

The science coming out of the JWST has been so incredibly exciting to see and learn about.

“JWST should be capable of finding far more distant supernovas too, which will give it another way to serve as a probe of the early universe. It may also find stars being torn apart by the supermassive black holes that reside at galaxies’ centers, something no previous telescope has seen. “For the first time we’re going to be able to peer into these very deep, dark regions,” said Ori Fox, an astronomer at the Space Telescope Science Institute who leads the team studying transients.

Transients, like other astronomical phenomena, are set to be redefined. After decades of planning and construction, JWST has hit the sky running. The issue now is keeping pace with the constant barrage of science coming down from a machine so complex yet faultless it almost defies belief that it was built by human brains. “It’s working, and it’s insane,” said Larson.”

Posted on 2022-07-26T06:26:11+0000

placeholder

Hasnain says:

Garbage collection is fascinating and definitely something I need to read up more on.

“The last remaining bit of the puzzle is still lacking: how is it guaranteed that the collection is completed before the FREE list is empty? If the mutator runs out of free objects before the collection cycle is completed, then the only option is to force the cycle to completion by calling advance() repeatedly until there are no more gray objects and then flip, but that's a stop-the-world situation. The solution is to call advance() from within alloc() guaranteeing scan progress. Baker proved that if advance() is called k times for each alloc() call, then the algorithm never runs out of free objects, provided that the total heap size is at least R*(1 + 1/k) objects, where R is the number of reachable objects.”

Posted on 2022-07-26T05:44:48+0000

placeholder

America’s favorite family outings are increasingly out of reach

Taking the kids to a baseball game, a movie, or Disneyland is a bigger financial commitment than it used to be for middle-class families.

Click to view the original at thehustle.co

Hasnain says:

“Recent research has shown that a family has to earn at least $35.80/hour just to meet basic needs. The average two-kid family spends 25% of its income on child care alone — and these figures don’t even fully take into account runaway inflation, which recently topped 9%.

The reality is that today’s $40/hr median family income doesn’t leave as much wiggle room for American pastimes as it used to.

And as Steven Martinez, and many others, have learned, this is especially true of “the most magical place on Earth.””

Posted on 2022-07-26T05:30:01+0000

placeholder

Two decades of Alzheimer's research may be based on deliberate fraud that has cost millions of lives

Last month, drug company Genentech reported on the first clinical trials of the drug crenezumab, a drug targeting amyloid proteins that form sticky plaques in the brains of Alzheimer’s disease patients. The drug had been particularly effective in...

Click to view the original at dailykos.com

Hasnain says:

How can these folks sleep at night? So much money wasted and much more importantly a misdirection of efforts away from things that could have saved so many lives.

“Over the last two decades, Alzheimer’s drugs have been notable mostly for having a 99% failure rate in human trials. It’s not unusual for drugs that are effective in vitro and in animal models to turn out to be less than successful when used in humans, but Alzheimer’s has a record that makes the batting average in other areas look like Hall of Fame material.

And now we have a good idea of why. Because it looks like the original paper that established the amyloid plaque model as the foundation of Alzheimer’s research over the last 16 years might not just be wrong, but a deliberate fraud.”

Posted on 2022-07-23T18:00:26+0000

placeholder

Hasnain says:

Lots of mixed feelings after reading this one. Like the author, I too yearn for the "good old days" when I would fully sink myself into my work and use that as a major fulfilment in life. There are definitely upsides to it.

I don't agree with taking it to the point where people feel like *they have no other choice* though - like the author points out they would cry at work, be forced to skip vacations, etc. Can't we have the best of both worlds - people motivated by their work that they want to do really well; but also not feeling so pressured they *have* to fire on all cylinders all the time?

I feel like the author has conflated the two things and while, sure, they are correlated, in a truly great work culture they shouldn't have to.

"A few months ago, someone complained to me that the new (very hot stuff) startup they were at had a “lgtm culture.” Upon inquiry, they explained that no matter what they do or how good it is, everyone just says “looks good to me.” “I know I should feel good about being a competent, trusted, contributing team member,” he continued, “and my new colleagues are so, so kind, but at the end of the day I just feel like no one has any standards.” He looked down at his coffee for a moment. “I’m afraid I’m never going to see my best work again.”

Yikes. Now multiply that same phenomenon across every other person working and every other company. What is that going to do for our collective impact? What will that do to progress? Mega yikes.

I’m not exactly sure how we balance the realities of the world today with a working life that asks so much of us. But I do know leaning all the way out isn’t the answer. I hope we find the right way through it, together. We certainly need the support of our leaders to get there, but I know from experience that anyone, in any corner of an organization, can play a meaningful role in building the organizations we want to be in.

And when we do, I think we’ve got a shot at transforming organizations into the incredible sources of community and self-actualization they should be.

Believe me, it’s possible. And believe me, it’s as good as you imagine it could be."

Posted on 2022-07-22T04:54:31+0000

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