News for hackers. Stuff that matters.
Re:Making Python 100x faster with less than 100 lines of Rust by Yoric on Thursday March 30, 2023 @12:59PM (#35375777)
Do you have examples? I cannot think of a good way to do that.
Re:Making Python 100x faster with less than 100 lines of Rust by jmalicki on Thursday March 30, 2023 @11:50PM (#35382315)
For python, you can use pandas. It even has arrow support now.
Re:Making Python 100x faster with less than 100 lines of Rust by Yoric on Friday March 31, 2023 @01:59AM (#35383184)
Yeah, I need to try it.

But the parent was suggesting that metaprogramming could make readability issues go away and I can't wrap my head around how it would do that.

Re:Making Python 100x faster with less than 100 lines of Rust by rsfern on Friday March 31, 2023 @10:36PM (#35396477)
In Julia you can use https://juliaarrays.github.io/StructArrays.jl/stable/ which lets your code use the array of structs interface but internally it’s a structure of arrays
Re:Making Python 100x faster with less than 100 lines of Rust by Yoric on Saturday April 01, 2023 @05:16AM (#35398642)
Nice, thanks!