nabeelms | 2 years ago | on: Rust 1.72.0
nabeelms's comments
nabeelms | 3 years ago | on: Ask HN: What should I do to learn computer science fundamentals?
nabeelms | 4 years ago | on: The Joy of Cryptography
nabeelms | 5 years ago | on: Germany pauses AstraZeneca vaccinations as a 'precaution'
At the beginning of the pandemic, it was believed that the virus was using droplet transmission alone. In such a scenario, surgical masks, for the general public, would only be required in people who were sick to prevent transmission and N95 masks would primarily be required by health care workers. Considering the mask shortages faced in many countries at the time due to panic buying, the communications made by governments to the public w.r.t the benefits of masks make sense from a cost benefit perspective since it would guarantee that the people who needed the masks the most (medical workers and sick people) would receive them and reduce the spread of the virus.
Fast forward 2 months later, airborne transmission as well as asymptomatic transmission of the virus were both confirmed independently in several labs. This would mean that the prior strategy of only using surgical masks on sick people wouldn't really work well anymore. In the meanwhile, the availability of masks was much higher due to increased production. Hence, to reduce the risks of airborne and asymptomatic transmissions, governments released advisories asking all people to wear masks.
nabeelms | 5 years ago | on: Firefox Release Includes Total Cookie Protection and Multiple Picture-in-Picture
It's apparently being trialed to a limited subset of users.
nabeelms | 5 years ago | on: URL shorteners set ad tracking cookies
nabeelms | 5 years ago | on: The Case of the Extra 40ms
nabeelms | 5 years ago | on: EFF and heavyweight legal team will defend Internet Archive against publishers
https://www.healthaffairs.org/doi/abs/10.1377/hlthaff.25.2.4...
nabeelms | 6 years ago | on: Sensor Tower owns ad blocker and VPN apps that collect user data
nabeelms | 6 years ago | on: Ask HN: How Sound Is the “Teach Yourself CS” Learning Resource?
nabeelms | 6 years ago | on: Jellyfin: A Free Software Media System
nabeelms | 6 years ago | on: Fight back against Google AMP (2018)
nabeelms | 6 years ago | on: The 40% Keyboard
> The caller has free choice over the returned lifetime, including 'static. Indeed, this function is ideally used for data that lives for the remainder of the program’s life, as dropping the returned reference will cause a memory leak.
I can see the use case of the function and from reading the commit discussion, it seems it was based on Vec::<u8>::leak() but I'm not able to understand why either of the functions are safe instead of unsafe.