Erlang (OTP 29)
This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].
Snapshot Erlang (OTP 29) — released 11 May 2026 · lifecycle current
Family Erlang — shelf: Application
The language’s main business is building general application software, with a managed runtime or a rich standard library. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.
Trajectory Erlang (1986 — development begins at Ericsson) · OTP 29 (11 May 2026 — assessed release)
Tags
Use — Application, Web back end
Paradigm — Functional, Concurrent
Platform — BEAM
Lifecycle — Current
Memory — Managed (GC)
Typing — Dynamic
Resources
The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to Erlang (OTP 29); an unmarked link is the current reference for the language.
Landing page
Specification and reference
API documentation
Tutorial
Release notes
- Erlang/OTP 29 downloads and release notes this release
1 Assessment
This page assesses Erlang in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.
Core coupling 77.4/100 · Ecosystem coupling 90.6/100 · Engineering readiness 66.1/100
1.1 Core coupling
1.1.1 Type
- ❌ Dynamic typing: A value carries its type at run time, so a type fault appears when the expression executes (T1)
- ❌ No declared parameter or return types:
-specis optional metadata, and the language has no generic type parameters (T5) - ❌ No sum types: A tagged tuple such as
{ok, Value}or{error, Reason}is a convention, and no type checks the union (T4) - ❌ Dispatch is checked at run time:
Mod:Fun(Args)resolves when called, so a missing function fails there rather than at compile time (T3) - ✅
-specand Dialyzer give optional static analysis: A success-typing pass over the compiled BEAM files detects inconsistent calls - ✅ Atoms serve as named constants: An atom such as
ok,error, orundefinedis a distinct value, so the language needs no null
1.1.2 Construction
- ✅ All data is immutable: A term cannot be changed after it is built
- ✅ A pattern in the clause head selects the construction path: The arguments decide which clause runs
- ✅ Records and maps declare named structure:
-record(user, {name, age})gives compile-time named fields over a tuple - ✅ State is a value threaded through recursion: An OTP behaviour receives its state and returns the new state, so no object owns it
- ✅ A process is the unit of mutable state: A
gen_serverowns its state and exposes it by message - ⚠️ A record is a tuple: Field access is positional at run time, so the record definition must be shared by every module that uses it
1.1.3 Memory
- ❌ Collection is per-process and non-deterministic: A process collects its own heap on its own schedule (M2)
- ✅ A private heap confines a pause: A collection affects one process, and there is no global stop-the-world pause
- ✅ No manual deallocation: The VM reclaims memory, and a program never frees a term
- ✅ Off-heap binaries are reference counted: A binary above the heap threshold is shared between processes rather than copied
- ⚠️ A large live set costs more per collection: A process that accumulates state pays a higher collection cost
- ⚠️ An ETS table lives outside the collector: The table persists until its owner deletes it or dies
- ❌ The undeclared class has no catch: atom-table exhaustion fails the node (documented), outside every catch clause and outside the supervision tree (Er6)
1.1.4 Error
- ❌ Exceptions are unchecked:
throw,error, andexitare not declared, so a caller cannot see the failure set from a signature (Er2) - ✅ “Let it crash” makes failure a supervision event: A supervisor restarts a failed process, and the normal path carries no recovery code
- ✅ Links and monitors define propagation:
link/1couples the fates of two processes, andmonitor/2reports a failure without dying - ✅ A pattern-match failure raises a defined error: An unmatched value raises
badmatch, and an unmatched clause raisesfunction_clause - ✅
try/catch/afteris available when recovery is local: Acatchclause separatesthrow,error, andexit - ⚠️ A restart resets process state: Supervision restores the process, not the data it held, so state must be recoverable
- ✅ The runtime publishes the isolation unit: a fault in a supervised process restarts a process under a declared strategy, and the supervision tree is what the program declares (OTP, documented) (Er5)
1.1.5 Concurrency
- ✅ The actor model is the core of the language: Processes share no memory and communicate by message
- ✅
spawn,link, andmonitorare primitives: Starting and observing a process needs no library - ✅ The BEAM schedules preemptively by reductions: A process cannot hold a scheduler indefinitely
- ✅ Messages are immutable values: A message is copied or shared by reference count, never aliased mutably
- ✅ Distribution is built into the VM:
net_kernelandepmdlet a process send to a node as if it were local - ⚠️ Distribution is designed, not automatic: Node failure, network partition, and message loss must be handled by the application
1.1.6 Platform
- ✅ The BEAM is portable and open source: The Erlang runtime runs on Linux, macOS, Windows, and BSD
- ✅ Hot code loading is a runtime feature:
code:load_file/1replaces a module while the system runs - ✅ A release bundles the runtime and the application:
release_handlerandreltoolproduce a deployable node - ✅ Distribution across nodes is a platform feature: Nodes discover each other and pass messages without an external broker
- ⚠️ The runtime must be present: An Erlang program runs on the VM, so the artefact is not a native binary on its own
- ❌ Poor fit for CPU-bound numerical work: The VM is not built for dense numeric computation, so that work belongs in another language (P4)
1.1.7 Trade-offs (not coupling)
- The syntax is Prolog-derived: The form is unfamiliar to most developers; this is a learning property, not a coupling
- Distribution is a design task: The language supplies the transport, and the application decides the failure semantics
- Weak CPU-bound performance is a domain fit note: The VM is built for I/O concurrency, not for numeric loops
- Hot upgrade constrains state handling: The running system can change module code, so the application must supply a
code_change/3callback to migrate state - Atoms are named constants in place of null: Absence is carried by an atom convention such as
undefined - Records are tuples by design: The representation is a deliberate choice made for compactness and speed
1.2 Ecosystem coupling
1.2.1 Performance
- ✅ The BEAM handles very many concurrent I/O processes: A process is cheap and needs no thread
- ✅ BeamAsm compiles hot code: The JIT added in OTP 24 means bytecode is not always interpreted
- ✅ Per-process collection avoids a global pause: A collection affects one process
- ✅ Reduction scheduling bounds latency: A process yields after a fixed number of reductions
- ⚠️ CPU-bound computation is weak relative to native code: A tight numeric loop trails C or Rust
- ⚠️ A NIF runs on a scheduler thread: A native function that runs long blocks other processes on that scheduler
1.2.2 Ecosystem
- ✅ Hex.pm and
rebar3cover packages and builds: A registry, dependency resolution, and release builds are all present - ✅ OTP ships with the language: Supervision,
gen_server,application, and release handling are part of the distribution - ✅ Elixir libraries are reachable through interop: The two languages run on one VM and call each other directly
- ✅ The flagship projects are long-lived and battle-tested: RabbitMQ, CouchDB, Riak, and WhatsApp’s messaging stack are Erlang systems
- ✅ OTP is documented as a first-class topic: The OTP design principles document the behaviours
- ⚠️ The library count is smaller than the mainstream: Fewer general-purpose packages exist outside messaging and telecom
- ✅ The NIF ABI is versioned and checked at load, and an older major is accepted for two releases [5] (Ec8)
- ✅ Stored terms cross on a published promise: the external term format carries its version, and Erlang/OTP systems as of R16B decode the minor-version-2 encoding that is the default as of OTP 26.0 [6] (Ec9)
1.2.3 Evolution
- ✅ The language has kept backward compatibility for decades: Code written against an old OTP release continues to run
- ✅ Hot code loading decouples deployment from runtime: A module is replaced while the system runs
- ✅
code_change/3migrates state across a version change: An OTP behaviour converts old state to the new shape - ✅ OTP release handling gives a controlled upgrade path:
release_handlerapplies a version change to a running node - ⚠️ A hot upgrade must be designed: State migration and dependency order are the application’s responsibility
- ❌ Build variants multiply: -ifdef, -ifndef, and -define select which clauses compile, and -D flags set the space (V7)
1.2.4 Domain
- ✅ Excellent fit for distributed, fault-tolerant systems: Supervision, distribution, and the actor model match the problem directly
- ✅ Proven in telecom and messaging: WhatsApp, RabbitMQ, and Discord’s infrastructure run on the BEAM
- ✅ Binary parsing is a strength: The bit syntax
<<A:8, B:16/little>>matches a protocol frame directly - ⚠️ Distribution across nodes requires explicit design effort: The application must decide how to handle a lost node
1.2.5 Learning
- ❌ The learning curve is steep: A developer learns functional programming, the actor model, and OTP at once (L1)
- ❌ The Prolog-derived syntax is unfamiliar: The
.,,, and;delimiters and the term syntax differ from the mainstream (L1) - ⚠️ The surface is large: The language, the OTP behaviours, and the VM’s semantics are separate bodies of knowledge (L2)
- ✅ The official documentation is thorough: The Erlang reference manual and the OTP design principles are authoritative
- ✅ The community is established: Decades of accumulated material and answered questions exist
1.2.6 Syntax
- ✅ The term syntax is uniform: Every construct is a term, and a module is a sequence of forms ending in a period
- ✅ The delimiter roles are consistent: A comma separates expressions, a semicolon separates clauses, and a period ends a form
- ✅ Bit syntax is compact for protocols: A binary pattern states field widths and endianness in one expression
- ✅ Pattern matching is part of the function-head syntax: A clause states its cases directly
- ⚠️ The comma, semicolon, and period distinction is easy to get wrong: One misplaced delimiter changes the meaning of a form
- ⚠️ Atoms and variables differ only by case:
okis an atom andOkis a variable
1.2.7 Testing
- ✅ EUnit and Common Test ship with OTP: Unit tests and system tests are part of the standard distribution
- ✅ Property-based testing is available: PropEr and QuickCheck generate inputs from a property
- ✅ Tracing and
observerinspect a running system:dbg,recon, and the observer tool expose processes, messages, and scheduler load - ✅ Common Test runs a distributed suite: A test can start several nodes and drive them together
- ❌ Errors surface at run time: Dynamic typing defers a type fault to the executed path (G3)
- ⚠️ Dialyzer catches some faults and not all: Success typing proves the absence of some inconsistencies, not the presence of correctness
1.2.8 Security
- ✅ Process isolation contains a fault: A crashed process does not corrupt another process’s memory
- ✅ Messages are immutable values: No shared mutable state exists to race on
- ✅ The supervision tree bounds a failure: A restarted process returns the system to a known state
- ⚠️ The atom table has a fixed limit:
list_to_atom/1orbinary_to_atom/2on untrusted input can exhaust the table, whose default ceiling is about one million atoms - ⚠️
binary_to_term/1on untrusted input is dangerous: Decoding an external term can allocate a large structure unless thesafeoption is used - ⚠️ A NIF and a
Portreach unsafe code: Native code can break the VM’s guarantees
1.2.9 Delivery targets
What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.
| Target | Ships as | Crosses a producer boundary | Cross-release promise |
|---|---|---|---|
| application source | source | no | A hex package ships source the release compiles |
| NIF library | compiled | yes | yes — The NIF API version compiles into the library, and the runtime checks it at load [5] |
1.2.10 Stored data formats
What the toolchain stores that outlives the program, and what the vendor publishes about reading it across a release boundary. Ec9 is present when one row carries a break: the reading promise published as broken, the writing direction published as unreadable elsewhere, or a break the probe harness has reproduced.
| Stored format | Reading promise | Writing promise |
|---|---|---|
| External term format — term_to_binary | yes — Erlang encodes stored terms in the external term format, carries the version in the encoding, and publishes the reading promise: Erlang/OTP systems as of R16B decode the minor-version-2 encoding that is the default as of OTP 26.0 [6] | — |
1.3 Engineering readiness
1.3.1 Reproducibility
- ❌ Rebar3 resolves dependency versions from Hex at build time. (Y1)
- ❌ No toolchain pin exists in the official distribution. (Y14)
1.3.2 Supply chain
- ❌ Hex packages carry no signed provenance. (Y3)
- ❌ The Hex name space is flat. (Y4)
1.3.3 Observability
- ❌ No tracing standard exists in the language; the runtime ships its own tools. (Y5)
1.3.4 Feedback
- ✅ The shell compiles and runs with no build step. (Y7)
- ⚠️ No analyzer ships in the distribution; dialyzer ships with it, editor analysis rides third-party plugins.
1.3.5 Interop
- ✅ NIFs are the in-process foreign interface to C. (Y9)
- ✅ The BEAM is the portable target: the artifact runs wherever Erlang/OTP runs. (Y10)
1.3.6 Governance
- ❌ Semantics rest on the BEAM: the documentation describes the implementation, and no published conformance suite exists for an independent implementation (Y17)
1.4 Profile
Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.
1.4.1 Energy and cost
What this axis asks: what does a running program cost in energy and time?
1.4.2 AI and agent readiness
What this axis asks: how well does a coding model and an agent work in this language?
- ❌ Sparse training data: models write it unreliably [9].
1.4.3 Safety certification
What this axis asks: is there a certified or standards-qualified path to a safety-critical system?
- ⚠️ No certified or standards-qualified path for safety-critical systems.
1.5 Scoring detail
1.5.1 Core coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Type | T1 |
dynamic no static check | language | ✅ | −15 |
T2 |
weak static | language | — | 0 | |
T3 |
dynamic/duck dispatch | language | ✅ | −8 | |
T4 |
no sum types | language | ✅ | −4 | |
T5 |
no generics | language | ✅ | −4 | |
T6 |
no namespaces | language | — | 0 | |
T7 |
type erasure/reflection | language | — | 0 | |
T8 |
operator overloading | language | — | 0 | |
T9 |
inheritance required for polymorphism | language | — | 0 | |
T10 |
no null-safety | language | — | 0 | |
T11 |
no module boundary | language | — | 0 | |
T12 |
no effect tracking | language | ✅ | −8 | |
T13 |
async/sync colouring | language | — | 0 | |
T14 |
unchecked foreign boundary | language | ✅ | −4 | |
T15 |
chars are encoding units | language | — | 0 | |
| Type cost | −12.3 (−43) | ||||
| Construction | C1 |
global mutable state by default | language | — | 0 |
C2 |
no immutability by default | language | — | 0 | |
C3 |
constructors coupled to allocation | language | — | 0 | |
C4 |
no constructor/validation | language | — | 0 | |
C5 |
unpinned collection order | language | — | 0 | |
C6 |
aliasing by default | language | — | 0 | |
C7 |
undeclared control transfer | language | — | 0 | |
C8 |
no source-visible init order | language | — | 0 | |
| Construction cost | 0 | ||||
| Memory | M1 |
manual deallocation | runtime | — | 0 |
M2 |
GC non-deterministic pauses | runtime | ✅ | −8 | |
M3 |
no RAII | language | — | 0 | |
M4 |
no ownership model | language | — | 0 | |
M5 |
uninitialized reads | language | — | 0 | |
M6 |
unchecked reinterpretation | language | — | 0 | |
Er6 |
uncatchable runtime fault | language | ✅ | −8 | |
M7 |
reference cycles leak | runtime | — | 0 | |
| Memory cost | −4.6 (−16) | ||||
| Error | Er1 |
no structured path | language | — | 0 |
Er2 |
unchecked exceptions only | language | ✅ | −8 | |
Er3 |
errors ignored/non-exhaustive | language | — | 0 | |
Er4 |
no composable result type | language | — | 0 | |
Er5 |
no isolation unit for a fault | runtime | — | 0 | |
| Error cost | −2.3 (−8) | ||||
| Concurrency | K1 |
GIL/no parallel | runtime | — | 0 |
K2 |
shared mutable state default | language | — | 0 | |
K3 |
manual sync no race detection | runtime | — | 0 | |
K4 |
no structured concurrency | language | ✅ | −4 | |
K5 |
no primitives | language | — | 0 | |
K6 |
thread-per-task cost | runtime | — | 0 | |
| Concurrency cost | −1.1 (−4) | ||||
| Platform | P1 |
cannot function outside one vendor/domain | context | — | 0 |
P2 |
single-vendor but other uses | context | — | 0 | |
P3 |
legacy/discontinued platform | context | — | 0 | |
P4 |
poor domain fit | context | ✅ | −8 | |
| Platform cost | −2.3 (−8) |
Core coupling score: 77.4/100 — 79 of the 350 inventory points are present, so the axis cost is 100 × 79 ÷ 350 = 22.6 and the score is 100 − 22.6. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.2 Ecosystem coupling Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Performance | R1 |
interpreted no AOT/JIT | runtime | — | 0 |
R2 |
GC pauses | runtime | — | 0 | |
R3 |
JIT warmup | runtime | — | 0 | |
| Performance cost | 0 | ||||
| Ecosystem | Ec1 |
no package manager | context | — | 0 |
Ec2 |
fragmented tooling | context | — | 0 | |
Ec3 |
small/niche/discontinued | context | — | 0 | |
Ec4 |
proprietary | context | — | 0 | |
Ec5 |
platform-locked tooling | context | — | 0 | |
Ec6 |
monoculture | context | — | 0 | |
Ec7 |
legacy burden | context | — | 0 | |
Ec8 |
unpromised binary boundary | context | — | 0 | |
Ec9 |
unpromised data boundary | context | — | 0 | |
| Ecosystem cost | 0 | ||||
| Evolution | V1 |
breaking changes | language | — | 0 |
V2 |
frozen | context | — | 0 | |
V3 |
discontinued | context | — | 0 | |
V4 |
glacial standards | context | — | 0 | |
V5 |
silent default drift | runtime | — | 0 | |
V7 |
build-variant state space | context | ✅ | −8 | |
| Evolution cost | −3.1 (−8) | ||||
| Domain | D1 |
domain/vendor lock-in | context | — | 0 |
D3 |
framework forces architecture | context | — | 0 | |
| Domain cost | 0 | ||||
| Learning | L1 |
steep | context | ✅ | −8 |
L2 |
large surface/multi-paradigm | context | ✅ | −4 | |
L3 |
sparse docs | context | — | 0 | |
| Learning cost | −4.7 (−12) | ||||
| Syntax | S1 |
verbose | language | — | 0 |
S2 |
inconsistent | language | — | 0 | |
S3 |
punctuation-heavy | language | — | 0 | |
| Syntax cost | 0 | ||||
| Testing | G1 |
weak tooling | context | — | 0 |
G2 |
poor debugging | context | — | 0 | |
G3 |
runtime-only errors | context | ✅ | −4 | |
G4 |
no published monotonic clock | runtime | — | 0 | |
| Testing cost | −1.6 (−4) | ||||
| Security | Q1 |
memory-unsafe | language | — | 0 |
Q2 |
dynamic/weak typing risk | language | — | 0 | |
Q3 |
known vulnerability/injection | context | — | 0 | |
Q4 |
silent integer overflow | language | — | 0 | |
| Security cost | 0 |
Ecosystem coupling score: 90.6/100 — 24 of the 256 inventory points are present, so the axis cost is 100 × 24 ÷ 256 = 9.4 and the score is 100 − 9.4. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
1.5.3 Engineering readiness Dimensions
| Dimension | Mechanism | Description | Imposed by | Present | Weight |
|---|---|---|---|---|---|
| Reproducibility | Y1 |
build not reproducible | context | ✅ | −15 |
Y2 |
dependencies not pinned | context | — | 0 | |
Y14 |
no toolchain version pin | context | ✅ | −8 | |
Y18 |
no machine-read project contract | context | — | 0 | |
| Reproducibility cost | −13.5 (−23) | ||||
| Supply chain | Y3 |
no signed provenance | context | ✅ | −15 |
Y4 |
registry without namespacing | context | ✅ | −4 | |
Y16 |
no advisory feed | context | — | 0 | |
| Supply chain cost | −11.1 (−19) | ||||
| Observability | Y5 |
no stable tracing standard | context | ✅ | −8 |
Y6 |
no structured logging | context | — | 0 | |
Y15 |
no post-mortem diagnostics | runtime | — | 0 | |
| Observability cost | −4.7 (−8) | ||||
| Feedback | Y7 |
slow build | context | — | 0 |
Y8 |
no fast in-editor analysis | context | — | 0 | |
Y13 |
no bundled debugger | context | — | 0 | |
| Feedback cost | 0 | ||||
| Interop | Y9 |
no foreign-function interface | language | — | 0 |
Y10 |
no portable target | context | — | 0 | |
| Interop cost | 0 | ||||
| Governance | Y11 |
single-vendor governance | context | — | 0 |
Y12 |
closed specification | context | — | 0 | |
Y17 |
no conformance mechanism | context | ✅ | −8 | |
Y19 |
no published parser | context | — | 0 | |
| Governance cost | −4.7 (−8) |
Engineering readiness score: 66.1/100 — 58 of the 171 inventory points are present, so the axis cost is 100 × 58 ÷ 171 = 33.9 and the score is 100 − 33.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.
Verdict: Erlang’s design yields moderate language-imposed coupling in the domain it was built for. The actor model removes shared memory from concurrency, immutability removes in-place mutation, and “let it crash” with OTP supervision moves recovery out of the business logic. Main strengths: processes are cheap and isolated, the BEAM schedules preemptively, per-process collection avoids a global pause, and hot code loading decouples deployment from runtime. Main weaknesses: the language is dynamically typed, so a type fault surfaces at run time; exceptions are unchecked; the syntax is unfamiliar; and distribution across nodes must be designed rather than assumed.
The formal development. The definitions, theorems, and proofs behind this page are published in:
- On the Nature of Coupling: All Coupling as Shared Resource Access — Zenodo, 2026 — doi:10.5281/zenodo.21925122
- Coupling as a Consequence of Cohesion: Decomposition, the Coupling Floor, and Domain-Imposed Coupling — Zenodo, 2026 — doi:10.5281/zenodo.21925201
- On the Nature of Cohesion: Cohesion as Correctness Relative to a Partitioning Rule — Zenodo, 2026 — doi:10.5281/zenodo.21703193