From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_00,INVALID_MSGID, TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,93bb6e0ed74c3155,start X-Google-Attributes: gid103376,public From: "Marin David Condic, 561.796.8997, M/S 731-96" Subject: Re: general-purpose vs domain-specific programming languages Date: 1998/01/08 Message-ID: <98010813283131@psavax.pwfl.com>#1/1 X-Deja-AN: 314146504 Sender: Ada programming language Comments: To: gwinn@res.ray.com X-VMS-To: SMTP%"INFO-ADA@VM1.NODAK.EDU" X-VMS-Cc: SMTP%"gwinn@res.ray.com",CONDIC Newsgroups: comp.lang.ada Date: 1998-01-08T00:00:00+00:00 List-Id: gwinn@res.ray.com writes: > >The preface/introduction to the Perl manual gives the game away. Perl is >intentionally designed to allow the violation of the majority of the usual >good-programming practices and restrictions, such as the strict type >safety that Ada is so famous for. > Well that would explain where it would be difficult to implement Perl functionality in Ada and why it might not matter anyway. As you say, Perl aims for quick-and-dirty hacks and that is definitely not what Ada aims at. Still, I think there might be some value in looking at what Perl (or any other language) may provide which could be useful in an Ada implementation. The original complaint, as I recall, that Terry had was that there was no primitive for scanning a text file for a string and replacing it with another string. That would seem to be a useful bit of functionality to have in ones Ada bag of tricks. I've built dozens of "utility" packages which provide things like linked lists, command line interpreters, string manipulation primitives, realtime control utilities (digital filters, etc), math functions and lots of other things which are useful in building systems. Often these utilities mimic functionality which might just naturally exist in some other language. If there is some definable chunk of Perl functionality which could be utilized in building Ada programs, why not make a package to provide those services? In general, I prefer to avoid mixed language systems because of the cost of maintaining them. (You've got to license two or more compilers/development suites, keep the knowledge base around, worry about divergence and later incompatibilities, porting issues, etc.) There are certainly tasks that are performed better by different languages, but if I've got, say 95% of my system best served by Ada and 5% best served by Perl (or Forth, or Lisp...) I might find it to my advantage to go ahead and take the hit of developing the capability of doing that remaining 5% in Ada just to avoid having to drag around a second language and all the risks associated with that. So might there be some set of Perl primitives that could be duplicated in an Ada environment? MDC Marin David Condic, Senior Computer Engineer Voice: 561.796.8997 Pratt & Whitney GESP, M/S 731-95, P.O.B. 109600 Fax: 561.796.4669 West Palm Beach, FL, 33410-9600 Internet: CONDICMA@PWFL.COM ============================================================================= "I filled out an application that said, 'In Case Of Emergency Notify'. I wrote 'Doctor'... What's my mother going to do?" -- Steven Wright =============================================================================