Overload all existing built-in functions#250
Conversation
certik
left a comment
There was a problem hiding this comment.
I think this looks good! Very helpful, this makes the intrinsic functions pretty much usable now.
certik
left a comment
There was a problem hiding this comment.
I think that looks good.
I wonder what the purpose of the pow function is, when we have ** in Python.
|
Perhaps once we add support for the third (optional) argument in Have you heard about aliasing and chunking? This Pytalk by Raymond is really good: https://www.youtube.com/watch?v=UANN2Eu6ZnM (start from 8:50) |
Not using this name. How does it apply here in your opinion? |
I think what Raymond wants to convey is that instead of doing computationally-expensive tasks repeatedly, we can have functions (that would do it efficiently), thereby reducing the "registers" and maintaining our cognitive capacity. I am sure he can explain it much better! |
|
Yes, you don't want to have too large loop body, otherwise you run out of registers. The compiler's unrolling facility must unroll in order to vectorize well, but not too much to run our of registers. Regarding using functions to structure your code, that seems obvious. I don't now how it applies to this PR though. :) |
absroundpow