24
Compiling typed Python: types are very broad hints and they are sometimes lies.
(bernsteinbear.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Python and Rust apparently pair nicely
Could you elaborate on that point? Is it as smooth as using C?
Rust compiles to machine code like C.
Just like you can call binaries written in C from Python and return their result, you can also run binaries written in Rust. In fact, there are helper libraries to provide some syntax to do this.
I assume you meant that both Rust and C compiles into machine code? Python compiles into bytecode that is then run in a VM, Rust and C usually doesn't do that as far as I know.
I was mostly curious if it was as easy as in C. Turun's reply answered that question though. Cheers.