News for hackers. Stuff that matters.
Re:Plan 9 from Bell Labs in Cyberspace by majewsky on Tuesday March 23, 2021 @08:29PM (#26562097)
I'm not overly familiar with Plan 9, but a significant advantage of the filesystem as an API is that it composes well. You can put any service inbetween that consumes the existing file and provides a new file with the same API contract, but different behavior (e.g. a /dev/screen that's cropped to a certain area, or that inverts colors on everything drawn into it). Then you can make a new mount namespace where the new file is put in the place of the old file, so that the actual process consuming it has no idea that someone is sitting in the middle. With a traditional shared object, you'd have to engage in LD_PRELOAD shenanigans to achieve the same, or if the library is statically linked and does not have any hooks, you're straight out of luck.
Re:Plan 9 from Bell Labs in Cyberspace by bombela on Tuesday March 23, 2021 @08:39PM (#26562151)
In other words, it gives you a system wide way to override any APIs. As long as you are compatible with the ABI of course.
Re:Plan 9 from Bell Labs in Cyberspace by majewsky on Tuesday March 23, 2021 @08:56PM (#26562265)
At the cost of probably making all APIs a bit less efficient. Now I wonder if any Plan 9 derivative offers a 3D rendering API?
Re:Plan 9 from Bell Labs in Cyberspace by pjmlp on Wednesday March 24, 2021 @04:17AM (#26564694)
No, and even for 2D it lacks acceleration.
Re:Plan 9 from Bell Labs in Cyberspace by nix23 on Wednesday March 24, 2021 @05:41AM (#26565173)
Not true:

http://www.cs.cmu.edu/~412/lectures/2009-10-23_radeon.pdf

>>Provide 2D acceleration via the 3D engine.

Re:Plan 9 from Bell Labs in Cyberspace by pjmlp on Wednesday March 24, 2021 @06:45AM (#26565546)
I stand corrected, however 2009 is already past the time I was paying attention to Plan 9.
Re:Plan 9 from Bell Labs in Cyberspace by kragen on Wednesday March 24, 2021 @11:24AM (#26568404)
As explained in the abstract of the paper I linked above, 8½, the Plan 9 window system, has supported 2-D acceleration since at least 01992. I also mentioned this in my comment, which additionally outlines how this acceleration support works across networks.