this post was submitted on 13 Sep 2023
24 points (92.9% liked)

Programming

17444 readers
184 users here now

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

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Moc@lemmy.world 5 points 1 year ago (6 children)

Python and Rust apparently pair nicely

[–] UlrikHD@programming.dev 1 points 1 year ago (5 children)

Could you elaborate on that point? Is it as smooth as using C?

[–] Moc@lemmy.world -1 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] UlrikHD@programming.dev 4 points 1 year ago

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.

load more comments (3 replies)
load more comments (3 replies)