Jorge Chamorro (2013-07-10T02:44:32.000Z)
domenic at domenicdenicola.com (2013-07-17T18:54:12.742Z)
On 10/07/2013, at 03:49, Mark S. Miller wrote: > Because Nat includes 2^53, this code actually fails to enforce conservation of currency!! I've repeatedly claimed this conservation property about this code and code like it for a long time now, to many audiences and in several papers. There have been several exercises proving some properties of this code correct and laying the groundwork for proving conservation of currency. However, none have previously spotted this hole. Right, if balance+amount ever result in 2^53+1, the code would rather "see" it (and save it!) as 2^53. Sort of a new kind of off by one error... for the wikipedia?