Re:Making Python 100x faster with less than 100 lines of Rust
by snicker7 on Thursday March 30, 2023 @12:50PM
(#35375627)
Languages and with some sort of decent metaprogramming support can alleviate this sort of issue (see Zig, Julia, Jai, etc.)
[ Parent
| on HN ]
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