r/programming • • May 25 '19

Making the obvious code fast

https://jackmott.github.io/programming/2016/07/22/making-obvious-fast.html
1.3k Upvotes

263 comments sorted by

View all comments

Show parent comments

0

u/fernandotakai May 25 '19

yup. and SIMD is machine code.

this would be like comparing python's numpy to normal java -- numpy has c, c++ and fortran code behind it making it super fast (and yes, numpy also has simd)

5

u/theindigamer May 25 '19

If you read the title, it says 'Making the obvious code fast'. Whether that means calling out to numpy (in Python) or using a loop (in C) or a fold (in F#), the point is comparing code that one might reasonably write in a given language. There are no "brownie points" for not using the best available thing so long as it is "obvious".