Re: Maximum String size in Java?

gswork_at_mailcity.com
Date: 03/14/05


Date: 14 Mar 2005 01:31:33 -0800


infobahn wrote:
> Randy Howard wrote:
> >
> > My work
> > has often (usually) involved supporting multiple (sometimes as many
> > as 8 or 9 quite often) OS and hardware platforms from the same code
> > base.
>
> It's always a pleasure to be able to know on which platforms your
> code will be running, even if there are 8 or 9 of them. It gets a
> bit scarier when you haven't a clue which platforms your code has
> to work on.
>
> I suppose that those who consider portability to be of vital
> importance are those for whom it's a daily reality. But it's
> of very little importance if your site is 100% CP/M-based,
> since obviously the company isn't going to throw out all that
> investment for the sake of... Sorry, let me start that again.
> But it's of very little importance if your site is 100% MS-DOS
> based, since obviousl... Excuse me. But it's of very little
> importance if your site is 100% Win32-bas... Win64-ba...

let's see....

year a business might adopt a new OS platform for the company

CP/M : circa 1980
MS-DOS : roughly mid-late 80's (a bit of Win16 later)
Windows 32bit: roughly mid-late 90's
Windows 64bit: it's looking like late 00's.

and keeping in mind that a major reason behind all this to do is PD's
experience of corporate programming we can acknowledge that the core
requirements of corp IT changes alot more often than the platform does
and that the core 'engine' code would also change often enough that
worrying about seperating portable from non-portable would just eat up
time for projects like these, without long term benefit.

In the meantime things like internet tech spring up and demand the kind
of code that would not have been accommodated anywhere in the original
1980 app.

And then there's all the "can we make Excel pick up that data, generate
the trend analysis then put it on our powerpoint charts and email the
team that they're ready..." type of stuff you get in organisations,
there's no point even trying to be portable then!

for general purpose code, either in PC applications or elsewhere, there
would indeed be a desire to keep the core portable, though in practice
even the core of a long lived application tends to be slowly replaced
by new code with a new interface with non portable elements of the
project.

two different angles on the same theme, two different perspectives from
two different backgrounds. Both the 'correct' approach in their
contexts.

i think we can apply standard programming answer #1 to the question
"should code always be portable?", namely: "it depends."



Relevant Pages

  • Re: Lisp Image Portability
    ... I've played around with CLISP and found that it ... an error message saying that the core has been saved using a different ... how much portability can you get ... "Memory images are not portable across different platforms. ...
    (comp.lang.lisp)
  • Re: Natural size: int
    ... C's excuse is that not all platforms have overflow detection in the first place, and for those that do the cost of overflow checking may be unacceptable. ... But aside from that, a compiler couldn't detect overflow at compile time, except for very obvious cases that even a C compiler or static checking tool might diagnose. ... Programmers who wouldn't know portability if, to paraphrase Blackadder, "it painted itself purple and danced naked on a harpsichord singing 'portability is here again'". ... Needing functionality that is not defined by the standard, but available on many or most target platforms; or being able to use optional functionality that is available on some platforms, but not all. ...
    (comp.lang.c)
  • Re: Size-specific memory access words
    ... on some CPUs). ... we give up on interfacing to C or on portability between platforms, ... portability between platforms, and we see the result in this thread). ... M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html ...
    (comp.lang.forth)
  • Re: C, really portable?
    ... So you are attempting to claim that the definition of "portability" is really the definition of "portability cost". ... Tell me how you transfer to hardware where the language is not available and I'll accept that availability of the language for targets is not part of portability. ... The fact that certain platforms don't have C compilers,, doesn't make the program itself non-portable. ...
    (comp.lang.c)
  • Re: Migrating Matlab files from Windows to UNIX
    ... opinions. ... with the guys ovear at TMW, but portability across platforms ... ardent advocates of this generic portable programming philosophy. ...
    (comp.soft-sys.matlab)