Home

eLoc

Eloc is a high-level programming language designed to prioritize readability and predictable semantics. It was created by the Eloc Foundation and released publicly in 2015 as a tool for teaching programming concepts and for experimentation in language design. The project aims to provide an approachable syntax while supporting modern software development needs.

The language features static typing with type inference, algebraic data types, and pattern matching. Immutability is

Syntax is indentation- and keyword-based, with explicit control flow constructs such as func, if, else, for, while,

Eloc compiles to native code using an LLVM-based backend and also provides an interpreter for rapid iteration.

the
default,
with
explicit
mutability
available
when
needed.
It
includes
first-class
functions,
a
rich
standard
library,
and
interoperability
with
C
and
other
languages
via
a
foreign
function
interface.
Concurrency
is
modeled
with
lightweight
processes
and
asynchronous
message
passing,
drawing
on
actor-model
ideas.
and
match.
Functions
are
declared
with
a
concise
signature,
and
blocks
may
be
delimited
by
braces
or
indentation.
A
simple
example
is:
function
add(a:
Int,
b:
Int)
->
Int
{
return
a
+
b
}.
It
ships
a
package
manager
and
a
modular
standard
library,
with
ongoing
contributions
from
universities
and
independent
developers.
The
ecosystem
is
smaller
than
that
of
mainstream
languages
but
retains
activity
in
educational
and
research
contexts,
particularly
for
teaching
and
studies
of
language
design.