News for hackers. Stuff that matters.
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by didntcheck on Wednesday June 21, 2023 @03:57AM (#36415699)
Sure, which lends weight to the idea that the shell should be a more extensive programming language. Then you can pass an arbitrary Predicate<File> to the finder (which would likely just be a convenience function of about 5-20 lines), and receive a list of file objects for you to do what you want with

That's the direction Powershell took, and to some extent was what other OSes were doing at the time of Unix. But Unix has become so ubiquitous and influential that we've forgotten that programs could pass more than ill-specified strings around, and that resources could implement richer interfaces rather than trying to force the file IO interface on every single one, regardless of how little sense that makes

Worse is Better may have been a useful expedience in the 20th century, but we're long overdue repaying that technical dept, to get back some of the rich OS/environment features that other camps had got working almost half a century ago. The first step would be to stop putting "Unix philosophy" on a throne

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by hutzlibu on Wednesday June 21, 2023 @04:21AM (#36415860)
"That's the direction Powershell took, and to some extent was what other OSes were doing at the time of Unix. But Unix has become so ubiquitous and influential that we've forgotten that programs could pass more than ill-specified strings around ... The first step would be to stop putting "Unix philosophy" on a throne "

Well yes, but I think it will be hard or rather impossible to convince the unix crowd of anything good coming from windows.

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by c00lio on Wednesday June 21, 2023 @06:27AM (#36416741)
There are still tons of stringly-typed interfaces in powershell.
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by hutzlibu on Wednesday June 21, 2023 @07:03AM (#36416947)
I did not say I am a big fan of the powershell or windows in general. But I would still like the few good ideas integrated into linux ..
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by iopq on Wednesday June 21, 2023 @04:48AM (#36416038)
Unix being stringly-typed is a huge problem.

For example, I found a flatpak of a system monitor and thought it was portable. Turns out, it parses `ps` output directly, but it's not compatible with BusyBox `ps` output

https://github.com/hakandundar34coding/system-monitoring-cen...

the author literally doesn't care since it works with coreutils `ps`

it's a culture problem

Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by riddley on Wednesday June 21, 2023 @09:44AM (#36418356)
Doesn't ps just parse /proc entries these days? Seems like an odd hill for that dev to die on.
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces by iopq on Thursday June 22, 2023 @02:19AM (#36428585)
I suggested for him to parse /proc in that issue tracker, but he kind of stopped reading my suggestions