🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2

Re: Comparing Power (Expressivity) of Two Languages

#2
From: Andre Marien
Date: Tue, 27 Oct 1992 08:55
45 lines
2572 bytes
Thomas M. Breuel writes:

> ...
> and Prolog may be well suited to writing "meta-interpretors" (sic), 
> ...
> The advantages each of these languages have for each of these domains
> lies in the standard data types, libraries, and programming
> environment available for them. As languages, however, they are not
> very "expressive", lacking variously important features like closures,
> continuations, static type systems, and module systems.
> ...

I could not resist when I saw the quote about Prolog.
If even people with your background (Institut Dalle Molle d'Intelligence
Artificielle Perceptive) think Prolog MAY be suited for meta-interpretors
(ONLY seems implied), something is quite wrong.

Meta-interpreters is the best way to let Prolog look bad.
Source-to-source transformations are made real easy for the same reasons
meta-interpreters are easy, but are much more valuable: it is very easy
to write pre-compilers etc. in Prolog.

When you quote the lacking features, you are missing something too.
All commercial systems have had module systems since long. You might have
tried an old PD version (C-Prolog ?). As for continuations, you will
be able to find a complete implementation of Prolog based on continuations,
and other papers about continuations and Prolog.
The lack of type systems is often referred to as the advantage of dynamic
typing. A lot of effort goes into type checking and type derivation
for performance and correctness reasons too.

Your best argument in favor of Prolog is the quote:
> ...
> The
> quickest, cheapest, and most practical way to get a programming job
> done is usually not by writing the shortest program, but by writing
> clear, unsurprising, reusable, and debuggable code.
> ...

In IMHO, far to many people criticise languages and start rolling their
own-is-better (TM :-) language before having gone to the limit to really
find out about what exists.

Andre' Marien
bimandre@cs.kuleuven.ac.be
Technical Details
Message-ID: <1992Oct27.085556.14155@cs.kuleuven.ac.be>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!bimandre

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!bimandre
From: bimandre@cs.kuleuven.ac.be (Andre Marien)
Subject: Re: Comparing Power (Expressivity) of Two Languages
In-Reply-To: tmb@arolla.idiap.ch's message of 26 Oct 92 20:23:44 GMT
Message-ID: <1992Oct27.085556.14155@cs.kuleuven.ac.be>
Keywords: meta-interpreters, Prolog, continuations, modules, types
Sender: news@cs.kuleuven.ac.be
Nntp-Posting-Host: saturnus.cs.kuleuven.ac.be
Organization: Dept. Computerwetenschappen K.U.Leuven
Date: Tue, 27 Oct 1992 08:55:56 GMT
Lines: 46