News for hackers. Stuff that matters.
Re:Cosmopolitan Third Edition by zik on Wednesday November 01, 2023 @10:41PM (#38108343)
Is it the job of linux OS people to provide multi-platform executable compatibility with every other OS? That seems like a stretch considering that no OS has ever done that.
Re:Cosmopolitan Third Edition by uncomputation on Wednesday November 01, 2023 @11:53PM (#38108809)
You have it backwards on two counts. First count is the point of POSIX is any OS vendor doesn’t need to worry about any other OS compatibility. Just implement POSIX interfaces. Second count is that is OP’s exact point: it never has been done before, because too many OS vendors give POSIX very little thought. This helps realize the original vision of POSIX.
Re:Cosmopolitan Third Edition by CharlesW on Thursday November 02, 2023 @12:01AM (#38108858)
> First count is the point of POSIX is any OS vendor doesn’t need to worry about any other OS compatibility. Just implement POSIX interfaces.

I must be missing something. How are you getting from "just implement POSIX interfaces" to "compile once run everywhere"?

Wouldn't the former just promise that you could compile the same source on any POSIX-compliant OSs and get a binary that runs on that OS, on that architecture?

Re:Cosmopolitan Third Edition by gavindean90 on Friday November 03, 2023 @11:16PM (#38137826)
It's because cosmos implements POSIX in a portable way
Re:Cosmopolitan Third Edition by rhizome on Thursday November 02, 2023 @12:52AM (#38109142)
POSIX was never about binary portability.
Re:Cosmopolitan Third Edition by sheepscreek on Thursday November 02, 2023 @01:10AM (#38109243)
Well said. In reality, it has been more about supporting common system level APIs (think read, write, fork, etc).
Re:Cosmopolitan Third Edition by stephc_int13 on Thursday November 02, 2023 @04:23AM (#38110459)
The binary portability is, in practice, not the most difficult feature, as long as the CPU arch is the same. It is also kind of a hack and IMO a nice-to-have feature but not as vital as true portability.

POSIX was not limited to the Unix world, the goal was for it to be implemented by all OS vendors, and it was partially done.

Re:Cosmopolitan Third Edition by rhizome on Thursday November 02, 2023 @03:48PM (#38119008)
Doesn't matter. POSIX is "write once, compile everywhere," while this is "compile once, run everywhere." It could be that POSIX is easier to write than for Cosmo bins, shifting the balance between them! I see them as just different endpoints of development.
Re:Cosmopolitan Third Edition by hju22_-3 on Saturday November 04, 2023 @02:31AM (#38138675)
Ah, yes, let's just keep on going without trying to make things better for anyone instead. That's sure to make things better!

Improvement doesn't come from passiveness. Someone, somewhere, will have to start first.