News for hackers. Stuff that matters.
Re:Linux is Obsolete (1992) by gkya on Tuesday June 12, 2018 @01:31PM (#17295619)
As someone completely alien to that side of computing except rudimentary stuff most people know, I never understood the reason why the drivers have to be maintained in the kernel tree. Maybe include the most common stuff, but why not have a second, distinct linux-drivers project that maintains those stuff in their own time?

Also, why we don't have a common interface to drivers at least between Linux and BSD by now? I don't like that there's animosity between the two ecosystems. That way we could have, if technicalities permit, a way for many diverse OS models to enter into the competition: if the drivers are written agains a certain standardised interface, one can code-up an OS to support that interface, and just like with POSIX, the OS would have a whole suite of drivers available from day one. Better for the driver authors too.

Re:Linux is Obsolete (1992) by AnIdiotOnTheNet on Tuesday June 12, 2018 @01:45PM (#17295796)
Linux kernel maintainers are actively hostile to the concept of a stable driver ABI. They believe that drivers are best maintained with the kernel so that they can be kept up and fixed.

Given that Linux has the broadest hardware support of any open source OS, and arguably any OS period, it's difficult to say they aren't right.

Re:Linux is Obsolete (1992) by pjmlp on Tuesday June 12, 2018 @02:12PM (#17296136)
Which is exactly what Project Treble introduces, it converts Linux into a micro-kernel design, where each driver runs in its own process with a tiny kernel presence, communicating over Android RPC mechanisms.

https://source.android.com/devices/architecture/hidl/

Re:Linux is Obsolete (1992) by snvzz on Tuesday June 12, 2018 @04:05PM (#17297468)
Are Treble drivers compatible with Fuchsia? That'd be cool.
Re:Linux is Obsolete (1992) by pjmlp on Tuesday June 12, 2018 @04:10PM (#17297514)
No idea, but I don't think so as they are completely different architectures.
Re:Linux is Obsolete (1992) by snvzz on Friday June 15, 2018 @05:17PM (#17323643)
Genode has an ABI for userspace (which includes OS components and drivers) that works across multiple kernels, which are mostly microkernels, but also Linux.

Considering Google designed both Treble and Fuchsia, it's not such a crazy idea.

Re:Linux is Obsolete (1992) by axaxs on Tuesday June 12, 2018 @02:34PM (#17296418)
I'm not saying they are explicitly wrong, but I don't think that's a useful metric. Adoption drives the drivers, not design. That's close to saying Linus was right because Linux is more used than Minix. As a fellow HNer has pointed out, companies are figuring out that depending on hardware vendors to do the right thing is a bad idea, hence Project Treble. Then again, I have a feeling it won't be too long until they scrap linux altogether.
Re:Linux is Obsolete (1992) by AnimalMuppet on Tuesday June 12, 2018 @05:45PM (#17298347)
> That's close to saying Linus was right because Linux is more used than Minix.

Well, Linus chose usefulness as a higher priority than theoretically optimal, so by Linus's standards, yes, Linus was right.

> Then again, I have a feeling it won't be too long until they scrap linux altogether.

Um... don't hold your breath. I think you're going to be waiting a long time for that one.

Re:Linux is Obsolete (1992) by axaxs on Tuesday June 12, 2018 @10:20PM (#17299755)
Sorry if my last point wasn't clear, I was speaking strictly of Google/Treble. Fuschia seems to be coming right along, I can see them going live with it within a few years.
Re:Linux is Obsolete (1992) by tracker1 on Wednesday June 13, 2018 @01:04AM (#17300394)
It sounds very interesting... I rarely go deeper that connected systems or application development myself. But would love to see some better underpinnings to a flexible UI/UX on top. I think there's lots of room for both.
Re:Linux is Obsolete (1992) by mnarayan01 on Tuesday June 12, 2018 @02:21PM (#17296262)
Nit: AIUI, the kernel has no stable API. It has no ABI period.
Re:Linux is Obsolete (1992) by yellowapple on Tuesday June 12, 2018 @04:04PM (#17297461)
There has to be an ABI in order for loadable kernel modules to exist. That's the part that's infamously unstable.

API stability is not guaranteed, though it's stable enough that the likes of Nvidia can write installers for their proprietary drivers that recompile a bit of interface glue between kernel and blob.

Re:Linux is Obsolete (1992) by mnarayan01 on Tuesday June 12, 2018 @09:33PM (#17299575)
> There has to be an ABI in order for loadable kernel modules to exist

Given a particular install, yes, but it will change independent of kernel version based on e.g. build flags and even conceivably compiler chosen, etc.

> it's stable enough that the likes of Nvidia can write installers for their proprietary drivers that recompile a bit of interface glue between kernel and blob

Well...they certainly can. It also can infuriate me beyond all reason...

Re:Linux is Obsolete (1992) by imtringued on Wednesday June 13, 2018 @08:49AM (#17302519)
The way I've understood it is that proprietary kernel modules contain an opensource part that is included in the kernel which makes a small stable API available which is then used by the proprietary kernel modules.

Making a stable API that covers the entire kernel would be a monumental task on the other hand.

Re:Linux is Obsolete (1992) by filmor on Tuesday June 12, 2018 @01:48PM (#17295849)
They are maintained in the kernel because the kernel interfaces are not stable, by choice. Here is the explanation from the kernel docs:

https://github.com/torvalds/linux/blob/master/Documentation/...

Re:Linux is Obsolete (1992) by gkya on Tuesday June 12, 2018 @02:51PM (#17296622)
That's exactly the kind of dismissive, arrogant nonsense that I won't bother reading, even if it is the formula to an infinite life:

> You think you want a stable kernel interface, but you really do not, and you don't even know it.

...

> It's only the odd person who wants to write a kernel driver that ...

And:

> stable-api-nonsense.rst

Re:Linux is Obsolete (1992) by xfer on Tuesday June 12, 2018 @03:10PM (#17296850)
Yeah right, read the couple lines that are intented as one-line TLDR and dismiss it as arrogant nonsense; you probably won't be writing drivers anyway.
Re:Linux is Obsolete (1992) by gkya on Tuesday June 12, 2018 @07:05PM (#17298884)
The document itself is a blunt dismissal it seems, anyways. And yes, I won't write any drivers if I can avoid it.
Re:Linux is Obsolete (1992) by indolering on Tuesday June 12, 2018 @04:06PM (#17297479)
Because a kernel is the interface between applications and hardware resources. Modern microkernels are ~50% architecture dependent code.

Creating a common interface would require all OS vendors to collaborate on some standard and maintain a leaky abstraction over their preferred abstraction. You can do that, but there are feature, performance, and maintenance compromises that must be made.

Re:Linux is Obsolete (1992) by jhasse on Tuesday June 12, 2018 @01:59PM (#17295973)
Keeping a common interface is hard.
Re:Linux is Obsolete (1992) by gkya on Tuesday June 12, 2018 @02:46PM (#17296565)
Isn't it harder to keep rewriting stuff?
Re:Linux is Obsolete (1992) by jhasse on Sunday June 17, 2018 @09:13AM (#17332210)
Apparently not ;)