Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment: Re:Commitment to stability (Score 2) 149

by roca (#49703843) Attached to: Rust 1.0 Released

Your last sentence sums it up nicely. If you stick to the safe subset of Rust (which is almost the entire language, and enough to write almost all of a high-performance Web browser in, for example) then you can't trigger undefined behaviors, and references that claim to be non-null are guaranteed to really not be null. Escaping from that subset requires you to write the "unsafe" keyword.

OTOH C++ has nothing like that. It's very very easy in practice for C++ code to accidentally trigger undefined behaviors that can cause anything to happen, and there's no way to tell at compile time whether the code is safe.

Comment: Re:Ada (Score 1) 211

by roca (#49408027) Attached to: Rust 1.0 Enters Beta

Rust offers manual memory management with automatic safety checking --- the language guarantees you don't leak memory, and you can't access an object after it's freed (assuming you don't opt into unsafe code). No other mainstream language, including Ada, offers that.

Comment: Completely reasonable (Score 2) 740

by roca (#48964109) Attached to: New Jersey Gov. Christie: Parents Should Have Choice In Vaccinations

Even the quote Slate cherry-picked to drive their click-bait headline is innocuous. Parents *do* have a right to decide what's best for their children. That right must be balanced with public health concerns, so it makes sense to make vaccination mandatory (or mandatory-for-public-schoolers) in some cases, but surely not *all* cases as you move down the scale of public health impact. In particular there will be cases where the public interest would be served (a little) by forcing everyone to be vaccinated, but that interest doesn't outweigh the additional dilution of parental rights. That seems to be all Christie said here.

Asynchronous inputs are at the root of our race problems. -- D. Winker and F. Prosser

Working...