2,502 karma · joined Nov 29, 2013 (12y ago) · 644 submissions
comment 1w ago · link · parent
A lot of phones these days are offering longer update periods. For instance that 13C only offered 3 years from release, but the 15C is offering 6 years. The Pixel phones are getting 7 years.
comment 1w ago · link · parent
comment 11mo ago · link · parent
Honestly I can see a niche use but this device strikes me as quite weird and I'm not sure why it isn't a button on their new watch.
comment 12mo ago · link · parent
comment 1y ago · link · parent
Which is just to say, if there's money to be made then businesses will do so within the regulatory framework.
comment 1y ago · link · parent
> that unsynchronized reads of a uint64 will return some previous valid write, it doesn't guarantee anything about which value is returned
Your the second person saying this, so is my interpretation that this is dissallowed by the part that you quoted incorrect?
> must observe some write w such that r does not happen before w and there is no write w' such that w happens before w' and w' happens before r
edit: somebody is answering this below by the way
comment 1y ago · link · parent
> I understand the need for correct lock-free impls: Given OP's description, simply avoiding read mutexes can't be the way to go about it?
I did note that the documentation recommends a lock.
> read the first value ever set to the variable for the entire lifetime of the program
That is not my reading of the current memory model? It seems to specifically prohibit this behaviour in requirement 3:
> 2. w does not happen before any other write w' (to x) that happens before r.
comment 1y ago · link · parent
If I'm reading this correctly, they are recommending a lock in this situation. However, they are saying the implementations has two options, either raise an error reporting the race (if the implementation is told to do so), or, because the value being read is not larger than a machine word, reply to the read with a correct value from a previous write. If true then it cannot reply with corrupted data.
comment 1y ago · link · parent