HNHacker News
TopNewBestAskShowJobs

dimsumbytes

16 karma · joined March 17, 2022

submissionscomments
dimsumbytes··on Swapping two Numbers without Temporary Variables
Again, not trying to be that guy, but technically it still breaks:

  a = -0.0
  b = 0.0
dimsumbytes··on Swapping two Numbers without Temporary Variables
Sorry to be that guy, but this doesn't work in languages that use floats:

  let a = 9007199254740992;
  let b = 1;

  a = a + b
  b = a - b
  a = a - b

  a // 1
  b // 9007199254740991
dimsumbytes··on Crypto is an unproductive bubble
It's been 13 years. How long would we wait before we declare it unproductive?