News for hackers. Stuff that matters.
Re:r9: Plan 9 in Rust by pjmlp on Sunday May 21, 2023 @07:46AM (#36019958)
Android, ChromeOS, iOS and iPad OS have very little correlation to UNIX userspace, if any at all.

Same applies to cloud native development, when going serverless, or deploying language runtimes directly into cloud infrastructure.

So there is some hope beyond UNIX and MVS derived OSes.

Re:r9: Plan 9 in Rust by tourmalinetaco on Sunday May 21, 2023 @08:37AM (#36020264)
Aren’t all of them based on Linux, which itself is based off UNIX? So while they’re more detached, they’re still UNIX under the hood.
Re:r9: Plan 9 in Rust by flenserboy on Sunday May 21, 2023 @08:52AM (#36020393)
iOS & iPadOS are Mac(NeXT)-derived, thus are UNIX under the hood.
Re:r9: Plan 9 in Rust by mtillman on Sunday May 21, 2023 @09:23AM (#36020608)
Unix like and only mildly for iOS.
Re:r9: Plan 9 in Rust by heyoni on Sunday May 21, 2023 @09:25AM (#36020629)
Where is this mild part coming from?
Re:r9: Plan 9 in Rust by pjmlp on Sunday May 21, 2023 @09:32AM (#36020682)
http://newosxbook.com/home.html

https://www.amazon.com/Mac-OS-iOS-Internals-Programmer/dp/11...

Basically the C, C++ and Objective-C stuff, nowadays Swift as well, completly unrelated to UNIX.

Re:r9: Plan 9 in Rust by KerrAvon on Sunday May 21, 2023 @02:02PM (#36023297)
Could you elaborate a little? I don’t understand why the libraries make macOS less UNIX than some other Unixlike.
Re:r9: Plan 9 in Rust by pjmlp on Monday May 22, 2023 @02:08AM (#36027993)
Who mentioned macOS?!?

My original statement was,

> Android, ChromeOS, iOS and iPad OS have very little correlation to UNIX userspace, if any at all.

Those books show how iOS and iPad OS have very little UNIX across the whole stack, and how much was taken from OS X.

Re:r9: Plan 9 in Rust by tymscar on Sunday May 21, 2023 @10:59AM (#36021649)
Not just Unix like. For example macOS is fully unix certified:

https://www.opengroup.org/openbrand/register/brand3683.htm

Re:r9: Plan 9 in Rust by mtillman on Tuesday May 23, 2023 @12:50AM (#36039960)
It says iOS not macOS and now I’m getting downvoted for reading. Brilliant. MacOS is fully certified allowing for all that sweet government contract money.
Re:r9: Plan 9 in Rust by pjmlp on Sunday May 21, 2023 @09:18AM (#36020575)
It hardly matters when userspace doesn't expose any POSIX layer, beyond ISO C and ISO C++ standard library.

Apple stuff is unrelated to Linux.

Re:r9: Plan 9 in Rust by butterisgood on Sunday May 21, 2023 @09:38AM (#36020726)
None of Apple’s operating systems are based on Linux. iOS, MacOS, TVOS, and WatchOS are all based on XNU/Darwin, which is in the BSD lineage (predates Linux), but also incorporates the Mach Microkernel (though the OS is not a microkernel style system)
Re:r9: Plan 9 in Rust by rbanffy on Sunday May 21, 2023 @06:02PM (#36025068)
> None of Apple’s operating systems are based on Linux

Not now, but before Apple was sold to NeXT for a Steve Jobs minus $400 million, there was MkLinux. It was an interesting way to run Linux on beige PowerMacs and many places I've worked with gladly adopted it giving new life to abandoned Macs as X terminals and lightweight workstations.

Oddly enough, it has a newer Mach kernel than NeXT's OS.

Re:r9: Plan 9 in Rust by WastingMyTime89 on Sunday May 21, 2023 @09:26AM (#36020638)
I’m not sure I understand what you mean (well to be honest if blunt I think I understand and believe it doesn’t really make sense).

Android has bsd-derived core utils on top of a souped up Linux kernel. That’s pretty much a textbook Unix-like. Meanwhile Darwin is Unix-certified and a significant part of XNU was originally lifted from BSD.

Unless you meant the Java based/NDK development experience? But then you can have the same thing on a Unix machine: once you are removed enough from the OS what it is doesn’t really matter.

In a way, I think I agree with you in that I also believe that what’s happening at the lower-level matters less and less for the majority of developers.

Re:r9: Plan 9 in Rust by pjmlp on Sunday May 21, 2023 @10:33AM (#36021274)
Try to write a pure, classical, UNIX application and sell it on the Play Store.

Without rooting devices.

Likewise, try the same on iOS/iPad OS/watchOS.

Only C and UNIX/POSIX APIs, nothing else.

"Transcending POSIX: The End of an Era?"

https://www.usenix.org/publications/loginonline/transcending...

"POSIX has become outdated"

https://www.usenix.org/publications/login/fall2016/atlidakis

Re:r9: Plan 9 in Rust by yjftsjthsd-h on Sunday May 21, 2023 @11:34AM (#36021993)
By that standard, desktop Linux isn't real unix either (X11 isn't POSIX, and Wayland certainly isn't).
Re:r9: Plan 9 in Rust by edgyquant on Sunday May 21, 2023 @11:52AM (#36022182)
It’s not, that is why it’s considered Unix-like
Re:r9: Plan 9 in Rust by yjftsjthsd-h on Sunday May 21, 2023 @12:15PM (#36022381)
Okay, then Android can be unix-like too.
Re:r9: Plan 9 in Rust by pjmlp on Monday May 22, 2023 @02:07AM (#36027978)
Try to write full compliant POSIX CLI in Android.
Re:r9: Plan 9 in Rust by yjftsjthsd-h on Monday May 22, 2023 @12:21PM (#36033415)
I use termux on a daily basis.
Re:r9: Plan 9 in Rust by rbanffy on Sunday May 21, 2023 @06:00PM (#36025050)
> what’s happening at the lower-level matters less and less for the majority of developers.

Kind of. It constrains what you can do by constraining what you can represent by the semantic model the OS defines. Unix-like OSs think of processes, threads, files, networks, etc. Plan 9 unifies a lot of that - everything is represented as a file system and, in that sense, it frees one to think of networked resources as nothing more than files. Now think about the IBM i, where there is really no distinction between memory and disk storage - everything lives in a single address space. In that sense, the distinction between in-memory structures and files gets blurry.

The OS limits the approaches we take to solve problems because our programs must fit in their various fixtures to run.

We should probably one-up Steve Jobs and "Think Differenter".