From: "Marin David Condic, 561.796.8997, M/S 731-96" <condicma@PWFL.COM>
Subject: Re: general-purpose vs domain-specific programming languages
Date: 1998/01/08
Date: 1998-01-08T00:00:00+00:00 [thread overview]
Message-ID: <98010813283131@psavax.pwfl.com> (raw)
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.
>
<snip>
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
=============================================================================
next reply other threads:[~1998-01-08 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-08 0:00 Marin David Condic, 561.796.8997, M/S 731-96 [this message]
1998-01-10 0:00 ` general-purpose vs domain-specific programming languages Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox