Linked by Thom Holwerda on Wed 3rd Apr 2013 15:41 UTC
Mozilla & Gecko clones Big news from Mozilla and Samsung today: the two have been working on a new browsing engine together, developed from the ground-up to be completely new, and it's written entirely in Rust, a new safe systems language developed by Mozilla. "Rust, which today reached v0.6, has been in development for several years and is rapidly approaching stability. It is intended to fill many of the same niches that C++ has over the past decades, with efficient high-level, multi-paradigm abstractions, and offers precise control over hardware resources. But beyond that, it is safe by default, preventing entire classes of memory management errors that lead to crashes and security vulnerabilities. Rust also features lightweight concurrency primitives that make it easy for programmers to leverage the power of the many CPU cores available on current and future computing platforms." The work is on-going, but of course, all code is out there right now.
Thread beginning with comment 557441
To read all comments associated with this story, please click here.
Sex on a cruise ship
by kwan_e on Wed 3rd Apr 2013 16:57 UTC
kwan_e
Member since:
2007-02-18

Why is C++ like having sex on a cruise ship? Because it's fucking close to C.

----------------

Anyway, visited the Rust website. Read the stuff. For a moment I thought I was reading the C++11 standard. The "C++" that gets mentioned as a contrast to Rust doesn't resemble any C++ that I know of, other than C++ written in a Java style.

Diamond inheritance keeps getting mentioned as a problem when in fact inheritance isn't even that useful in C++ in the first place.

Reply Score: 3

RE: Sex on a cruise ship
by moondevil on Wed 3rd Apr 2013 17:17 in reply to "Sex on a cruise ship"
moondevil Member since:
2005-07-08

Have you ever done enterprise C or C++?

Guess where most J2EE architects used to program before.

Reply Parent Score: 3

RE[2]: Sex on a cruise ship
by kwan_e on Thu 4th Apr 2013 00:17 in reply to "RE: Sex on a cruise ship"
kwan_e Member since:
2007-02-18

Have you ever done enterprise C or C++?

Guess where most J2EE architects used to program before.


But did they program in the same style? Did they program Java SE as well and picked up the bad habits from there? The fact that they moved from C++ the J2EE suggests that they found C/C++ not very amenable to the Java style.

Reply Parent Score: 2

RE: Sex on a cruise ship
by TemporalBeing on Wed 3rd Apr 2013 17:22 in reply to "Sex on a cruise ship"
TemporalBeing Member since:
2007-08-22

Diamond inheritance keeps getting mentioned as a problem when in fact inheritance isn't even that useful in C++ in the first place.


If you don't think inheritance is very useful in C++ in the first place, then my guess is that you really don't understand it.

Now I'm not a big fan of multiple inheritance - or rather using it in ways that lead to the Diamond Inheritance problem - but I have found inheritance to be very useful in C++.

Reply Parent Score: 3

RE[2]: Sex on a cruise ship
by panzi on Wed 3rd Apr 2013 20:37 in reply to "RE: Sex on a cruise ship"
panzi Member since:
2006-01-22

I wonder, are you people aware of the (at least theoretical) difference between subtyping and inheritance? Because knowing that helps with a lot of problems (well, it helps preventing broken APIs).

Reply Parent Score: 2

RE[2]: Sex on a cruise ship
by kwan_e on Thu 4th Apr 2013 00:10 in reply to "RE: Sex on a cruise ship"
kwan_e Member since:
2007-02-18

If you don't think inheritance is very useful in C++ in the first place, then my guess is that you really don't understand it.

Now I'm not a big fan of multiple inheritance - or rather using it in ways that lead to the Diamond Inheritance problem - but I have found inheritance to be very useful in C++.


Inheritance isn't as useful in C++ as it is in Java or other languages without good compile time generics support. When inheritance is used in C++, there's often no need for overblown class hierarchies that makes diamond inheritance more likely.

Reply Parent Score: 1

RE: Sex on a cruise ship
by timalot on Wed 3rd Apr 2013 21:35 in reply to "Sex on a cruise ship"
timalot Member since:
2006-07-17

I've programmed C++ before. It can be difficult with all the inheritance stuff, but the best part is you can have sex on a cruise ship when needed.

Reply Parent Score: 1