13 karma · joined Oct 14, 2014 (12y ago) · 17 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
The difference between writing if (status != SUCCESS) and catch (Exception) is that the former will allow the program to actually crash when it should (see panic in Rust). You should not be able to recover from OutOfMemory or GammaRayFlippedABit errors (use ECC memory to prevent that). You should restart the process (or the entire machine) because you can't hope the developer was wise enough to destroy and recreate appropriate amount of state.
The additional problem with exceptions in Java and C# is that many times you don't care about failure of some operations, but the language practically forces you to write catch-all statement to prevent a program crash, so you end up accidentally catching unrecoverable errors.
comment 6y ago · link · parent
comment 8y ago · link · parent
Why is imperfect reCAPTCHA worthless? Do sign up pages even allow brute forcing of usernames (once validated)?
Is he suggesting to fix sign up pages, or to allow brute forcing usernames on login?
His writing style is dramatic, but the arguments are very weak.
comment 10y ago · link · parent
comment 11y ago · link · parent
comment 12y ago · link · parent
Try sorting a million integers, my results are: std::sort: 60 ms; radix-sort (LSB, hand coded, less than 20 lines): 11 ms. It gets even better when you mix MSB with LSB for better locality.
No, there are no problems with doubles or negative integers. For sizeof(key_value)<=16 B (8 for key, 8 for pointer), radix is the best sort on desktop computers.