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

Chuffed about math.bits. You can always implement these yourself, these are short (albeit a bit cryptic) snippets, but having these in the standard library means that they will be regularly updated for various architectures and CPUs.

Good stuff.



> You can always implement these yourself

Check the discussion, as usual things aren't as simple as they seem: https://github.com/golang/go/issues/18616




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: