[HN Gopher] A Real Life Off-by-One Error
___________________________________________________________________
A Real Life Off-by-One Error
Author : leejo
Score : 36 points
Date : 2024-09-01 21:47 UTC (3 days ago)
(HTM) web link (leejo.github.io)
(TXT) w3m dump (leejo.github.io)
| anyfoo wrote:
| Great find!
|
| One comment on what the article says:
|
| > If this were actual code review the correct comment would be
| something like "this [piece] hasn't been used for years, it
| should be deleted". But this is something in physical space, and
| there would be arguments that removing it (them) means the route
| has changed, thus times are no longer comparable.
|
| Hmm, I think the correct analogy is rather a benchmark. Like code
| in a benchmarking tool or test, the whole climbing course does
| not serve any purpose, any actual goal, except to be completed as
| fast as possible.
|
| You wouldn't say "these instructions should be deleted because
| branch prediction and speculative execution in recent years have
| made it so that total cycle count is the same without them", for
| the reason stated ultimately after in the article already: That
| may not have been true in the past, and may change again in the
| future.
___________________________________________________________________
(page generated 2024-09-04 23:00 UTC)