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 agree for the most part, but writing data structures with shared mutable state can be a total pain in Rust.

permalink
report
parent
reply
-1 points

How so? That’s like, the thing that makes rust awesome to write.

permalink
report
parent
reply
0 points

It’s hard to get those kinds of data structures through the borrow checker.

Try writing a doubly linked list.

permalink
report
parent
reply
-1 points

It’s because it’s hard to make them correct. It’s not any harder to write it in rust than in C. Just C lets you do it wrong

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