Python is memory safe? Can’t you access/address memory with C bindings?

You are viewing a single thread.
View all comments View context
0 points

I’d probably say it depends but I’m no Rust expert and I have no direct experience with C (though quite familiar with C++).

Basically I’d expect writing C to be easy, but not safe. IE you can quickly and easily write C that compiles but has runtime issues. Rust for the most part will catch everything but logic issues during/before compilation meaning once the program runs you’ll have very high confidence in it’s runtime behavior leading to time spent “fighting the compiler” instead of figuring out wtf is going wrong at runtime.

permalink
report
parent
reply
-1 points

IE you can quickly and easily write C that compiles but has runtime issues.

So what’s “easy” about it then? Just getting something to compile? That’s not a very good measure of “easyness”.

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

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



Community stats

  • 3K

    Monthly active users

  • 895

    Posts

  • 7.8K

    Comments