Donnerstag, Juli 16, 2015

Wird Rust (die Programmiersprache) spannend?

C in sicher?

Rust doesn't just detect leaks, it also:

  • frees everything for you, like a garbage collector, but it's not.

  • prevents access to something that has been freed.

  • prevents modifying an iterator while it is being used.

  • prevents all memory corruption bugs.

  • automatically disposes other kinds of resources, not just allocated memory.

  • prevents two threads from having simultaneous access to something.

That last bullet is worth repeating: With Rust, you never stare at your code trying to figure out if it's thread safe or not. If it compiles, then it's thread safe.

Safety is Rust's killer feature, and it is very compelling.

Keine Kommentare: