From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: Ian Dall Subject: Flexible Choice of Language (Nothing to do with: Final kick at the "Merced Guessing Game") Date: 1997/10/16 Message-ID: <873em2idqg.fsf_-_@hfrd015.dsto.defence.gov.au>#1/1 X-Deja-AN: 281204875 References: <61g30t$o2n@news-rocq.inria.fr> <343C34A7.B715A348@tonys.ecology.umn.edu> <3440F805.C98BB347@tonys.ecology.umn.edu> <61tfaa$9fr@sis.cambridge.arm.com> <3442F866.36A8BB69@tonys.ecology.umn.edu> Organization: Defence Science and Technology Organization. Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Craig Burley writes: > A given person can manage only so much complexity at a time. > If he's spending mental energy coping with a missing feature > (such as multi-dimensional arrays, or pointers), that's energy > not being spent on the *application*, meaning he's probably > going to forget something important, or not have time to test > some feature, in the application. When I went to school (quite some time ago) I was taught I should use the appropriate language for the job. This is still good advice, but there are factors which tend to prevent one doing this. One is that there may be a limited range of languages available. In my first job the choice was PDP 11 assembler or Fortran IV. When I needed pointers I did it in assembler, the rest in Fortran. Another factor is incompatibility. Most largish projects have bits which could be best written in one language and bits which could best be written in another language, however, they may not be compatible and are almost certainly not portably compatible. Digital tried to address this problem in VMS, with a universal calling convention, which is good as far as it goes. The problem is that it is difficult to have a standard/convention which is flexible enough for all future language developments. There is an even more serious compatibility problem. Languages such as C++, lisp, java, prolog have extensive run time support. Whilst it is common for languages such as this to support calling C or Fortran procedures, doing things the other way around is impossible in practice and may even be impossible in principle. Lastly, as you say, as person can manage only so much complexity at a time. What you don't say is effort spent maintaining expertise in many languages is effort not spent producing the application. In short, regrettable though it may be, there are good reasons for people to pick a reasonably flexible language and stick with it. It is so obvious that different languages have different strengths it is not worth debating. A more interesting discussion would be: How do you reduce the barriers to using the most appropriate language for the job? Ian