On 12/9/2011 9:32 AM, John Gilmore wrote:
Gary Merrill writes
<begin EDITED snippet>
A couple of years ago at SHARE, in a mostly-Java-folks session, I
asked the IBM speaker why Java architected Garbage Collection . . . ,
and his reply was that that was done because Java programmers didn't
know how much memory their program needed,
so I asked if that meant that COBOL programmers were smarter than Java
programmers.
</end EDITED snippet>
I am not sure that I would not look at language characteristics first.
COBOL aggregates are compile-time bound. If you decide in a COBOL AP
that you want to process multiple vehicles in, say, an automotive
insurance one you also decide that you will also process, say, at most
10 vehicles and implicitly allocate storage for them at compile time.
In Java, on the other hand, open-ended lists may be and are frequently
used instead; their dynamic storage usage is in principle impossible
to determine, except in the not very helpful sense that use of a
two-byte signed binary counter limits the maximal number of vehicles
or the like to 2^15 -1 = 32767. (The sense in which Java is
'pointerless' is a very literal one. It has mostly adequate
surrogates for pointers.)
Note that I am aware that list processing is now possible in COBOL,
but in my parochial experience it is only done in COBOL when I do it
to show that it is possible.
Not only is list _processing_ possible, list _creation_ is also
possible in current COBOL, with the help of LE callable services.
But, alas, you're right: although I think many COBOL programmers
would be interested in doing this if it made sense in the application,
my experience is that most COBOL programmer _managers_ do not want to
take the chance(?) of challenging their staff, so they don't train them
and they may even forbid them from using the newer features.
Instead of using COBOL, where memory management can be done clearly
and explicitly, they would rather hire Java coders, who have no
control on memory management and very little understanding of what's
really going on in either the JVM or the underlying z/OS system.
There is very little chance of changing that, I'm afraid. So it
is what it is, and we soldier on.
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-355-2752
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html