News for hackers. Stuff that matters.
Re:Static search trees: 40x faster than binary search by curiouscoding on Tuesday December 31, 2024 @08:23PM (#42563202)
Yeah, I don't think python is the right tool here. C++ definitely would be an option though.

Anyway very happy that this is also showing off what rust can do

Re:Static search trees: 40x faster than binary search by ryao on Tuesday December 31, 2024 @10:17PM (#42563688)
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.

Re:Static search trees: 40x faster than binary search by oguz-ismail on Tuesday December 31, 2024 @10:40PM (#42563800)
> this is also showing off what rust can do

To people who already know Rust, yes. To others, not so much