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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30df5a909ff1af4 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Erlang (Was Re: Answering an Ada/COBOL Question) Date: 1999/11/17 Message-ID: <873du5ik0b.fsf@antinea.enst.fr>#1/1 X-Deja-AN: 549621664 References: <80hr16$5q2$1@nntp5.atl.mindspring.net> <80leu1$k3l$1@nnrp1.deja.com> <80mc1j$6fo$1@nnrp1.deja.com> <80piek$rd3$1@nntp1.atl.mindspring.net> Mail-Copies-To: sam@ada.eu.org Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@enst.fr X-Trace: menuisier.enst.fr 942828340 408 137.194.160.145 (17 Nov 1999 08:45:40 GMT) Organization: TELECOM Paris User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) XEmacs/21.1 (Bryce Canyon) Mime-Version: 1.0 NNTP-Posting-Date: 17 Nov 1999 08:45:40 GMT Newsgroups: comp.lang.ada Date: 1999-11-17T08:45:40+00:00 List-Id: >>>>> "Vladimir" == Vladimir Olensky writes: Vladimir> It is interesting to note that it's syntax is close to that Vladimir> used in Prolog. Right, but once must note that one strength of Prolog have been (purposely) removed: backtracking. I would qualify Erlang as a mix of Prolog and CAML, since latest releases can manipulate functions as objects, and those objects contain the whole closure of the function. This lets you do funny things that are not easily done in Ada: % adder (X) -> fun (Y) -> X + Y end. % Adder3 = adder (3). % Adder5 = adder (5). % Adder3 (10). 13 % Adder5 (10). 15 If you add that this language supports concurrency, that distribution is transparent for the programmer, that you can pass functions as objects between nodes, you get immediate code migration capabilities. Sam -- Samuel Tardieu -- sam@ada.eu.org