comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: general-purpose vs. domain-specific programming languages
Date: 1997/12/31
Date: 1997-12-31T00:00:00+00:00	[thread overview]
Message-ID: <Pine.BSF.3.96.971231134407.21977A-100000@shell5.ba.best.com> (raw)
In-Reply-To: 01bd1616$a9110b40$24326489@Westley-PC.calspan.com


On 31 Dec 1997, Terry J. Westley wrote:
> Are you aware of any serious programming language research which
> addresses the issues of
> 
> 1) what makes one language more suited to a particular domain than
>    another, and
> 2) how does one decide when to abandon the general-purpose language
>    in favor of the domain-focused language?

These seem more like opinion/experience questions than serious programming
language research. 

> Here are the sorts of questions I would like such research to address:
>    Why do people use Perl so much for CGI programming?

Because much of what you want to do is already done, and there is a module 
available on CPAN or wherever to do it. 

>    Why can't I write some libraries so that Ada is just as easy to
>       use to search and replace data in text files as Perl?

Because you don't know how to write a regexp matcher in Ada? ;-)

Seriously, you can write more general pattern matchers as Ada libraries, 
or link with existing C/Fortran/Cobol ones if you are using Ada 95, but 
it takes work. And Perl has certain notational conveniences which Ada 
doesn't. But for the most part, I think its almost as easy to use an 
Ada library, and I find that the type safety is a huge benefit. 

(Note: If you use GNAT 3.10 or greater, you can use the Gnat.Spitbol 
library which uses SNOBOL4 style patterns. Be warned, it is GNAT specific. 
Makes you wish Ada had downward closures and out mode functions ;-)

>    Why is string and list handling so much easier in Tcl and Perl
>       than in Ada?

Lots of built in notation in the language for handling string primitives, 
and a rich set of basic operations. But the operations can be added 
easily, so I question your assertion that string and list handling is 
*so* much easier. 

IMO, list and string handling is far easier in Icon than either Perl or 
Tcl, and handling complicated data structures is easier in OCaml. But I
still prefer Ada as a general purpose, high performance, mostly type safe 
language.

-- Brian







       reply	other threads:[~1997-12-31  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01bd1616$a9110b40$24326489@Westley-PC.calspan.com>
1997-12-31  0:00 ` Brian Rogoff [this message]
1998-01-05  0:00 general-purpose vs. domain-specific programming languages Marin David Condic, 561.796.8997, M/S 731-96
1998-01-07  0:00 ` Joe Gwinn
1998-01-07  0:00   ` Robert Dewar
1998-01-08  0:00   ` Robert Munck
1998-01-09  0:00     ` nabbasi
1998-01-09  0:00       ` Philip R Ventura
1998-01-10  0:00         ` Nick Roberts
1998-01-16  0:00     ` Randal Schwartz
1998-01-16  0:00       ` Robert Dewar
1998-01-09  0:00   ` David Wheeler
1998-01-09  0:00     ` Philip R Ventura
1998-01-07  0:00 ` Brian Rogoff
1998-01-08  0:00 ` Michael F Brenner
1998-01-09  0:00   ` nabbasi
1998-01-10  0:00     ` Robert Dewar
1998-01-13  0:00       ` Thornton
1998-01-10  0:00   ` Robert Dewar
1998-01-13  0:00     ` Thornton
1998-01-13  0:00       ` Robert Dewar
1998-01-15  0:00         ` Michael F Brenner
1998-01-15  0:00           ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1998-01-12  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-13  0:00 ` Robert Dewar
1998-01-13  0:00   ` Brian Rogoff
1998-01-15  0:00     ` Stephen Leake
1998-01-16  0:00       ` Randal Schwartz
1998-01-16  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox