HNHacker News
TopNewBestAskShowJobs

linepogl

6 karma · joined August 9, 2019

submissionscomments
linepogl··on What algorithm did Windows XP use to choose your initial user picture?
Apart from the performance issues, it also prevents a bug. If some files get deleted between the first and the second pass, then you end up with unexpected behaviour and probably a crash.
linepogl··on Idempotency
And yet, the idempotent solution in the article is not idempotent.

The author proposes a solution that needs three steps: query a cache, execute, update the cache. These are not atomic and, therefore, not thread-safe. As a result, if a second request arrives before the first is finished, the operation will be executed again.