News for hackers. Stuff that matters.
Re:Fuchsia is not Linux by billfruit on Thursday April 12, 2018 @10:00AM (#16820960)
On the other hand, large C code bases are a special kind of hell, lack of namespaces and user-defined types make it difficult to understand, modify and test.
Re:Fuchsia is not Linux by sedachv on Thursday April 12, 2018 @02:19PM (#16823514)
> On the other hand, large C code bases are a special kind of hell, lack of namespaces

Can you please name a project that you have worked on where you have run into problems because everything was in a single namespace? What was the problem, how did you run into it, and how did you resolve it?

There are a lot of advantages to namespaces. I used to believe that single-namespace languages would cause problems for large software, but working with Emacs (huge single namespace with all the libraries loaded into memory at once, so much worse than C, where you only link a subset of libraries), this problem has not surfaced. I mean literally the only difference is that ".", or whatever the language-enforced namespace accessor is, goes from being special syntactically, to being a convention. When you start to think about namespaces as trees, this makes more sense. Namespaces just push naming conflicts to the parent node. There is no magic that is going to solve conflicts or structure things well or give things clear names. All that is up to the programmer.

Re:Fuchsia is not Linux by carapace on Thursday April 12, 2018 @12:17PM (#16822396)
But we're discussing a microkernel, not a large C code base, yes?
Re:Fuchsia is not Linux by johannes1234321 on Thursday April 12, 2018 @12:34PM (#16822558)
We're discussing an operating system with a microkernel in it's heart and many things built around.