Skip to content

What is the reason for choosing Rust (altium-rs) over Python (PyAltium)? #15

Answered by tgross35
Argmaster asked this question in Q&A
Discussion options

You must be logged in to vote

Totally reasonable question!

I just kind of hit a point in the Python parsing where it was difficult to work with the binary data. I could extract the files alright and do the basics, but it was just a bit hard to get the nuances of binary data when e.g. your integers aren’t sized.

Error handling too, it’s very nice with Rust’s Result that you know exactly what kind of errors you might get and have to either handle or propagate them: easier to miss errors that get thrown in Python. Plus I have wrote .context that let me add a comment to a “actions backtrace” before propagating it, in one line (example]), which is quite helpful.

I plan to expose Python bindings to this library via PyO3 sin…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Argmaster
Comment options

@tgross35
Comment options

Answer selected by Argmaster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants