4 ms·
Historically? What changed? Everything is Javascript now? There's only one Unix now?
by dboreham 5y ago
Historically? What changed? Everything is Javascript now? There's only one Unix now?
- tyingq 5y ago>There's only one Unix now? Not quite that, but there are certainly a lot fewer with notable amounts of use. Which means, in turn, fewer compilers with unique flags...you can get away with supporting just gcc/clang. And there are fewer machines that are big endian, or have unusual byte alignment, or have a buggy built-in malloc, or don't have off_t defined, or have unusual flags to link to pthreads. And so on...all the stuff things like Configure test for.
- rwmj 5y agoPortability libraries like glib are better at hiding the differences, at least for simpler C/C++ programs. Also (sorry BSDs), there is kind of only one "Unix", which is Linux. Even if you consider Linux + BSDs + macOS, that's a lot fewer combinations than in the good old days when you might have considered a port to Solaris, HP-UX, SCO, AIX, OSF/1, ... all of which were very different. Porting programs to Windows still remains a challenge.
- tyingq 5y ago>Solaris, HP-UX, SCO, AIX, OSF/1 Just to make the problem more clear, add: Irix, Ultrix, SunOS, DG/UX, Pyramid OSX, NCR Unix, Xenix, A/UX, Bull DPX, EP/IX, ISC, MachTen, NeXT, Dynix, UnixWare, ConvexOS, Coherent, DomainOS and more... See the supported platforms for something like Kermit or Pine to see this isn't just piling on. Some real and popular software had to support huge lists like this. Perl's CPANTS testing network was neat for stuff like this, you could write a module (including C code), and watch all the various ways your code would bomb on other platforms without having direct access to them. http://www.columbia.edu/kermit/unix.html http://www.columbia.edu/kermit/unix.html http://www.mit.edu/afs.new/athena/astaff/source/src-9.0/third/pine/doc/pine-ports http://www.mit.edu/afs.new/athena/astaff/source/src-9.0/thir...