News for hackers. Stuff that matters.
Re:Redox: A Rust Operating System by geofft on Tuesday September 29, 2015 @08:20PM (#10300864)
Not only do scripting languages generally use GC or at least refcounting, but most scripting languages (Python, Ruby, JavaScript, Lua) are either difficult to use with guaranteed thread-safety or simply do not support multithreading at all. If you don't have multithreading, you can't have data races (by definition), and it's harder to hit race conditions. It's still possible -- you can queue a callback that operates on data that's invalid -- but lots of programs will never care.

Rust is intended for performant, close-to-the-metal (hence the name) programming, so mandatory GC/RC won't cut it, but a single-threading restriction won't cut it either. And I think the way the borrow system implicitly gives you all the properties needed for thread-safety is one of the best things about Rust's design.

http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.ht...

There are no comments on this comment yet.