News for hackers. Stuff that matters.
Re:Fuchsia is not Linux by stouset on Wednesday April 11, 2018 @10:48PM (#16817601)
Let’s say I take your assertions at face value. Supposedly qualified, intelligent engineers who were no doubt aware of these points still decided C++ was an appropriate language to implement this microkernel.

Surely there’s a reason. Why?

Re:Fuchsia is not Linux by naasking on Wednesday April 11, 2018 @10:59PM (#16817643)
> Supposedly qualified, intelligent engineers who were no doubt aware of these points

Are they aware of them? That's not so clear. There's a lot of literature in microkernel design. Lots of things have been tried which sound good but haven't worked out, and some things didn't work out well before would work well now. As usual, security also rarely gets the attention it deserves and it's doubly important at the kernel level.

Re:Fuchsia is not Linux by s2g on Wednesday April 11, 2018 @11:31PM (#16817759)
Ah, so basically anyone who doesn’t agree with you just doesn’t understand.
Re:Fuchsia is not Linux by naasking on Thursday April 12, 2018 @12:35AM (#16818003)
That would be the principle of charity in action. I would hope those who disagree would approach disagreements the same way, and one or both of us will learn the truth. Should I be assuming people who disagree with me as idiots or evil?
Re:Fuchsia is not Linux by stouset on Thursday April 12, 2018 @12:59AM (#16818127)
The principle of charity would have you assume there do exist good reasons to write a microkernel in C++. Perhaps not ones that you would agree outweigh the downsides, but at the very least I suspect there’s some argument to be made in favor that isn’t simply staggering ignorance.
Re:Fuchsia is not Linux by michaelmrose on Thursday April 12, 2018 @03:18AM (#16818682)
Wouldn't it be easy enough to assume that c++ has the necessary features, performance to do the job and the authors were presumably very familiar with c++ and decided existing expertise outweighed perceived advantages of other options?

This does not seem incredibly complicated.

Re:Fuchsia is not Linux by naasking on Thursday April 12, 2018 @08:54AM (#16820348)
> The principle of charity would have you assume there do exist good reasons to write a microkernel in C++

Except this was tried. More than once for different kernels (EROS and L4 at least), and they regretted it and then switched back to C. Both projects made many excellent arguments against C++ in a microkernel that haven't suddenly disappeared in modern C++.

So I think I am being charitable in this case because the weight of evidence suggests otherwise. It's charitable to assume that the developers are well meaning but aren't familiar with the history. This isn't staggering ignorance, just ordinary run of the mill ignorance.

Re:Fuchsia is not Linux by jensa1948 on Thursday April 12, 2018 @10:52AM (#16821522)
Can you post a reference to the arguments? Most arguments against C++ are very dated, and sometimes are comming from people whose experience is mostly as a C programmer.
Re:Fuchsia is not Linux by naasking on Thursday April 12, 2018 @11:38AM (#16822039)
That might be tough for the Shapiro's argument. The EROS site is no longer available, the mailining lists are no longer available either, and citeseer's google results aren't working at the moment. Shapiro mentions a few issues in this paper which mirror the L34 arguments below [1].

For L4, there's brief mention here of the VFiasco project which attempted a verified L4 using C++, which failed despite considerable effort [2].

[3] is perhaps a better review of what worked and what didn't work in L4 research, and they explicitly discuss the issues, such as the fact that C++ conveyed no real advantages over C, the extra complexity of C++ made verification intractable (even for a subset), and practically, the availability of good C++ compilers for embedded systems was limited.

[1] http://webcache.googleusercontent.com/search?q=cache:PQMCrw4...

[2] http://web5.cs.columbia.edu/~junfeng/09fa-e6998/papers/sel4....

[3] https://ts.data61.csiro.au/publications/nicta_full_text/8988...