Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

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

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:Dosbox in a browser? (Score 5, Informative) 54

by db48x (#49623773) Attached to: Twitter Stops Users From Playing DOS Games Inside Tweets

I'd say it's gotten a bit metaphysical at this point. The browser is is running the Javascript inside of a sandbox. This particular javascript file is a cross-compiled version of Dosbox, plus some API wrappers to make Dosbox think that it's running in Linux with SDL2. Dosbox in turn is emulating the CPU and hardware of a typical 386, as well as providing implementations of various DOS facilities.

Browser exploits exist (or at any rate have existed in the past, and may exist in the future; a 0-day may or may not exist at any given time), and most of them use Javascript in some way; this much is true. However, why write a DOS program that tricks Dosbox into tricking Emscripten into running that exploit when you could just run the exploit directly? This might be a great way to show off, but wouldn't be very practical.

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: Re:Don't forget Firefox Hello! (Score 1) 147

by asa (#49125077) Attached to: Firefox 36 Arrives With Full HTTP/2 Support, New Design For Android Tablets

Videoconferencing from any device on the planet without installing any special software is bloat?

YES, in the same way that every user on the planet would probably want a calculator once in a while but that doesn't mean the browser needs to add one!

Firefox comes with a couple of calculators built in. It has since before it was called Firefox.

The world will end in 5 minutes. Please log out.

Working...