Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust' memory safety feature includes "fearless concurrency".

Popular GC languages like Java or Go are not able to prevent a class of data race bugs that Rust prevents at compile time. Languages like Haskell of course handle it much better, but are for a multitude of reasons not popularly used in production.

And as the sibling comment points out, GC languages are not applicable everywhere. This discussion is in the context of the first not-C language being added to the Linux kernel. Can you imagine a GC language being similarly considered?

So yes, the borrow checker is amazing. That feeling of satisfaction and confidence when the program finally compiles after a round of serious coding or refactoring is unparalleled among the mainstream languages I've tried so far.



> Rust' memory safety feature includes "fearless concurrency".

Can you give me an example?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: