730 karma · joined Nov 25, 2014 (12y ago) · 549 submissions
comment 1d ago · link · parent
For this particular example the line should be clear. If the variable is volatile, memory access can't be removed or reordered. If it's not volatile, everything is fair game.
Mandatory Godbolt link: https://godbolt.org/z/fjKs4hbjo
comment 5mo ago · link · parent
comment 5mo ago · link · parent
comment 5mo ago · link · parent
comment 8mo ago · link · parent
On a related note, it's now ten years since an everyday tool written in Rust was released and Rust is still seen as a scary new language that might turn out to be a quick fad.
comment 8mo ago · link · parent
comment 11mo ago · link · parent
comment 1y ago · link · parent
At least Polar had a watch that would run in low-power mode by default and had a separate CPU that could run Android Watch when needed but that would drain the battery quickly. They had the sense to not make it the flagship model and it looks like the current models don't have anything like that.
comment 1y ago · link · parent
Typical websites are not static and include a huge amount of JavaScript and other stuff from different ad networks, analysis tools, etc. It looks like most of it isn't cached. Video delivery on the other hand is incredibly well optimized because everyone knows it's data intensive.
comment 1y ago · link · parent
comment 1y ago · link · parent
Is it really? I was surprised to see that surfing newspaper websites or Facebook produces more traffic per time than Netflix or Youtube. Of course there's a lot of embedded video in ads and it could maybe count as streaming video.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
The nice thing is that you have to learn to play without looking at your hands because your eyes are fixed at the screen. The less nice part is that especially with Synthesia style it is difficult to play without the app.