At my company, we have knowledge engineers and software engineers. The knowledge engineer do their job in Perl or Lisp and produce code that gets ported to C/C++ by the software engineers.

There are several reasons for this setup, but the upshot is that the knowledge engineers can do their work quickly and efficiently, while the software engineers take care of speed issues, stability and maintenance, each concentrating on what he's best at.

However, the price to pay for me is that I have to refrain from using Perl to the extreme, in the sense that I can't use idioms that are too hard to translate to other programming languages, e.g. C/C++

This might be the point to draw the line for those who ever want to get their code ported (as well as those who'll have their code ported, willingly or otherwise).

map is easy to translate, grep a little harder, but a file slurp?

Just my US$0.02...

        -gjb-

In reply to Re: Idioms considered harmful by gjb
in thread Idioms considered harmful by rinceWind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.