Re:A Python Interpreter Written in Rust
by sametmax on Saturday February 02, 2019 @08:39PM
(#19067220)
Really ? I though Python dicts and lists were actually quite fast for a dynamic language.
Ints and classes can be slow though.
Anything I don't know ?
Re:A Python Interpreter Written in Rust
by std_throwawayay on Sunday February 03, 2019 @04:37AM
(#19068638)
They are probably the fastest dicts and lists we can imagine today. If you really need lists and dicts for your data, you need them and won't gain much. But if you don't need them and instead could use something simpler, an array of C structs would be much faster than a list of dicts.
Re:A Python Interpreter Written in Rust
by sametmax on Sunday February 03, 2019 @08:35AM
(#19069479)
I though you were stating that Pythn were slow compared to what it could be, being a dynamic language.
Of course if you compare to static languages it's slow. Of course you can write low level specialized DS. Duh.
The data structures are slow by design.
The way we use these data structures is quite inefficient.
Having a fast interpreter only about doubles the execution speed in most programs leaving another factor of 50 open for future generations.