Content deleted Content added
No edit summary |
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5 |
||
(25 intermediate revisions by 21 users not shown) | |||
Line 1:
{{Short description|None}}
{{Infobox programming language
| name
| developer
| logo
| paradigm
| typing
| major implementations
| year
| designer
| latest release version =
| latest release date
| influenced_by
| influenced
| operating_system
| license
| website
}}
'''ECL''' (Enterprise Control Language) is a declarative, data
== History ==
ECL was initially designed and developed in 2000 by David Bayliss as an in-house productivity tool within [[Lexis-Nexis|Seisint Inc]] and was considered to be a ‘secret weapon’ that allowed Seisint to gain market share in its data business. Equifax had an SQL-based process for predicting who would go bankrupt in the next 30 days, but it took 26 days to run the data. The first ECL implementation solved the same problem in 6 minutes. The technology was cited as a driving force behind the acquisition of Seisint by [[LexisNexis]] and then again as a major source of synergies when LexisNexis acquired ChoicePoint Inc.<ref>
== Language constructs ==
ECL, at least in its purest form, is a declarative, data
=== Hello world ===
ECL is to have succinct solutions to problems and sensible defaults. The "Hello World" program is characteristically short:
Perhaps a more flavorful example would take a list of strings, sort them into order, and then return that as a result instead.
<syntaxhighlight lang="ecl">
// First declare a dataset with one column containing a list of strings
// Datasets can also be binary, CSV, XML or externally defined structures
Line 37 ⟶ 38:
SD := SORT(D,Value);
output(SD)
</syntaxhighlight>
The statements containing a <code>:=</code> are defined in ECL as attribute definitions. They do not denote an action; rather a definition of a term. Thus, logically, an ECL program can be read: "bottom to top"
OUTPUT(SD)
What is an SD?
<syntaxhighlight lang="ecl">
SD := SORT(D,Value);
</syntaxhighlight>
SD is a D that has been sorted by ‘Value’
What is a D?
<syntaxhighlight lang="ecl">
D := DATASET([{'ECL'},{'Declarative'},{'Data'},{'Centric'},{'Programming'},{'Language'}],{STRING Value;});
</syntaxhighlight>
D is a dataset with one column labeled ‘Value’ and containing the following list of data.
=== ECL primitives ===
ECL primitives that act upon datasets include
=== ECL encapsulation ===
Whilst ECL is terse and LexisNexis claims that 1 line of ECL is roughly equivalent to 120 lines of C++, it still has significant support for large scale programming including data encapsulation and code re-use. The constructs available include
=== Support for Parallelism in ECL ===
Line 65 ⟶ 66:
=== Comparison to Map-Reduce ===
The Hadoop Map-Reduce paradigm
{| class="wikitable"
|-
Line 78 ⟶ 79:
| SHUFFLE (Phase 1)
| DISTRIBUTE(,HASH(KeyValue))
| The records from the mapper are distributed
|-
| SHUFFLE (Phase 2)
Line 86 ⟶ 87:
| REDUCE
| ROLLUP(,Key,LOCAL)
| The records for a particular KEY value are now combined
|}
Line 94 ⟶ 95:
== External links ==
* [http://rosettacode.org/wiki/ECL Rosetta Code ECL category]
* [https://hpccsystems.com/training/documentation/ecl-language-reference/html ECL Language Reference] {{Webarchive|url=https://web.archive.org/web/20210116135748/https://hpccsystems.com/training/documentation/ecl-language-reference/html |date=2021-01-16 }}
* [http://www.bloomberg.com/apps/news?pid=newsarchive&sid=aBuqYZDOSPL4&refer=uk Reed Elsevier's LexisNexis Buys Seisint for $775 Mln]▼
* [
▲* [
* [https://archive.today/20130201091208/http://www.reuters.com/finance/stocks/keyDevelopments?symbol=ENL&pn=15 Reed Elsevier]
[[Category:Declarative programming languages]]
[[Category:Data-centric programming languages]]
[[Category:Big data]]
[[Category:Statically typed programming languages]]
|