Linked by Eugenia Loli on Mon 10th Oct 2005 16:48 UTC, submitted by Shlomi Fish
General Development Shlomi Fish has written a new essay titled "When C is the Best? (Tool for the Job)". Its theme is giving several reasons (besides high speed and low memory consumption) why some code should still be written in C.
Thread beginning with comment 42798
To read all comments associated with this story, please click here.
Portability
by whartung on Mon 10th Oct 2005 21:48 UTC
whartung
Member since:
2005-07-06

There was an interesting comment, it's from a "LAMP" guy about portability. He's advocating a new development platoform based on, I think, PHP. The guy used to be high up on the Sun App Server team, can't think of the name.

Anyway, he basically made the thesis that portability is simply a red herring. When everyone is running Intel/Linux, portability is no longer an issue.

This is a similar theme used by many advocated for single sourced languages (like Python or Perl), and how there code is more portable than, say, Common Lisp is. Since all of the language implementations are essentially the same source based (there is but a single Python interpreter, for example (modulo Jython)), Python code is therefor more portable across platforms than Common Lisp, since there are few cross platform, single implementation CL's out there (CLisp is the most prevalent of the free ones I believe).

So, by the same token if you limit your enterpise to Intel machines and Linux, then you have no portability problems at all. Yet, due to the large variety of configurations that Intel/Linux provide, you don't really lose anything by constraining yourself to that platform, so what benefit portability if the given platform is so capable?

I think he has a point, though I would in fact argue that the most flexible platform in terms platform would be Solaris/Sun, even though they're a single vendor, given that your code will work on their lowest end 1 CPU boxes as well as their super duper 64 CPU monsters. If you stick to source code portability, and follow their published guidelines, Solaris source should port readily from SPARC to x86 (running Solaris x86, of course).

But, in truth the Intel/Linux argument is strong. Save for a monster mega multi-CPU behemoth room heater to run, say, Oracle, there is very little the Intel/Linux platform can not do today.

Of course, this has been the MS argument for some time. No need for portability if all you wish to run is Windows.

Reply Score: 1