I don't think that Python would be the right language for such low-level performance maxxing endeavor. I would have picked C++ but t was eye opening for me to see how rust enabled such low level optimization, so I'm grateful for the choice.
C would be useful to the broadest audience. C++ programmers can read C while C programmers cannot always read C++, especially when the newer language constructs are used. I mentioned Python because of its popularity.
Interesting, the Algorithmica article the author cited is in C:
As far as I can tell, the community is largely divided into three major groups. Those that can read C, those that can read Python and those that can read both. Using either of them would have dodged criticism that your code examples are not accessible to much of the community.
That said, you are right that Python is not the best language to use when you need to use intrinsics, as you would be writing it in another language and using the Python FFI to access it.
ryao|1 year ago
Interesting, the Algorithmica article the author cited is in C:
https://en.algorithmica.org/hpc/data-structures/s-tree/
npalli|1 year ago
curiouscoding|1 year ago
Anyway very happy that this is also showing off what rust can do
ryao|1 year ago
That said, you are right that Python is not the best language to use when you need to use intrinsics, as you would be writing it in another language and using the Python FFI to access it.
oguz-ismail|1 year ago
To people who already know Rust, yes. To others, not so much