Future reuse of code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marco van de Voort

    Re: Future reuse of code

    In article <20030818202734 .4b497140.spamt rap@flash-gordon.me.uk>, Mark Gordon wrote:

    [snipping just a few points]
    [color=blue][color=green]
    >> Hmm. Prototypes etc? Afaik K&R had no modules or prototypes at all,
    >> the separate compilation were just externals, and parameters didn't
    >> even had to match. (iow everything happened on linker, not langauge
    >> level)[/color]
    >
    > K&R did not have prototypes, however the specification *did* allow for
    > the separate compilation of modules. That was standardised by C89.
    > However the language *did* specify that you could compile separate
    > modules (even having an extern keyword for specifying that an object
    > was external). It just does not specify how you invoke *any* of the
    > tools.[/color]

    If that is separate compilation of _modules_, then you are right. IMHO it
    isn't. Since there is no interaction between the modules whatsoever on
    compiler level, only a simple linker trick, and a modifier.

    One is trying to get several programs into one binary, not making one
    program consisting out of several modules.

    But maybe my concept of a module is a bit different than yours. Blame it
    on my Modula2 years.

    Even with prototypes I've a bit of a problem with it, but maybe I'm not
    understanding prototypes right. At least there is some interaction.
    [color=blue]
    > The original definition of Pascal did *not* specify any support separate
    > modules and provided no mechanism for specifying that an object was
    > external, so any support for separate compilation of modules was an
    > extension.[/color]

    It still doesn't I think. "external", "mangling", "calling conventions" etc
    are all beyond the scope of the language, as being compiler specific.
    [color=blue][color=green][color=darkred]
    >> > The Texas Instruments implementation of C for the TMS320C1x/2X/5X
    >> > was a fully conforming implementation and even came with a copy of
    >> > K&R2 as part of the documentation set. This was at the same time I
    >> > was dealing with all those different Pascals...[/color]
    >>
    >> K&R is no standard. ANSI is.[/color]
    >
    > The second edition (K&R2) is for ANSI standard C and is one of the most
    > commonly used and recommended reference books for it.[/color]

    IIRC that (K&R2) is quite late isn't it? 1989 or so?

    The extended standard dates from only a year later (1990), which is already
    years after Borland introduced units. (and TP/BP was actually in its zenith
    during those years, 1987-1992)

    So the only thing that remains is that you used non standards pascals,
    while you used standard C's ?

    That sounds as a cheap hack from a advocatist, but it is actually the usual
    pattern in pascal vs C discussions.

    C was simply lucky that it had a foundation in Unix, there is not much more
    to say.
    [color=blue][color=green][color=darkred]
    >> > compiler that supports ANSI C than Pascal written for any of the
    >> > compilers I mentioned.[/color]
    >>
    >> That's not true afaik (but I'm no expert, just from the old BSD days).
    >> Most K&R code mismatches or omits parameters between declaration and
    >> compilation. This was only fixed with the formal prototypes in some
    >> later standard.[/color]
    >
    > Prototypes were added with the ansi standard, but
    > extern int foo();
    > extern int bar;
    > were valid ways of declaring function foo() and variable bar without[/color]

    Declaring them, as in the other module could check them?
    [color=blue][color=green][color=darkred]
    >> > This is irrespective of whether it was embedded or
    >> > non-embedded C or Pascal.[/color]
    >>
    >> Embedded versions are often simplified, and therefore often base
    >> on older versions. Judging the state of Pascal by those is a bit odd.[/color]
    >
    > All the embedded C compilers I have used implemented the full
    > specification for a free-standing implementation. All of the Pascals,
    > including those that were *not* targeting embedded systems, used
    > non-standard, non-portable mechanisms for allowing access to symbols
    > defined in separately compiled modules.[/color]

    Possible. Yet I had the same experience.

    I didn't choose my compilers well (VC++, gcc (with BSD libc code) and C51),
    and couldn't get the code to work universally.

    Is it actually the standard that is the problem, or your choice in
    compilers and code? Maybe just because Pascal got its finest hour a bit
    early, and you had legacy code bases from pre standard times to maintain?

    And why do you lay so much emphasis on that one item, that is severely
    limited (in all implementations ) and broken (in original K&R) actually?
    [color=blue][color=green][color=darkred]
    >> > C & C++ are two distinct languages, yet you can link them relatively
    >> > easily...[/color]
    >>
    >> C++ nearly includes C, even though they are formally separate
    >> languages.[/color]
    >
    > No, C++ will report diagnostics and probably abort compilation when
    > trying to compile a *lot* of ANSI standard C. For example, if the result
    > of a malloc call is not cast C++ will reject it where as not casting it
    > is the recommended approach in C.[/color]

    That's why I said "nearly".
    [color=blue][color=green]
    >> portable :-) You probably mean that C++ and C FROM THE SAME VENDOR
    >> reasonably link well.[/color]
    >
    > The C++ standard explicitly defines some of how the linking of C and C++
    > is to be handled, such as the 'extern "C"' stuff you see in a lot of
    > headers. The C standard cooperates to the extend of guaranteeing a way
    > of identifying at compile time whether a file is being compiled as C or
    > C++ to allow you to share header files.[/color]

    Ah. So it works if I take a totally isolated C compiler? How much namemangling
    is defined (and guaranteed) by the standard?

    You only signal something with extern C. It's up to the implementation
    to do something with it *and* both *implementation s* actually have to match.
    [color=blue][color=green]
    >> OTOH that is not a problem. Most Pascal compilers also link to C. They
    >> probably also can link to eachother, only on a deeper level (directly
    >> passing file handles instead of file descriptors etc)[/color]
    >
    > However, there is no way defined to specify that external objects are
    > external C objects, unlike with C++. There is also no way to include a C
    > header file from a Pascal source file.[/color]

    (Is there a way to import a Pascal module into C then?)

    That's because Pascal doesn't include nearly the entire C language as I
    already said.

    Are you btw sure it is C++ compatibility with C, or simply C++ and C being
    usually the same compiler or variants of the same compiler that makes this
    work?

    IOW, does it work if I choose a C++ compiler "B" that has different
    structure aligning rules than C compiler "A"? And will their runtime be
    compatible?

    Anyway so one has to convert the C headers into the Pascal syntax, and
    either use non standard (but pretty common) extensions like modifiers that
    flag it like a certain "C" compiler (again e.g. alignment, but also base
    type sizes, no), or putting it in separate modules and compile them with
    special parameters. There are some other ways too (like including a "C" module
    that does this automatically). Frankly this is not really the problem.

    Yes, that wouldn't be much of a problem if C was clean and parsable, so that
    one could convert headers automatically. However it isn't. It has a macro
    processor in which a game of tetris was implemented. Nuff said.

    If you preprocess to kill the macro's, you effectively don't have a header
    anymore. I

    (Btw, you have IMHO hit a major problem with Unix here.

    You can't determine the API without having a full C compiler conforming to
    the exact implementation of the rest of the system. No wonder why configure
    is such ugly hack. Microsoft tries to work on this by imposing strict
    guidelines, and specifying a third in IDL. On *BSD and Linux it is near
    impossible to process/convert headers. I looked into Solaris headers today,
    and my first impression was that they were on the same level as *BSD)
    [color=blue][color=green]
    >> In practice yes. But the Borland group, while it far outnumbers ANSI,
    >> is x86 (and often even x86/win32) centric. So if you go outside x86,
    >> you'll encounter quite a lot of ansi.[/color]
    >
    > Whatever processor you will find a lot of ANSI standard C, even for the
    > x86/DOS/Win world.[/color]

    I was speaking of Ansi Pascal above. And I was a typical Borland Dos user
    before migrating to Unix in the early/mid nineties. Believe, the
    bulk was Borland/Microsoft specific code, and it still is.

    Even if the language is close enough to ansi C(++), the amount of extensions
    and libs used in the avg code is simply flabbergasting.
    [color=blue][color=green][color=darkred]
    >> > I bet you can use a lot of conforming C code not written for the
    >> > 8051 on an 8051, since I bet there is a conforming implementation.[/color]
    >>
    >> Maybe, but that would really strain those 256 bytes of memory.[/color]
    >
    > I just checked, and version 7 of C51 claims ANSI conformance.[/color]

    Nice, you have an URL? I can't check what version I have right now.

    And is it for the actual 8051, or for compatibles that are a lot "richer"?
    [color=blue][color=green]
    >>
    >> Yes. It is a very limited help of trying to verify that. But in
    >> practice, the standard is often not enough to build an average
    >> application.[/color]
    >
    > I've written large C applications for real world problems as part of my
    > job where only a small amount of isolated code was implementation
    > dependant.[/color]

    Ah sure, but _new_ code is never the problem. Pick the formal standard (or
    in Pascal sometimes the de-facto standard Borland), and gone is the problem.

    Post in a Pascal group, and anybody will tell you exactly the same large
    story for Pascal. And they all have codebases they port without problems.

    But somehow, each time if I'm called to work on a codebase, be it C(++),
    Java (!) or Pascal, and the project is non trivial, it is a mess. Who knows,
    maybe it is Karma, and I was Charles Babbage in a former life, and am being
    punished for never finishing the analytical machine.

    I'm actually pretty deep involved in porting a Pascal compiler (Delphi
    dialect, so pretty advanced) to as many platforms as possible. That alone
    is a codebase of 3MB pretty portable Pascal. (that's the compiler. total
    project size 50-100 MB, but there are a lot of headers in there)
    [color=blue][color=green]
    >> fix nearly every program when I got an Alpha machine)
    >>
    >> But except for that (and those original K&R code), you are somewhat
    >> right, the problem is mroe that a fully standard C program is often
    >> trivial, and no real app.
    >>
    >> Something like that is nice to show to students, but not something for
    >> IRL.[/color]
    >
    > As I say, I work on large *real* applications using standard C for 90%
    > (or more) of my work. Therefor it is useful for *real* work on *large*
    > projects.[/color]

    Sure. I know they exist. But it is the same for each other language. Java,
    Pascal, you name it. One can be lucky (specially if you set it up yourself at
    a time you already got some clue), but that is not the average situation.

    The average situation is either code so old that it probably originates from
    the Analitical Machine, and/or uses every dirty trick in the book.

    See the Java discussion. Nice on paper, but in practice it gets you nowhere.
    At least not as far as it claims.
    [color=blue][color=green][color=darkred]
    >> > So do the majority of modern Pascal implementations support ANSI
    >> > standard Pascal?[/color]
    >>
    >> Either that or Borland. Borland is proprietary, but so dominant that
    >> smaller vendors (TMT,VP) follow it, and it also has following in the
    >> open source community.[/color]
    >
    > So, you still can't share code with embedded systems. I can and *have*
    > done so for *real* work on *complex* applications.[/color]

    Depends on your view of embedded. That 8051 with its 256 would be hard
    (though I want to see an C avg app compiled for it too).

    But I run Delphi code on my m68030. The 68k implementator is still fondling
    the cg a bit to work on plain 68000's, but it would work.

    I also have a Pascal compiler for my c64 that allows small programs to be
    made, and here is the "51" variant:
    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

    (it has an extension for external procs I saw)

    However Pascal _is_ a bit more high level. Usually it requires more memory,
    both for code and runtime, at least if you maintain your own programming
    style. Don't forget Pascal is older than C.

    However you can get by that if your compiler is some what smart (dead code
    optimisation, inlining small funcs), if you don't mind being set back
    to the C level. The only real limitation I quickly can think of is local
    variables in the middle of a block. (though in theory you could try to
    put that part of the code in a inner procedure, and have that inlined. Not
    guaranteed, but C doesn't guarantee compilation efficiency either)

    Delphi is even worse in that department (compared to C++), and much
    [color=blue][color=green]
    >>
    >> Sure, but that was not what I said. I said the compilers can't compile
    >> an average program from the other.[/color]
    >
    > Berkeley DB (the one used to drive the Amazon web site, amongst others)
    > is built using gcc for Linux and VC++ for Windows. Maybe that is a well
    > written program rather than an average program.[/color]

    Is it the original version? I might actually have an old one on my BSD 4.3
    tapes, if I had a device to read them. Let's see if gcc3 eats that. I can
    adapt any codebase through time.
    [color=blue]
    > The application I work on, several hundred thousand lines of code, used
    > to be built for Windows using VC++, for Linux using gcc and for HPUX,
    > SCO, AIX and Solaris using the standard compilers from the relevant OSs.
    > This is using the *same* source files in all cases. It is also software
    > that my company earns millions from annually.[/color]

    See comments earlier. I have met with codebases like that too. (actually
    in Modula2, but that's close enough)
    [color=blue]
    > I changed this to standardising on gcc because I wanted to and gcc is
    > available for all the targets we want to support.[/color]

    Why standarise if you could already compile them with all those compilers.
    If you don't have to change a single char to have a code base for target
    A run on target B, why would you?
    [color=blue][color=green][color=darkred]
    >> > (sometime I always try to do) then the bulk of your code will
    >> > compile and run correctly on both.[/color]
    >>
    >> And be fairly trivial.[/color]
    >
    > Do you think an applications several hundred thousand lines long is
    > trivial?[/color]

    No. There are such cases. A compiler is a good example. BDB also, because
    it only uses standard files.
    [color=blue]
    > Or Berkeley DB which is used to power a lot of major web sites?[/color]

    Is that actually plain standard BDB, or something that only has its origins
    in that. Hard to do that with plain C, can't even create a critical section
    or so. Deadlocks all over the place :-)

    Or are you confusing POSIX and Ansi C?

    [time's up. Sorry]

    Comment

    • Joe Zitzelberger

      Re: Future reuse of code

      In article <20030818210057 .115c9ec7.spamt rap@flash-gordon.me.uk>,
      Mark Gordon <spamtrap@fla sh-gordon.me.uk> wrote:
      [color=blue][color=green][color=darkred]
      > > > just to name 4 families of processor off the top of my head all of
      > > > which are used in *current* projects.
      > > >
      > > > Even if you ported the JVM it would run like a snail on
      > > > tranquilisers.[/color]
      > >
      > > I used the Pascal byte code system, precursor and work-alike to modern
      > > Java, on the 6502 and Z80. And yes, it did run like a snail on
      > > tranquilisers. For that matter, so did highly tuned assembler and
      > > compiled C.
      > >
      > > Anyone who wants to license a reference implementation from Sun can do
      > > so for $150,000, IIRC, and write a very think hardware layer to get
      > > Java on thier chip/os.[/color]
      >
      > That is a lot of money to spend compared to the cost of a C
      > implementation and it probably still won't help you for all the target
      > I mentioned.[/color]

      It is a lot of money. But the last time I checked 45-odd OS vendors
      (SCO being one of them) has spent it to enable a JVM and Standard Java
      (J2SE) on their OS. You are looking to use a tiny, underpowered, way
      out of date chip and asking for future reuse in 10 years. It just isn't
      going to happen -- the 6502, even with the billion-plus that have been
      sold is not good for much more than controlling a stop light these days.

      The origin of this thread was someone looking for a language to
      (re)write an enterprise application in with an eye to being able to use
      it in 10 years.

      For the same reasons that I don't worry about being able to run
      Enterprise Cobol and DB2 on an IBM-7090 machine -- I don't think it is
      overly reasonable to worry about running a full featured JVM on a 30
      year old version of a 65xx or Z80 chip.

      I can say with great certainty that there are no enterprise data centers
      running on any of the afore mentioned chips. Not even any desktops
      anymore.

      [color=blue]
      > Taking 20K for the JVM when you have a limited memory space could be a
      > problem. It would not run on the systems where we only had 8K of ROM and
      > 2K of RAM.[/color]

      Embedded is a different world from enterprise, but given the cost of a
      6502 (about USD$0.25 when I last checked 10 years ago) and the cost of
      20k of RAM (even less), I'm not certain I would lose sleep over it
      unless i was shipping a huge number of units.

      Still, as you pointed out -- the snail on Qualudes looks quite zippy. I
      would think that given the limited memory space and the slow processor
      speed that you would not want any library code and would want everything
      hand-tuned.

      One of the reasons I recommend Java as 'portable' for non-embedded use
      is the vast, standard, binary-compatible library that is available in
      every installation. C/C++ doesn't have anything like that very rich
      library availabe on every non-embeded computer from lowly palmtop to
      huge mainframe. Where such libraries do exist for C/C++ they require at
      the very least a recompile of the application (best case) or a very
      serious rework of several things followed by plenty of debugging (usual
      case) in order to move code across OS/machine combinations.

      And finally, there is no C/C++ compiler and library that is completely
      compatible over the 45ish platforms that Java is. I'm not even sure
      there is a C/C++ library that is a complete as the J2SE, though perhaps
      I have missed some.
      [color=blue]
      > Real reviews are mandated on projects for the military and for safety
      > critical projects.[/color]
      -and-[color=blue]
      > The application I am currently working on is several hundred thousand
      > lines of code and it runs on both big and little endian machines and
      > both Windows and a variety of Unix derivatives.
      >
      > For the binary files the original author just chose one endianness and
      > wrote some code to explicitly read the files as bytewise as that
      > endianness.[/color]

      I'm glad to hear that you do the reviews on the safety and military
      projects, but you are in the minority. Take any Micro$oft product
      (please) -- does their rate of fatal flaws make you think they do
      reviews of any sort?

      Comment

      • Dr Engelbert Buxbaum

        Re: Future reuse of code

        Peter E.C. Dashwood wrote:

        [color=blue]
        > We may have our own favourite Languages and we can poddle away in a corner
        > somewhere cutting code for the fun of it, but the real world demands that it
        > get solutions. By 2015 a new generation of development software will see
        > "programmer s" removed from the loop and end users interacting and iterating
        > with smart software until they get what they want.[/color]

        Sounds like something big, clumpsy, slow and limited to some narrow set
        of tasks, that one could just as well do without.
        [color=blue]
        > Procedural code is already into Gotterdammerung . It takes too long, requires
        > too much skill, is too inflexible (the accelerating rate of change in the
        > Marketplace and in technology is another reason why it is doomed to
        > extinction) and, overall, costs far too much.[/color]

        I have a different experience. Whenever I have a complicated data
        evaluation task, I write a little pascal program to parse the data
        (which sometimes come in a strange format out of lab equipment) and do
        the necessary calcualtions. I keep a library of common task like
        integrating statistical distributions and the like, which can be
        recycled.

        This is frequently easier than using a spreadsheet for that purpose,
        which was supposed to be the easy solution for people who can not or do
        not want to programm.

        Such programs can be quick and dirty jobs with the charme of a
        Unix-filter, as I am the only one using them. For that reason I am even
        disappointed by the development that Delphi/Kylix has taken over the
        last 10 years: Bigger, more complicated and worse documented. It may
        help profesional programmers who need to make nice user interfaces. But
        little guys like me who just need a job done were better off with good
        old Turbo Pascal.

        Comment

        • Peter E.C. Dashwood

          Re: 4Re: Future reuse of code


          "JC" <Kaos_Theory99@ hotmail.com> wrote in message
          news:bhnbe1$5q5 $1@titan.btinte rnet.com...[color=blue]
          > Peter E. C. Dashwood <dashwood@enter net.co.nz> wrote in message
          > news:b3638c46.0 308161511.d8dda 7@posting.googl e.com...[color=green]
          > >
          > > I have little to add.
          > >
          > > You say you're angry. So was I. I'm tired of your cheap shots.
          > >
          > > I suggest the best policy for both of us is to simply ignore each
          > > others' posts.
          > >
          > > Please don't quote or respond to my mail in your posts, and I'll adopt
          > > the same policy with yours.
          > >[/color]
          >
          > Hollerith Cards at dawn??
          >[/color]
          LOL! I guess that would be quite appropriate, however, I refuse to engage in
          a battle of wits with someone who is completely unarmed...<G>

          Pete.[color=blue]
          >
          >
          >[/color]


          Comment

          • Jirka Klaue

            Re: Future reuse of code

            Roedy Green wrote:
            ....[color=blue]
            > the JVM itself is written in C++,[/color]

            What are you talking about? There is no *the* JVM.

            Jirka

            Comment

            • Alan Balmer

              Re: 4Re: Future reuse of code

              <top-posted on purpose>

              Hey, guys, please remove comp.lang.c from your distribution list. We
              have our own brand of flames, and yours are off-topic.

              On Tue, 19 Aug 2003 22:47:35 +1200, "Peter E.C. Dashwood"
              <dashwood@enter net.co.nz> wrote:
              [color=blue]
              >
              >"JC" <Kaos_Theory99@ hotmail.com> wrote in message
              >news:bhnbe1$5q 5$1@titan.btint ernet.com...[color=green]
              >> Peter E. C. Dashwood <dashwood@enter net.co.nz> wrote in message
              >> news:b3638c46.0 308161511.d8dda 7@posting.googl e.com...[color=darkred]
              >> >
              >> > I have little to add.
              >> >
              >> > You say you're angry. So was I. I'm tired of your cheap shots.
              >> >
              >> > I suggest the best policy for both of us is to simply ignore each
              >> > others' posts.
              >> >
              >> > Please don't quote or respond to my mail in your posts, and I'll adopt
              >> > the same policy with yours.
              >> >[/color]
              >>
              >> Hollerith Cards at dawn??
              >>[/color]
              >LOL! I guess that would be quite appropriate, however, I refuse to engage in
              >a battle of wits with someone who is completely unarmed...<G>
              >
              >Pete.[color=green]
              >>
              >>
              >>[/color]
              >[/color]

              --
              Al Balmer
              Balmer Consulting
              removebalmercon sultingthis@att .net

              Comment

              • Alan Balmer

                Re: Designing Components : WAS - Re: Re: Future reuse of code

                On Mon, 18 Aug 2003 19:23:23 GMT, "James J. Gavan" <jjgavan@shaw.c a>
                wrote:
                [color=blue]
                >
                >
                >Alan Balmer wrote:
                >[color=green]
                >> On Sun, 17 Aug 2003 22:53:38 GMT, "James J. Gavan" <jjgavan@shaw.c a>
                >> wrote:
                >>[color=darkred]
                >> >If we don't hear from each language, may we assume that particular language
                >> >doesn't have all the necessary tools ???? <G>[/color]
                >>
                >> No, but you could assume not everyone wants to play your game.
                >>[/color]
                >
                >Why assume a game was being played ?[/color]

                It was a legitimate deduction from those portions of your
                mini-flamefest which are visible from comp.lang.c. I, for one, would
                appreciate it if no more of this thread were visible from c.l.c.
                Surely the other four newsgroups you cross-posted to are a wide enough
                audience?
                [color=blue]
                > It was a legit question, what techniques do
                >you use within your language to handle such a problem - I'm not 'voting' for one
                >outcome - a genuine enquiry as to how OO programmers would handle such, from the
                >features they have in their respective languages.
                >
                >Please don't read into the message an alternative meaning. (If I had a hidden
                >agenda, be damned sure I would have asked the question in a very different
                >fashion).
                >
                >Jimmy
                >[/color]

                --
                Al Balmer
                Balmer Consulting
                removebalmercon sultingthis@att .net

                Comment

                • LX-i

                  Re: 4Re: Future reuse of code

                  Alan Balmer wrote:
                  [color=blue]
                  > <top-posted on purpose>
                  >
                  > Hey, guys, please remove comp.lang.c from your distribution list. We
                  > have our own brand of flames, and yours are off-topic.[/color]

                  If goose is going to post in ours, we're going to post in yours. ;)


                  --
                  ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~
                  ~ / \ / ~ Live from Montgomery, AL! ~
                  ~ / \/ o ~ ~
                  ~ / /\ - | ~ LXi0007@Netscap e.net ~
                  ~ _____ / \ | ~ http://www.knology.net/~mopsmom/daniel ~
                  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
                  ~ I do not read e-mail at the above address ~
                  ~ Please see website if you wish to contact me privately ~
                  ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~

                  Comment

                  • Peter E.C. Dashwood

                    Re: 4Re: Future reuse of code

                    Alan,

                    I have nothing more to say that needs to be cross posted (either on-topic or
                    off-topic) and I'm sorry if these very short posts bothered you.

                    Just as a matter of interest, is this a moderated forum? I was under the
                    impression that the language forums are unmoderated and uncensored.

                    If I'm wrong about this, I sincerely apologize.

                    Either way, I'm unlikely to post here again.

                    Pete.


                    "Alan Balmer" <albalmer@att.n et> wrote in message
                    news:15f4kvk4cv fu5aebqdt014mis r6l55nhgn@4ax.c om...[color=blue]
                    > <top-posted on purpose>
                    >
                    > Hey, guys, please remove comp.lang.c from your distribution list. We
                    > have our own brand of flames, and yours are off-topic.
                    >
                    > On Tue, 19 Aug 2003 22:47:35 +1200, "Peter E.C. Dashwood"
                    > <dashwood@enter net.co.nz> wrote:
                    >[color=green]
                    > >
                    > >"JC" <Kaos_Theory99@ hotmail.com> wrote in message
                    > >news:bhnbe1$5q 5$1@titan.btint ernet.com...[color=darkred]
                    > >> Peter E. C. Dashwood <dashwood@enter net.co.nz> wrote in message
                    > >> news:b3638c46.0 308161511.d8dda 7@posting.googl e.com...
                    > >> >
                    > >> > I have little to add.
                    > >> >
                    > >> > You say you're angry. So was I. I'm tired of your cheap shots.
                    > >> >
                    > >> > I suggest the best policy for both of us is to simply ignore each
                    > >> > others' posts.
                    > >> >
                    > >> > Please don't quote or respond to my mail in your posts, and I'll[/color][/color][/color]
                    adopt[color=blue][color=green][color=darkred]
                    > >> > the same policy with yours.
                    > >> >
                    > >>
                    > >> Hollerith Cards at dawn??
                    > >>[/color]
                    > >LOL! I guess that would be quite appropriate, however, I refuse to engage[/color][/color]
                    in[color=blue][color=green]
                    > >a battle of wits with someone who is completely unarmed...<G>
                    > >
                    > >Pete.[color=darkred]
                    > >>
                    > >>
                    > >>[/color]
                    > >[/color]
                    >
                    > --
                    > Al Balmer
                    > Balmer Consulting
                    > removebalmercon sultingthis@att .net[/color]


                    Comment

                    • Grinder

                      Re: Future reuse of code

                      > Such programs can be quick and dirty jobs with the charme of
                      a[color=blue]
                      > Unix-filter, as I am the only one using them. For that reason[/color]
                      I am even[color=blue]
                      > disappointed by the development that Delphi/Kylix has taken[/color]
                      over the[color=blue]
                      > last 10 years: Bigger, more complicated and worse documented.[/color]
                      It may[color=blue]
                      > help profesional programmers who need to make nice user[/color]
                      interfaces. But[color=blue]
                      > little guys like me who just need a job done were better off[/color]
                      with good[color=blue]
                      > old Turbo Pascal.[/color]

                      I hear what you are saying -- it is true of so many
                      environments.

                      As for Delphi, though, I've found it simple to create projects
                      that don't use any additional libraries -- that accounts for
                      about half of my Delphi projects. Tidy (but not necessary
                      tiny) console applications that rarely break 50k. To each his
                      own, but I don't want to give up my windows IDE, even if I'm
                      not programming a windowed application.

                      ....just an unsolicited two cents.


                      Comment

                      • Scott Moore

                        Re: Future reuse of code

                        Please stop crossposting to comp.lang.pasca l.ansi-iso. This topic is not
                        relivant to that group.

                        Thank you.


                        Comment

                        • Marco van de Voort

                          Re: Future reuse of code

                          In article <bhvbsk02o44@en ews1.newsguy.co m>, Grinder wrote:[color=blue][color=green]
                          >> Such programs can be quick and dirty jobs with the charme of[/color]
                          > a[color=green]
                          >> Unix-filter, as I am the only one using them. For that reason[/color]
                          > I am even[color=green]
                          >> disappointed by the development that Delphi/Kylix has taken[/color]
                          > over the[color=green]
                          >> last 10 years: Bigger, more complicated and worse documented.[/color]
                          > It may[color=green]
                          >> help profesional programmers who need to make nice user[/color]
                          > interfaces. But[color=green]
                          >> little guys like me who just need a job done were better off[/color]
                          > with good[color=green]
                          >> old Turbo Pascal.[/color]
                          >
                          > I hear what you are saying -- it is true of so many
                          > environments.
                          >
                          > As for Delphi, though, I've found it simple to create projects
                          > that don't use any additional libraries -- that accounts for
                          > about half of my Delphi projects. Tidy (but not necessary
                          > tiny) console applications that rarely break 50k. To each his
                          > own, but I don't want to give up my windows IDE, even if I'm
                          > not programming a windowed application.[/color]

                          Bloodshed Dev Pascal (site: bloodshed.net). this is a Windows IDE on top of
                          the Free Pascal compiler, and that IDE is programmed in Delphi, and source
                          is available.

                          Comment

                          • gary drummond

                            Re: Future reuse of code



                            LX-i wrote:[color=blue]
                            >
                            > Malcolm wrote:
                            >[color=green]
                            > > Java COBOL and Visual Basic I know little about. VB is unstable, COBOL is
                            > > virtually obsolete.[/color]
                            >
                            > What? COBOL is obsolete? I guess OO and .NET are obsolete too... ;)
                            >[/color]

                            Well, if they are working, in several years they won't even compile
                            the original source!

                            I purchased M$ Pascal for a college class, but the extra code to handle
                            text was larger than the code for the class assignment. M$ used non-ANSI
                            formats. The same for C and C++. I had to buy Borland to use it at home
                            for classroom assignments. M$ changed the C/C++ so much I couldn't use
                            it a year later ($300 down the tubes). From the thread, it sounds like
                            VB is in the same condition.

                            I can still compile and execute my COBOL programs from 15-30 years ago,
                            and have ported them to Microfocus and Fujitsu, with very little effort.

                            Whatever language you pick, if M$ has the standard implementation, it
                            WILL change, based on marketing impact and not functionality or
                            industry/ANSI standards.

                            Gary

                            Post to the group, this email address is forwarded to uce@ftc.gov
                            or userid=gdrumm at ont dot com to contact me direct.

                            Comment

                            • goose

                              Re: Future reuse of code

                              Joona I Palaste <palaste@cc.hel sinki.fi> wrote in message news:<bid3p2$rg $1@oravannahka. helsinki.fi>...[color=blue]
                              > goose <ruse@webmail.c o.za> scribbled the following
                              > on comp.lang.c:[color=green]
                              > > Bat Guano <bat.guano@talk 21dotcom> wrote in message news:<vjl1mqp4n 28d4f@corp.supe rnews.com>...[color=darkred]
                              > >> goose wrote:
                              > >> > but java is only available for platforms that are big enough to run
                              > >> > it.
                              > >>
                              > >> big like my mobile phone?[/color][/color]
                              >[color=green]
                              > > whats your point ? that java rnus on your mobile phone ?[/color]
                              >[color=green]
                              > > <NEWS FLASH> C probably targets that too </NEWS FLASH>[/color]
                              >[color=green]
                              > > and it also targets many that java does not run on ?[/color]
                              >[color=green]
                              > > so what exactly *is* your point ? java runs on a *fraction*
                              > > of platforms that C targets.[/color]
                              >
                              >[color=green]
                              > > does your mobile have under a K of ram ?[/color]
                              >[color=green]
                              > > thought not[/color]
                              >
                              > Do you know of implementations of C that run in under a K of RAM, then?[/color]

                              no, but if you find one, let me know :-)

                              otoh, I know of more than just a few freestanding c implementations
                              that target (but do not run on) many machines with less than a K of
                              ram.

                              goose,

                              Comment

                              • G. Hallahan

                                Demand for Cobol Programmers was : Future reuse of code

                                robert@wagner.n et (Robert Wagner) wrote in message news:<3f392324. 67080578@news.c entral.cox.net> ...[color=blue]
                                > Tom McGlynn <Thomas.A.McGly nn@nasa.gov> wrote:
                                >[color=green]
                                > >One site, http://www.techiwarehouse.com/Cobol/, had
                                > >some interesting statements about COBOL though. No source is
                                > >given so take them with as much salt as you like. The one
                                > >that caught my eye was:
                                > >
                                > > 15% of all new applications (5 billion lines) through 2005 will be in COBOL.[/color]
                                >
                                > The site also says:
                                >
                                > "Replacemen t costs for COBOL systems, estimated at $25 per line, are in the
                                > hundreds of billions of dollars."
                                >
                                > "There are 90,000 COBOL programmers in North America in 2002. Over the next four
                                > years there will be a 13% decrease in their number due to retirement and death."
                                >
                                > Lines per day published elsewhere are usually 12. (FWIW, shops I managed
                                > averaged 50 lines per day.) Taking 12 lines * $25 / 8 hours = $37.50 per hour.
                                > That's reasonable.
                                >
                                > Taking 15% of 4.6B lines / 3 years / 250 days per year / 82K programmers = 11.3
                                > lines per day. Check.
                                >
                                > I earlier estimated 40,000 mainframe COBOL programmers in the US. The 82,000
                                > figure given here looks better because it's corroborated by the other numbers.
                                > Further, 82,000 COBOL programmers / 600,000 total US programmers = 13.7%, which
                                > agrees with the 15% distribution by language.
                                >
                                > Canada's population is 9% of North America (US + Canada). I adjusted the number
                                > of programmers and lines by .91 to simplify comparison with US statistics.
                                >
                                > The Web site goes on to say, without corroboration:
                                >
                                > "The most highly paid programmers in the next ten years are going to be COBOL
                                > programmers."
                                >
                                > Why? The price of most human labor is determined in the same way as other
                                > commodities -- by supply and demand. It is not based on some imagined measure of
                                > worth or difficulty (excepting executives). Let's look at the demand side.
                                >
                                > Computerjobs.co m, which provides handy statistics, categorizes as Legacy 500 /
                                > 12,000 = 4% of openings. Some of the 12,000 'technology' jobs are
                                > non-programmers, optimistically as many as half, so 8%. DICE.com shows 550=COBOL
                                > / 7,000=(develope r or programmer) = 8%. Monster.com returns nearly identical
                                > numbers.
                                >
                                > Why is the demand for COBOL 8% rather than 15%? Because COBOL programmers stay
                                > in their jobs longer than average? Because companies using COBOL, generally
                                > large old-line ones, are creating jobs more slowly than average?[/color]


                                Although I agree that demand for COBOL application developement will
                                continue to grow, if what one Indian consulanting firm told me, a few
                                years back, is true,COBOL programmer rates probably will probably
                                drop in North America.

                                The Indian consulting firm claimed they were training over 20,000
                                cobol programmers a year in India. In the few Fortune 500 firms I
                                have worked at any new COBOL developement has been done by consulting
                                firms with Indian programmers. Maintenance and productions support is
                                being done by the US staff.

                                Comment

                                Working...