Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> and replacing them with just straight up floating point calculation Not only that, the diff replaces 100-150 lines of code with 3. That's the kind of pull request I can only dream of making


Hardcoding gamma=2 is doing the heavy lifting, though.


Gamma always equals 2, so it's a natural optimization. Assuming of course you are 0 indexing the alphabet.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: