by linkingday · 7y ago · 0 comments
[1] https://discourse.julialang.org/t/not-only-for-technical-com...
Numerical code is always written in numpy which can drop the GIL.
Think of it this way: A single threaded C++ or Rust program can do more work per second than a hypothetical GIL-free CPython with 64 cores...
That's very context dependant. With annotations, typical calculations compile to C code roughly equivalent to native. The more of the actual runtime you use, the more you call into cpython which can't be sped up this way. Cython compiled code will be somewhere between C and cpython in terms of speed, but putting a single number to it will be always misleading.