in reply to Perl Vs C,C++

Not just on what you're trying to do, but on what your requirements are. If you're writing code for a pacemaker, even C might not be good enough. If you're writing a doo-dad to index your MP3's, you're not going to write it in machine code. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Perl Vs C,C++
by mowgli (Friar) on Mar 11, 2003 at 09:50 UTC

    So, what language *would* you use to program a pacemaker? I'm not sure myself really, but I think I'd much rather go with a high-level language; C (and, even more, assembly) would be too prone to hard-to-catch errors for my taste for something like that. Perl may not be the worst solution after all. :)

    --
    mowgli

      Most embedded development is done in C variants with a ton of ASM optimizations. A lot is done in ASM, too.

      The problem with high-level languages is that the first assumption is that resources are plentiful. Embedded devices do not have plentiful resources. In fact, they are the last bastion of the C-64 type of development, where your "data" might also have "instructions", just to squeeze a few more bytes or milliseconds.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

      Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      So, what language *would* you use to program a pacemaker?

      When you start talking about embedded devices, your choices are very limited. I suspect a lot of embedded device development is done in C/C++ or assembly.


      Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd

Re: Re: Perl Vs C,C++
by Nkuvu (Priest) on Mar 10, 2003 at 23:02 UTC

    I'm sure there are plenty of people who are masochistic enough to want to write something like an MP3 indexer in machine code. OK, maybe not plenty of people. But a few. One? Maybe?

      I'm sure there are plenty of people who are masochistic enough to want to write something like an MP3 indexer in machine code. OK, maybe not plenty of people. But a few. One?

      I bet if there is anyone who woul do this then they are really masochistic and did it in straight hex.

      ;-)


      ---
      demerphq


        As an old saying says:

        Real programmers use copy con program.exe

        Jenda