Skip to content
CAI
Software that uses CAICheck a score

exercism/erlang

60.9

Adequate · 15 November 2026

400

lines of production code

Erlang

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Eliud's Eggs exercise for Erlang

A new practice exercise, Eliud's Eggs, has been added to the Erlang track. This exercise challenges users to count the number of 1 bits in the binary representation of a given number, effectively counting eggs in a digital display scenario. The implementation must avoid using standard library bit-counting functions, requiring a manual solution using basic bitwise operations. The entry includes the necessary project structure, instructions, test cases, and an example solution for Erlang.

exercises/practice/eliuds-eggs · high confidence

Add Erlang track stub for the Forth exercise

Introduced the initial project structure for the Forth exercise in the Erlang track, including the rebar3 configuration, application source file, and a stub module with an unimplemented evaluate function.

exercises/practice/forth · high confidence

Add Forth exercise metadata and example solution

The Forth practice exercise now includes its canonical metadata and a reference implementation. A new \config.json\ file defines the exercise structure, listing the solution file (\src/forth.erl\), the test file (\test/forth\tests.erl\), and the new example solution (\.meta/example.erl\). The example solution provides a complete evaluator for a subset of the Forth language, supporting basic arithmetic (+, -, \, /), stack manipulation (DUP, DROP, SWAP, OVER), and user-defined word definitions. Additionally, \tests.toml\ has been added to map the test cases to their descriptions, covering arithmetic operations, stack errors, user-defined words, and case-insensitivity.

(repo-wide) · high confidence

Add Yacht exercise for Erlang

A new Yacht exercise has been added to the Erlang track, allowing users to implement a dice-scoring function. The solution requires calculating scores for categories such as Ones through Sixes, Full House, Four of a Kind, Little/Big Straights, Choice, and Yacht based on a throw of five dice. The entry includes the problem instructions, a stub implementation in \src/yacht.erl\, a comprehensive test suite in \test/yacht\_tests.erl\, and the necessary configuration files for the Erlang build tool (rebar3).

(repo-wide) · high confidence

Add Zipper exercise configuration and example solution

The Zipper practice exercise is now available with a new configuration file defining the solution, test, and example file paths, along with author and contributor metadata. An example implementation of the Zipper for binary trees has been added to demonstrate the required API (creating zippers, navigating left/right/up, and modifying values/structure), and the test suite configuration has been updated to include all standard test cases for this exercise.

exercises/practice/zipper/.meta · high confidence

Add accumulate exercise stub for Erlang

The accumulate exercise for Erlang has been added to the practice directory. This includes the project configuration (rebar.config), application source file, and a module stub (accumulate.erl) defining the accumulate/2 function signature, allowing users to begin implementing the solution.

exercises/practice/accumulate · high confidence

Add canonical data and example solutions for prime-factors and transpose exercises

The \prime-factors\ and \transpose\ practice exercises now include \.meta/config.json\ files defining authors, contributors, and blurb text, alongside \tests.toml\ files that map specific test cases to their descriptions (e.g., 'no factors', 'prime number' for prime-factors; 'empty string', 'simple' for transpose). Additionally, official example solution files (\example.erl\) have been added to the \.meta\ directory for both exercises, providing reference implementations for users to study.

exercises/practice/prime-factors/.meta, exercises/practice/transpose/.meta · high confidence

Add canonical metadata and example solution for Circular Buffer

The Circular Buffer exercise now includes a .meta/config.json file defining the source, blurb, and file structure, alongside a tests.toml file that maps the canonical test cases from the problem-specifications repository. An example.erl implementation has also been added to provide a reference solution for users.

exercises/practice/circular-buffer/.meta · high confidence

Add example solutions and metadata for bank-account and parallel-letter-frequency exercises

New example implementations and configuration files have been added for the bank-account and parallel-letter-frequency exercises. The bank-account example provides a gen\_server-based solution handling concurrent deposits, withdrawals, and balance checks, while the parallel-letter-frequency example demonstrates counting letter frequencies using spawned processes and dictionary merging. Both exercises now include .meta/config.json files defining their file structure, contributors, and blurbs, enabling learners to reference official solutions.

exercises/practice/armstrong-numbers/.meta, exercises/practice/two-fer/.meta, exercises/practice/connect/.meta, exercises/practice/minesweeper/.meta · high confidence

Add example solutions and metadata for multiple practice exercises

Added \.meta/example.erl\ reference implementations and \.meta/config.json\ metadata (including authors, contributors, and blurbs) for the Bob, Clock, Crypto Square, Diamond, Difference of Squares, ETL, Gigasecond, Nth Prime, Nucleotide Count, Palindrome Products, Pascal's Triangle, Perfect Numbers, Secret Handshake, Series, Sieve, Spiral Matrix, Sum of Multiples, and Triangle exercises. These files provide official solution patterns and structured metadata for the track's practice exercises.

(repo-wide) · high confidence

Add pangram exercise metadata and example solution

The pangram practice exercise now includes a .meta directory containing the configuration file (config.json), an example solution (example.erl), and the test manifest (tests.toml). The config.json defines the source files for the solution, tests, and example, along with author/contributor metadata and a blurb describing the exercise. The example.erl provides a reference implementation using a list of all letters to check for presence in the input sentence. The tests.toml file lists the canonical test cases from the problem-specifications, including descriptions for tests such as 'empty sentence', 'perfect lower case', and 'case insensitive'.

(repo-wide) · high confidence

Add reference implementation and metadata for the Rational Numbers exercise

The Rational Numbers exercise now includes a canonical example solution in Erlang (\.meta/example.erl\) that demonstrates correct arithmetic operations (addition, subtraction, multiplication, division, exponentiation, absolute value) and reduction to lowest terms. This is accompanied by a new \config.json\ defining the exercise metadata (authors, source, file paths) and a \tests.toml\ mapping the test suite to the problem specifications, ensuring the exercise is fully configured for learners and automated testing.

exercises/practice/protein-translation/.meta, exercises/practice/rational-numbers/.meta · high confidence

Added Erlang stub for palindrome-products exercise

The Erlang track now includes a new practice exercise for palindrome-products. This adds the necessary project structure, including a rebar.config with Erlang compiler and Dialyzer settings, an application source file, and a stub implementation of the largest/2 and smallest/2 functions in the palindrome\_products module, along with hints for optimizing algorithm efficiency.

exercises/practice/palindrome-products · high confidence

Added example solutions and metadata for bank-account and parallel-letter-frequency exercises

The \bank-account\ and \parallel-letter-frequency\ practice exercises now include \.meta/config.json\ files defining their structure (solution, test, and example file paths) and contributor metadata, alongside new \.meta/example.erl\ files. The \bank-account\ example provides a \gen\_server\-based implementation handling concurrent deposits, withdrawals, and balance checks, while the \parallel-letter-frequency\ example demonstrates parallel letter counting using spawned processes and dictionary merging. These additions allow learners to compare their implementations against official reference solutions.

exercises/practice/bank-account/.meta, exercises/practice/parallel-letter-frequency/.meta · high confidence

Anagram exercise metadata and example solution added

The Anagram practice exercise now includes its configuration metadata, a canonical example solution, and the test specification file. The config.json file defines the exercise's authors, contributors, source information, and file paths for the solution, test, and example files. The example.erl file provides a reference implementation that filters candidates by normalizing words to lowercase and sorting their characters. The tests.toml file maps the canonical test cases from the problem-specifications repository, including descriptions and inclusion status for each test case.

(repo-wide) · high confidence

Initial configuration and example implementation for the Strain exercise

This change introduces the foundational metadata and reference solution for the Strain exercise. It adds a config.json file defining the exercise's authors, contributors, and file structure (solution, test, and example files), along with a blurb describing the task of implementing keep and discard operations on collections. Additionally, it provides an example.erl file containing a recursive implementation of keep and discard, and a tests.toml file that maps specific test cases (such as keeping/discard on empty lists, strings, and lists) to their descriptions for validation purposes.

exercises/practice/strain/.meta · high confidence

Initial configuration and example solution for the Sublist exercise

The Sublist exercise is now available, providing the necessary metadata, a canonical example solution, and test specifications. Users can now complete the exercise to determine if one list is a sublist, superlist, equal to, or unequal to another list, with the provided example demonstrating the expected logic for these comparisons.

exercises/practice/sublist/.meta · high confidence

Initial setup for Variable Length Quantity exercise

Added the configuration, example solution, and test metadata for the Variable Length Quantity exercise. This includes the \config.json\ defining the source files and blurb, an Erlang example implementation for encoding and decoding variable-length quantities, and a \tests.toml\ file mapping the canonical test cases for both encoding and decoding operations.

exercises/practice/variable-length-quantity/.meta · high confidence

Isogram exercise configuration and example solution added

The isogram exercise now includes a complete metadata configuration, an example solution, and a test specification file. The config.json file defines the exercise's source, blurb, and file structure, while the new example.erl file provides a reference implementation for checking if a string is an isogram. Additionally, tests.toml has been added to map specific test cases to their descriptions, ensuring the exercise aligns with the standard problem specifications.

exercises/practice/isogram/.meta · high confidence

Leap year exercise metadata and example solution added

The leap year exercise now includes a configuration file defining the problem blurb, source attribution, and file mappings for the solution, test, and example files. An example implementation of the leap year logic has been added to provide a reference solution, and a test manifest has been introduced to map specific test cases to their descriptions, ensuring consistent test execution and validation for users.

exercises/practice/leap/.meta · high confidence

New CI and utility scripts for automated testing and dependency fetching

Added three new scripts to the bin directory to support the CI pipeline and development workflow. The fetch-configlet script automatically downloads the latest version of the configlet tool for the current operating system and architecture. The run\_ci.sh script iterates through practice exercises in alphabetical order, running tests via rebar3 and providing colored output (green for pass, red for fail) along with a summary of any failures. The get\_latest\_majors\_for\_ci\_matrix.py script processes version inputs to generate a JSON list containing only the latest minor release for each major version, used for constructing CI build matrices.

bin · high confidence

Behavioural changes

Add .meta metadata and example solutions for practice exercises

The .meta directories for the all-your-base, custom-set, dominoes, and satellite exercises now include config.json files (defining authors, contributors, file paths, and blurbs), tests.toml files (mapping test cases to descriptions), and example.erl files (providing reference solutions). This change standardizes the metadata structure for these exercises and makes official example implementations available to users.

(repo-wide) · high confidence

Erlang exercises moved to practice track with v3 stubs

The Erlang track's existing exercises have been reorganized into the \exercises/practice\ directory as part of the v3 curriculum update. Each exercise now includes a standardized \rebar.config\ (depending on \erl\_exercism\ 0.1.2) and a source file containing the module definition with exported function stubs returning \undefined\, providing the initial structure for learners to implement solutions.

(repo-wide) · high confidence

Grade school exercise metadata and example solution updated

The grade-school exercise now includes a new .meta/config.json file defining authors, contributors, and the exercise blurb, alongside a new example solution (example.erl) that uses ordsets for tracking student names. The tests.toml file has been synchronized with the latest problem-specifications, disabling specific tests that do not comply with function specs and updating test descriptions to reflect current requirements.

exercises/practice/grade-school/.meta · high confidence

Hello World exercise stub updated to return 'Goodbye, Mars!'

The Erlang Hello World exercise stub has been updated so that the \hello\_world:hello/0\ function returns the string "Goodbye, Mars!" instead of the traditional "Hello, World!". This change, along with the addition of a new \rebar.config\ and \app.src\ file, simplifies the setup for students by providing a properly generated project structure with specific compiler and dialyzer warnings enabled.

exercises/practice/hello-world · high confidence

New test runner and bootstrap script for Erlang exercises

The repository now includes a new bootstrap script (\_test/bootstrap.sh) that installs rebar3 and configlet, and a new Erlang escript (\_test/check-exercises.escript) that serves as the primary test runner. This script discovers all exercises by finding rebar.config files, runs eunit tests for each, and reports progress and results, replacing the previous Makefile-based approach.

_\test · high confidence

Test coverage

Added EUnit test suite for the Sublist exercise; Added EUnit test suites for Bank Account and Circular Buffer exercises; Added EUnit tests for the Largest Series Product exercise; Added Erlang test suite for largest-series-product exercise; Added Erlang test suites for multiple practice exercises; Added Luhn algorithm test suite for Erlang; Added Protein Translation test suite for Erlang; Added generated test suites for change, prime-factors, and transpose exercises; Added initial test suite for parallel letter frequency; Added test suite for Hamming distance exercise; Added test suite for ISBN Verifier; Added test suite for the Forth exercise; Added test suite for the Poker exercise; Added unit tests for the accumulate exercise; Updated test suites for multiple practice exercises.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 61 → 61 (-0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 98 → 85 (-13.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 52 → 52 (+0.0)
  • Readiness 70 → 70 (+0.0)
  • Security 65 → 65 (+0.0)

New (4)

  • Edited copy of a member (15 corresponding lines) (exercises/practice/flower-field/.meta/example.erl)
  • Edited copy of a member (25 corresponding lines) (exercises/practice/palindrome-products/.meta/example.erl)
  • Edited copy of a member (3 corresponding lines) (exercises/practice/flower-field/.meta/example.erl)
  • Edited copy of a member (7 corresponding lines) (exercises/practice/zipper/.meta/example.erl)

Changes since last survey

  • 2 commits — 2 feature/other, 0 fixes

By area

  • .github/CODEOWNERS — 2 commits

Notable commits

  • change: Add a sign-up snippet (#630)
  • change: List the checks that must pass before a PR can merge (#631)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

exercism/erlang was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 4a171e383495066af2002ac4e08f566eed2f386b — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.