Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Robert <no@xxxxxx>
- Date: Sun, 16 Mar 2008 13:59:43 -0600
On Sat, 15 Mar 2008 16:54:24 -0600, "tlmfru" <lacey@xxxxxxx> wrote:
Robert <no@xxxxxx> wrote in message
news:4bbmt3hscg12map55darfj7sqftcdtnhk0@xxxxxxxxxx
On Fri, 14 Mar 2008 12:44:05 -0600, "tlmfru" <lacey@xxxxxxx> wrote:allocation
Referring strictly to the question of "occurs depending on" and
pointerof memory for it: seems to me it's a non-issue. With the availability of
virtual memory, there is obviously no problem with allocating the maximum
array size: all that's actually needed in the compiled program is a
of some sort to the virtual memory segment that it's stored in.
You talk like a Computer Scientist.
Thank you. I think. Or are you saying that comnputer scientists are wrong?
They are dismissive of old technology, where old is defined as 'before my time'.
Dynamically
expanding or contracting an array with vm is a pretty problem in
under-the-cover programming but nothing more.
There is MUCH more involved when the address of the array can change.
Maybe so. But it's all handled by the vm manager/paging subsytem.
Sure. Just drop a symbolic link at the old address, pointing to the new address.
Cobol ODOs are not dynamically re-allocatable. The standard says theiraddress is static.
specifies
The virtual storage manager
looks after all the messy details and the "depending on" dataname
tothe "actually used" number of entries. I dare say the number of pointers
talking about.vm segments is unlimited since they also can be stored in a vm segment.
Of course there are performance issues here but on the other hand truly
gigantic physical memory spaces are no longer news.
There are HUGE performance issues with the kind of abstractions you're
Today I opened a Java page that took TWO MINUTES to load. When it tried touse its Send
Email function, it crapped out and provided a stack trace that was atleast 100 entries
deep.dumb user wouldn't
I'm a techie and I couldn't figure out what the problem was. A typical
stand a chance.
Pray tell - what does this anecdote have to do with varying-size arrays and
vm?
It was a general swipe at excessive abstraction.
runUnless I've missed something crucial in the discussion - only those
compilers that actually allocate space as part of the compiled unit will
dll/so thing with ainto problems with this.
No compiler does that today. Its output program could become a shared
copy of working-storage for each user process.dynamic.
But ODOs *are* statically allocated within that data space. They are not
The compiled program does not have to know anything about where the array is
actually stored in memory, real or virtual. And even if the space is
allocated statically, in one maximum-sized glump, the vm manager will smear
it out all over the paging devices. I'm talking operating system functions,
not prorgam-controlled functions. Can you say "memory leak?"
Can you say "pointer?" A pointer IS awareness of where the thing is stored in memory. When
a program calls another passing the structure, it doesn't pass the structure's name, it
passes the address. If the called program causes that address to change, there must be a
way to communicate the new address back to the caller.
You talk as though there is a layer of indirection between the program and memory, a layer
that translates 'handles' into memory addresses. Yes, there is such a layer in hardware,
but for backward compatibility the handles are made to look like a linear address space.
The reason is so programs can do arithmetic on them. If you allow arrays, the implication
is that the location of element n can be computed. If each element has a unique handle
then you have an array of handles. How do you find handle n if not by arithmetic? A string
is an array of bytes. How do you propose finding byte 2 if not by adding 1 to the address
of byte 1?
A byte is an association of bits. In a world of perfect abstraction, each bit would have a
handle. Then there would be only two bits of real data in memory: a 0 and a 1. Everything
else in the computer would be associations of handles to those two bits.
.
- References:
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Richard
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Robert
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Richard
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Robert
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Richard
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Robert
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: tlmfru
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: Robert
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- From: tlmfru
- Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- Prev by Date: Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- Next by Date: Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- Previous by thread: Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- Next by thread: Re: J4 - presentation/discussion on "Future of the COBOL Standard"
- Index(es):
Relevant Pages
|