News for hackers. Stuff that matters.
Re:Making Python 100x faster with less than 100 lines of Rust by firechickenbird on Thursday March 30, 2023 @01:53AM (#35368606)
OP fully rewrote the example program in rust, by also moving the entire data structures there. This would mean that any interaction with these ndarrays could be possible only on the rust side, hence any other code that uses them must be rewritten, unless there’s some porting of rust ndarrays to python numpy ndarrays
Re:Making Python 100x faster with less than 100 lines of Rust by baq on Thursday March 30, 2023 @01:56AM (#35368632)
Yes, what did you expect? That he shares his internal code base with the world just to silence people who can’t generalize?
Re:Making Python 100x faster with less than 100 lines of Rust by firechickenbird on Thursday March 30, 2023 @02:08AM (#35368702)
No? In fact, if you understand what what I wrote, by generalizing this small piece of code it would mean that most of the codebase must be also partially rewritten to rust to be able to interoperate with the new data structures moved in rust. Thus these “less than 100 lines of code” refer to just this simple example program, which was fully rewritten in rust, hence, by generalizing, the premise was pointless