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

tl;dr

> The general term for this concept is SWAR, which stands for SIMD Within A Register. But here, rather than using a machine register, we're using an arbitrarily long Python integer. I'm calling this variant SWAB: SIMD Within A Bigint.

Thanks to Peano and Godel, it's safe to say we may encode any compute with operations on natural numbers. So if anything is slow in Python for you, you may always encode it in Bigint and hope for the best.



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

Search: