Update Cython vs Numba.ipynb - #1
Conversation
The primary difference in Numba vs. Cython here is that Cython refuses by default to infer fixed-size integer types for ints used in arithmetic (to avoid changing overflow behavior).
|
Wow. I did not know about that. This makes it much easier to use Cython. But can you tell me a little bit about the drawback of doing this. Why is it not the default? |
|
The goal is to be able to take your Python code, compile it with Cython, def squares(a, b): this will overflow whenever b > sqrt(sys.maxint). Even k+1 could overflow. Granted, our heuristics are probably a bit too conservative. For On Thu, Jan 14, 2016 at 9:35 AM, Helge Munk Jacobsen <
|
The primary difference in Numba vs. Cython here is that Cython refuses by default to infer fixed-size integer types for ints used in arithmetic (to avoid changing overflow behavior).