Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

is Plan9 better than UNIX? (Developers)

posted by myrkraverk, 12.08.2026, 06:37

> > > Despite the immense popularity of "UNIX", I find that a lot of *nix
> code
> > > is, shall we say, not really portable,
> >
> > If you write in C90, your code will be portable.
> >
> > Are you willing to only run C90-compliant software?
> >
> > If not, what do you expect to happen? ie what alternative do you see for
> > the world?
>
> For comparison, a long time ago the Elvis (vi) text editor built for like
> 11 OSes. That's pretty impressive.
>
> Recently I've been playing with OpenBSD i386 [sic] on a jump drive. (Yes,
> it has Elvis.) It's a fun thing to try to learn on. It does have Clang 19,
> and I did successfully build P4 (C translation) there. So that subset
> bytecode compiler (public domain!) is mostly portable (although it fails on
> macOS ... TODO; FPC's legacy installer doesn't work either). Oh, but PCC
> couldn't handle it. Yes, I'm unique enough to appreciate "standard" Pascal
> (ISO 7185). Luckily, OpenBSD also has FPC and GPC too (but no GM2 or
> OO2C).
>
> I even built David Lee's NTVDM emulator (written in C++) under OpenBSD with
> a few tiny patches. It works surprisingly well but is slightly cumbersome.
> For whatever reason, the compilers I have on Windows can't handle the code.
> Realistically, I try to write portable code nowadays, so binary emulation
> is less crucial. Then again, I still like old compilers.
>
> I also finally installed DOSEMU2 on my Linux laptop. It's one thing to say
> you're portable. It's another thing entirely to prove it.

Dear Rugxulo,

I can only speak for myself, and my primary targets for Unix code is FreeBSD and Illumos. Not necessarily in that order. I have, for the most part, given up on Linux as a target platform; one of the reasons is the apathy you described when it comes to other systems among the Linux developers.

So I have chosen to target FreeBSD, and Illumos, and only afterwards port to Linux. I can only hope other developers, of open source software and otherwise, follow my example.

Portability is an ongoing problem, everywhere. Not even the JVM was able to consistently run all Java applications across Windows, Linux, and Solaris, back in the day; I don't know if that's gotten better or worse since. Plus now we have Mac OS in the mix for modern Java. [Well, it always was, but nobody talked about targetting Mac OS with Java ca. twenty years ago.]

And now my view of the whole topic is missing, so I'll address the one who spoke about C90. C90 is not sufficient to have portable software. It's a start, but it's not. There are always operating system interfaces that have quirks that get used in all nontrivial software, and almost nobody writes a complete program with just the C standard library.

Plus, C99 is a perfectly reasonable choice now. And if required, it can be translated back to C89 mechanically, or by a human.


And finally, DOS is still a target for my own projects. Mostly with Open Watcom, but I'm open to different compilers when the situation warrants it.

Best wishes, and happy DOS coding!

 

Complete thread:

Back to the forum
Board view  Mix view
23743 Postings in 2250 Threads, 410 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum