Paradigm | array |
---|---|
Designed by | Wai-Mee Ching |
Developer | Hanfeng Chen (Rapidsoft) |
First appeared | 2011 |
Stable release |
0.3 / August 10, 2015
|
Typing discipline | dynamic |
OS | Cross-platform |
Filename extensions | .esf .eli |
Website | fastarray |
Major implementations | |
C++, Qt | |
Influenced by | |
APL, Q |
ELI is an interactive array programming language system based on APL. It has the most of functionalities of ISO APL standard. In addition to classical APL, ELI features list for non-homogeneous or non-rectangular data, complex numbers, symbols, temporal data, and control structures. A scripting file facility helps a user to easily organize programs in a fashion similar to using #include in C, which also provides convenient data input/output. Moreover, ELI has dictionaries, tables and a basic set of SQL-like statements. For performance, ELI offers a compiler restricted to flat array programs.
By replacing each APL character with one or two ASCII characters, ELI retains APL’s succinct and expressive way of doing array programming, i.e. compared with MATLAB or Python, ELI encourages a dataflow style of programming where the output of one operation feeds the input of another that results in greater productivity and clarity of code.
ELI is free and available on Windows, Linux and Mac OS.
ELI version 0.3 has been released on August 10, 2015. It integrates with a cross-platform IDE, ELI Studio. The ELI Studio provides a code editor with specialized functionalities to easily write/load ELI code. Moreover, three additional widgets are used to monitor functions, variables, libraries and command history.
New medias:
A line of ELI executes from right to left as a chain of operations; anything to the right of ‘//’ is a comment.
Exclamation point (!) is an interval function. It can generate a vector of n integer from 1 to n.
The execution order of ELI is from right to left and all primitive functions have equal precedence.
In next example a function add
is declared in a short function form. Then, the arguments of the function can take either a scalar or a vector.
The $
rotation operator returns the reverse order of a vector.
A 2-by-3 matrix (or higher dimension array, e.g. 2 3 4#!24
) can be generated by #
with left argument 2 3
.
In first line below the x
is assigned with a vector from 1 to 20. Then, 1 = 2|x
returns odd number True
and even number False
. The /
is a primitive function for compression which picks up the value in x
corresponding to the True
values in its left argument.