News for hackers. Stuff that matters.
Re:Axle OS by grepfru_it on Saturday May 20, 2023 @10:34AM (#36012260)
In Unix everything is a file. Linux is not Unix but tries to be like Unix. This all files represent a resource on the system. It’s hard to separate this from POSIX requirements. Lose POSIX compatibility and you end up with a half implemented system like Windows. And then you must recreate the entire application ecosystem yourself or you end up with this funky BeOS/Haiku style POSIX compatibility layer that excludes a good subset of applications that already exist.

PS /proc isn’t a file system, it is an api (that can be accessed by the file system)

Re:Axle OS by nerdponx on Saturday May 20, 2023 @02:27PM (#36014360)
How do you access the contents of /proc programmatically?
Re:Axle OS by nurettin on Saturday May 20, 2023 @02:53PM (#36014552)
read/select loop? Or am I too outdated?
Re:Axle OS by ww520 on Saturday May 20, 2023 @04:20PM (#36015198)
cat, fopen, fread, fwrite, etc.
Re:Axle OS by nerdponx on Saturday May 20, 2023 @10:46PM (#36017578)
Right, so it's an API, but it's only usable through the file system, and it's a pretty bad API. You still need to parse the crappy ad hoc format instead of getting a struct from the kernel.
Re:Axle OS by grepfru_it on Sunday May 21, 2023 @02:31PM (#36023560)
Yep. So the trade off is then app compatibility or a radical new interface
Re:Axle OS by josephg on Sunday May 21, 2023 @02:48PM (#36023695)
If it were in Linux it would probably make sense to keep both interfaces, for the time being. Existing apps can use the current interface, and newer apps can opt in to a fancier interface / api.