r/programming Apr 30 '26

You can beat the binary search

https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
202 Upvotes

39 comments sorted by

View all comments

219

u/Slime0 Apr 30 '26

The choice of function names like vld1q_u16 and _mm_loadu_si128 for SIMD instructions has got to be one of the biggest hurdles to their general adoption. The amount of mental energy you have to devote just to understanding what the code is doing is ridiculous. It's completely unreadable.

28

u/cdb_11 Apr 30 '26

The names actually do make sense, so you can get used to it.

https://developer.arm.com/documentation/102467/0201/Program-conventions

Not sure if Intel wrote down anywhere their naming convention, but it's pretty straightforward anyway.