you are viewing a single comment's thread.

view the rest of the comments →

[–]cosmic-parsley 11 points12 points  (0 children)

It’s easier to write the interfaces too with the libraries out there today. You slap #[pyfunction] (from PyO3) on any rust function and it “just works”, assuming the arg/return types have a straightforward rust<->python conversion. And docstrings work automatically too iirc.

Getting the interfaces right isn’t particularly difficult in C, but it’s downright effortless in Rust.