EML-P projects

Software written in EML-P

Working programs rather than snippets. Each project is a set of EML-P modules behind a text menu, built on cases from the verified corpus. Its recorded sessions are its test: the language repo replays every one under CPython, and this site’s build replays every one again in the EML interpreter. A session whose screen does not match is not published.

P001

Todo list

Add tasks with a priority, mark them done, delete them, and list them in the order added, by priority, or only the ones still pending - from a text menu.

3 modules · 2 recorded sessions
P002

Unit converter

Convert lengths, weights, temperatures and volumes from any unit to any other of the same kind, and back again, with every typed unit and value checked first - from a text menu.

3 modules · 2 recorded sessions
P003

Expense tracker

Record income and expenses by date and category, in whole cents, and see the balance, the totals by category and a report for any month - from a text menu.

4 modules · 2 recorded sessions
P004

Contacts

Add, find, edit and delete contacts, kept in name order by binary search; find by part of a name or part of a number, with every phone number checked - from a text menu.

3 modules · 2 recorded sessions
P005

Gradebook

Students and their scores in three subjects: report cards, a ranking where equal averages share a place, pass or fail, and the class average and median, all worked out exactly - from a text menu.

4 modules · 2 recorded sessions
P006

Inventory

Items with a unit cost and a safety level, stock received and shipped with every movement logged, a warning for anything below its safety level, and the value of the whole stock - from a text menu.

3 modules · 2 recorded sessions
P007

Calculator

Type an expression with + - * / and parentheses; it is turned into postfix and worked out on a stack in exact fractions, so 0.1 + 0.2 is 0.3. Clear error messages, a history and ans for the last answer.

3 modules · 2 recorded sessions
P008

Number guessing

Guess the number at three levels, with higher/lower hints that narrow to a range, a limited number of guesses and a best score per level; the secret numbers come from a random generator written in EML - from a text menu.

3 modules · 2 recorded sessions
P009

Tic-tac-toe

Play tic-tac-toe against a friend or against the computer, which wins when it can and blocks when it must; wins and draws are found and a running score is kept - from a text menu.

3 modules · 2 recorded sessions
P010

Quiz

Take a multiple-choice quiz, get a score, review the questions you missed and retake only those until none are left; every attempt is kept in a score history - from a text menu.

3 modules · 2 recorded sessions
P011

Shopping cart

Fill a cart from a small catalog, change quantities, enter a discount code and check out with a receipt: the subtotal, the one discount taken (the largest that applies - discounts never stack), the tax and the total - from a text menu.

5 modules · 2 recorded sessions
P012

Library loans

Lend books to members and take them back: due dates on a real calendar (leap years included), at most three books each, fines for late returns that must be paid before borrowing again, and new members - from a text menu, with the date moved forward by hand.

4 modules · 2 recorded sessions
P013

Bill splitter

Share expenses among up to eight people - each paid by one, shared equally or in shares, split to the cent by largest remainder - see who owes whom, and settle up in the fewest transfers possible, found exactly by trying every group - from a text menu.

4 modules · 3 recorded sessions
P014

Loan calculator

The monthly payment of a loan, worked out exactly in whole numbers and rounded by a stated rule (to the nearest cent or up to the next), the repayment schedule by year and by month, the last payment that clears the balance to exactly 0.00, and the total paid and total interest - from a text menu.

3 modules · 2 recorded sessions
P015

Date calculator

Days between two dates, the day of the week, a date plus or minus some days, whether a year is a leap year and why, and someone's age on a date - including the two rules for a 29 February birthday - on the Gregorian calendar from 1583 to 9999, from a text menu.

3 modules · 2 recorded sessions
P016

Text statistics

Type several lines of text and see its counts (lines, words, letters, average and longest word), its most common words, a chart of its letters, the palindromes in it - words and whole lines - and the groups of words that are anagrams of each other, from a text menu.

3 modules · 2 recorded sessions
P017

Flashcards

Practise decks of flashcards with Leitner boxes: a card answered right the first time moves up a box, a wrong one goes back to box 1 and comes again at the end of the practice; box k is due every 2^(k-1) practices. Two decks to start, new decks and cards, and a progress chart per deck - from a text menu.

3 modules · 2 recorded sessions
P018

Parking lot

Run an eight-space parking lot: cars come in and go out at typed times, each exit gets a ticket that shows how its fee was worked out - free up to 10 minutes, 3.00 for the first hour, 1.00 for each half hour after, at most 15.00 per 24 hours - and each day has a report of its takings, from a text menu.

3 modules · 2 recorded sessions
P019

Poll

Set up a poll with two to six options, enter ranked ballots (one at a time or many identical ones at once), and count them four ways side by side - plurality, instant runoff round by round, Borda, and head to head - to see when the methods disagree, from a text menu.

3 modules · 3 recorded sessions
P020

Text adventure

Explore an old house of eight rooms on a grid - go, take, drop and use things, light a lamp for the dark cellar, unlock a door with the key found there - and carry the crown out to the garden to win; a map shows the rooms you know, and a path command finds a route through them by backtracking.

4 modules · 2 recorded sessions
P021

Base converter

Convert whole numbers of any length between bases 2 to 36 by long division on their digits, show a number in bases 2, 8, 10 and 16 at once, and turn numbers into Roman numerals and back - refusing a numeral that is not written the standard way and saying how it should be - from a text menu.

4 modules · 2 recorded sessions
P022

Cipher workbench

Encode and decode with the Caesar and Vigenere ciphers - case and punctuation kept, the Vigenere key moving only on letters - and break a Caesar cipher by comparing letter counts with English for every shift; a toy for classical ciphers, not security software, from a text menu.

4 modules · 2 recorded sessions
P023

Number toolkit

Whole-number tools from a text menu: is a number prime (and if not, its smallest factor), its prime factors with powers, the gcd and lcm of several numbers with Euclid's steps for two, the primes in a range by a sieve, a number's divisors - perfect, abundant or deficient - and the perfect numbers up to a limit.

4 modules · 2 recorded sessions
P024

Bracket checker

Checks the round, square and curly brackets of a typed text of up to 20 lines: the first error with its line, column and reason - a bracket that closes nothing, one of the wrong kind, or one never closed - the deepest nesting, and an outline of the text broken at its brackets.

3 modules · 2 recorded sessions
P025

Run-length compressor

Compresses a line of text by writing each long run of one character as ~count~character - only where that is shorter - with ~~ for a ~ in the text, so digits need no escaping; expands it back with the position and reason of any error, gives the compression ratio, and checks that every compressed text expands to the original.

3 modules · 2 recorded sessions
P026

Temperature log

A day's temperature readings from up to six places: each place's lowest, highest and average, a moving average over 2 to 10 readings, and alerts for readings outside a place's safe range - when a reading comes in and in a list. Temperatures are kept in whole tenths of a degree, so the averages are exact until the display rounds them.

3 modules · 2 recorded sessions
P027

CSV viewer

Paste a CSV of up to 30 rows and 8 columns - quoted fields with commas and doubled quotes included - and see it as a table; sort it by a column (numbers or text, stable, empty fields last), filter it by a condition, and get a column's statistics, with numbers kept exact.

3 modules · 2 recorded sessions
P028

Spelling suggester

Checks a line of text against a list of 352 common English words and suggests, for each word it does not know, the closest words by edit distance - insertions, deletions, substitutions and swaps of two neighbouring letters - the more common word first on a tie; suggests for a single word, and adds new words for the session.

3 modules · 2 recorded sessions
P029

Line editor

A text of up to 30 lines edited with short commands - append, insert, replace, delete a line or a range, list, find - with undo and redo on two stacks. Every edit is one splice, and undoing it is the same splice reversed, so the stacks hold changes rather than copies of the text.

2 modules · 2 recorded sessions
P030

Room booking

Books three meeting rooms of 4, 8 and 12 seats over a working week. A booking that overlaps another in the same room is refused, naming the booking it clashes with and the rooms that are free instead - back-to-back bookings do not clash; each day has a schedule, free rooms can be looked up, and bookings can be cancelled.

3 modules · 2 recorded sessions
P031

Shift roster

A week of morning, evening and night shifts for up to 8 people with days off: assign by hand - refused with every rule it would break - or fill automatically, fairest first; a separate audit rechecks the finished roster from scratch against one shift a day, 11 hours of rest, at most 5 shifts a week and no shift on a day off.

2 modules · 2 recorded sessions
P032

Vending machine

Six products with stock and prices; coins of 5 to 200 cents go in, and change comes out with the fewest coins the machine actually holds - found by dynamic programming over a limited coin box, where taking the biggest coin first can fail. If it cannot make the change the sale is refused and the coins come back. Staff restock products and refill the coin box.

2 modules · 2 recorded sessions
P033

Elevator

One lift over floors 0 to 9: people call it from a floor to go to another, time moves on in steps, and the lift keeps its direction while there is a reason to go on and turns round when there is none. Statistics show how long people waited, and the same calls can be run again by a lift that takes one passenger at a time, to compare.

3 modules · 2 recorded sessions
P034

Tournament bracket

A single-elimination bracket for 2 to 16 players typed in seed order: the top seeds get the byes, seeds are placed so that the strongest meet as late as possible, results are typed match by match and winners go through round by round to a champion. A result can be corrected while the winner's next match is still to be played.

3 modules · 2 recorded sessions
P035

Pig (dice game)

The dice game Pig for two players or against the computer: roll as often as you like, every roll adds to the turn, a 1 loses the whole turn, and holding banks it - first to the target wins. The computer holds at 20; the dice come from a random generator written in EML, so a seed always gives the same game, and a tally shows how often each face came up.

4 modules · 2 recorded sessions
P036

Game of Life

Conway's Game of Life on a 12 x 20 board: edit cells or pick a ready-made pattern, then run a generation at a time or many at once. Every board is remembered with the generation it first appeared in, so the program says when the board has died, stopped changing, or started to repeat - and with what period.

3 modules · 2 recorded sessions
P037

Pixel paint

A 12 x 24 canvas of characters: paint single cells, Bresenham lines and boxes with the pen's color, fill an area with the paint bucket, switch pens (one of them erases), and undo as far back as you like. The canvas is a dictionary keyed by (row, column) tuples.

3 modules · 2 recorded sessions
P038

Matrix calculator

Up to three matrices of at most 5 x 5, typed with whole numbers, fractions or decimals and kept as exact fractions: sum, difference, product, a number times a matrix, transpose, the determinant by Gaussian elimination and the inverse by Gauss-Jordan elimination - checked by multiplying back. Each result is kept as R for the next operation.

3 modules · 2 recorded sessions
P039

Task planner

Tasks with a length in days and the tasks each one needs first: an order that respects every dependency (Kahn's algorithm), each task's earliest start, finish and slack, a small chart, and the critical path that decides the total. A dependency that closes a cycle is named at once, and no plan is made until the cycle is broken.

2 modules · 2 recorded sessions
P040

Sudoku helper

A 4 x 4 or 9 x 9 sudoku, built in or typed in: put numbers in and take them out with a warning the moment one clashes, check the board (including when it can no longer be completed), ask for a hint that names one sure step, or let a backtracking solver finish it and say whether the solution is the only one.

3 modules · 2 recorded sessions
P041

Maze

A random maze from a seed - the same seed always makes the same maze - built by a random depth-first walk with a few extra walls knocked down so that there is more than one way. Walk it from S to G, or show a shortest way found by breadth-first search beside the way the corpus case's backtracking finds.

3 modules · 2 recorded sessions
P042

Tower of Hanoi

Move a tower of 1 to 8 disks from peg A to peg C, one disk at a time, never a larger disk on a smaller one. Every move is checked; a hint names the best next move, and the program can finish from any position in the fewest moves left - 2^n - 1 from the start.

2 modules · 2 recorded sessions
P043

Line diff

Two texts compared line by line: the longest run of lines they share, in order, stays, and everything else is shown as removed from the first or added in the second - in full with line numbers on both sides, or only the changes with a line of context around each. The texts can be swapped to see the change the other way.

2 modules · 2 recorded sessions
P044

Statistics

A list of numbers - whole numbers, decimals or fractions, kept exact - and what describes it: count, range, mean, median, modes, quartiles and outliers, variance and standard deviation dividing by n and by n - 1, whether the mean sits above or below the median, and a histogram whose top edge does not drop the largest value.

3 modules · 2 recorded sessions
P045

Sorting visualizer

A list of up to 12 numbers sorted step by step by bubble sort, insertion sort, merge sort or counting sort - every pass, insertion or merge shown with the part already in place - with the comparisons and moves each one took, or all four side by side on the same list.

2 modules · 2 recorded sessions
P046

Text formatter

A paragraph set at a width from 20 to 60: left, right, centred or justified, wrapped greedily as a terminal does, or balanced by dynamic programming so that the right edge is as even as it can be - with the raggedness of both wrappings shown side by side.

2 modules · 2 recorded sessions
P047

Minesweeper

Open every cell without a mine on a field of up to 12 x 16: numbers count the mines around a cell, cells with none around open their neighbours by themselves, and flags mark the mines you are sure of. The mines are laid after the first move - never on that cell or next to it - from a seed, so the same seed lays the same field.

3 modules · 2 recorded sessions
P048

2048

Slide the tiles of a 4 x 4 board - or 3 x 3 to 6 x 6 - up, down, left or right: two equal tiles that meet join into one with their sum, each tile once a move, and every move that changes the board brings a new 2 or 4. Reach the goal tile and keep going until no move is left; the same seed brings the same tiles.

3 modules · 2 recorded sessions
P049

Blackjack

Blackjack against the dealer with one deck and a stack of chips: hit, stand or double, aces counted 1 or 11 with soft totals shown, the dealer drawing to 16 and standing on every 17, a blackjack paying 3 to 2. The deck is shuffled by a Fisher-Yates shuffle on EML's own random numbers, so a seed deals the same cards every time.

3 modules · 2 recorded sessions
P050

Connect Four

Drop discs into a grid of 7 columns and 6 rows and be the first with four in a row - across, down or diagonally. Play a friend, or the computer, going first or second: it wins when it can, blocks when it must, and looks one move ahead so as not to set up your win. A running score is kept.

3 modules · 2 recorded sessions
P051

Hangman

Guess a secret word from a list of over a hundred, a letter at a time or the whole word at once, before six wrong guesses finish the drawing. A hint counts, among the words that still fit what you know, how many hold each letter you have not tried. Words come from a seed, none twice until the list is used up.

3 modules · 2 recorded sessions
P052

Binary search tree explorer

A binary search tree of whole numbers: insert keys, delete them - a leaf, a node with one child, or one with two, replaced by its successor - and search with the path shown. Walk it in order, pre-order and post-order, see its size, height, smallest and largest key, and see it drawn on its side.

2 modules · 2 recorded sessions
P053

Help desk queue

Support tickets with four priorities, served most urgent first and first come, first served within a priority, kept in a binary heap. Open, serve, list the line, change a waiting ticket's priority or cancel it, and see the queue grouped by priority next to what has been served.

2 modules · 2 recorded sessions
P054

Sliding puzzle

The 3 x 3 and 4 x 4 sliding puzzles: shuffled boards that are always solvable, typed boards checked by counting the pairs out of order, several tiles slid in one line, and for 3 x 3 the fewest moves found by breadth-first search from both ends.

4 modules · 2 recorded sessions
P055

Habit tracker

Up to five habits checked in on real calendar days: the streak still running, the longest streak, check-ins taken back, and any month drawn as a Monday-first calendar with the days done - dates counted from 1900 and weekdays by Zeller's congruence.

3 modules · 2 recorded sessions
P056

Mini spreadsheet

Cells A1 to F9 holding numbers, labels and formulas - + - * / with parentheses, cell references, SUM, MIN, MAX and AVG over ranges - kept as exact fractions. Every change recalculates the sheet in dependency order (Kahn's algorithm), and formulas caught in a cycle are found and marked instead of looping.

3 modules · 2 recorded sessions
P057

Scales and chords

Major and minor scales and nine kinds of chords from any root, spelled on the right letters (F major has Bb, not A#), intervals named from their letters and semitones with their simple frequency ratio and where the two notes' overtones meet, and chord progressions moved to another key.

3 modules · 2 recorded sessions
P058

Teams and round robin

Split up to 16 rated players into two teams as even as possible - a backtracking search that drops any branch past half - or into three or four by a quick rule; then a league where everyone meets everyone once, scheduled by the circle method, with results entered as they come and a table sorted by points, goal difference and goals.

3 modules · 2 recorded sessions
P059

Workout log

Exercises logged as sets x reps at a weight on real dates, kept exact in tenths of a kilogram: the history day by day, each exercise's heaviest weight and best estimated one-rep max (Epley), and the volume lifted week by week, Monday to Sunday, drawn as a chart that adds back up to the total.

3 modules · 2 recorded sessions
P060

Probability lab

The birthday problem, the Monty Hall game with a host who knows and a host who guesses, and the sum of two dice - each worked out exactly as a fraction and then tried thousands of times on EML's own random numbers, side by side.

4 modules · 2 recorded sessions
P061

Roman numerals

Numbers from 1 to 3999 to Roman numerals and back, each split into its parts; a check that a numeral is written the standard way - IIII and IC read, but are not - with the right way given; and adding and subtracting Roman numerals.

2 modules · 2 recorded sessions
P062

Expression calculator

Expressions typed the usual way - + - * /, whole powers with ^, brackets and minus signs - turned into postfix by Dijkstra's shunting-yard algorithm and worked out on a stack, both shown step by step, in exact fractions; postfix can be typed directly too.

3 modules · 2 recorded sessions
P063

Check digits

Luhn, ISBN-10 and ISBN-13 / EAN-13 check digits: check a number, add the check digit to one without, and test a valid number against every single wrong digit and every swap of neighbouring digits to see which slips each scheme catches - and which it lets through.

2 modules · 2 recorded sessions
P064

Savings ledger

A savings account in whole cents: deposits, withdrawals that are refused rather than allowed to take it below zero, monthly compound interest rounded to the cent, a statement, a check of the books worked out from the log alone, and how many months a savings goal would take.

2 modules · 2 recorded sessions
P065

Coin change

The fewest coins for an amount with any set of coin values, by dynamic programming, set against the greedy largest-coin-first way; how many different handfuls make the amount; and whether a coin set is one where greedy is always right, with the first amount where it is not.

2 modules · 2 recorded sessions
P066

Polynomials

Two polynomials typed the usual way, with exact fraction coefficients: add, subtract, multiply, and divide with quotient and remainder (checked back), evaluate term by term and by Horner's rule with the multiplications counted, take the derivative, and find every rational root by the rational root theorem.

3 modules · 2 recorded sessions
P067

Fraction tutor

A fraction put in lowest terms with every step of Euclid's algorithm shown, its decimal with the repeating part found by long division, a repeating decimal like 0.1(6) turned back into a fraction, the continued fraction with its convergents, and Egyptian fractions by Fibonacci's greedy rule.

2 modules · 2 recorded sessions
P068

Prime explorer

The primes up to 100,000 by the sieve of Eratosthenes, any number up to a trillion broken into prime factors, twin primes, every way an even number is a sum of two primes, and the gaps between primes with how often each occurs.

2 modules · 2 recorded sessions
P069

Sequence explorer

Collatz paths from starts up to a trillion, worked in exact whole numbers, and the start below a limit with the longest path; exact Fibonacci numbers with Cassini's identity checked and the ratio closing in on the golden ratio; and Pascal's triangle, as numbers and as the pattern its odd entries make.

2 modules · 2 recorded sessions
P070

Meeting planner

A day of meetings with their people: booking refuses a time when one of them is already in a meeting (half-open times, so back-to-back is fine), each person's busy time merged, the free time a group shares, and the fewest rooms the day needs with one way to assign them.

2 modules · 2 recorded sessions
P071

Leaderboard

A small league: games give points and move Elo ratings, worked out in whole numbers with an exact 400th root; the standings rank players level on points the five usual ways - competition, modified competition, dense, ordinal and fractional.

2 modules · 2 recorded sessions
P072

Table sorter

A table sorted by several columns, each up or down, by one stable sort or one pass per column; a stable and an unstable sort side by side; and the comparisons selection, insertion, merge and quicksort make on random, sorted, reversed and repetitive lists.

2 modules · 2 recorded sessions
P073

Linked list playground

A singly linked list kept as values and next-slot links, drawn with the slots it lives in: insert, delete (the slot is freed and reused), reverse by the three-pointer walk, the middle by a slow and a fast walker, and a loop closed and found again by Floyd's two walkers.

2 modules · 2 recorded sessions
P074

Cache simulator

One trace of requests through a small cache under LRU, FIFO, LFU and Belady's optimal rule: hits side by side, one rule step by step with every eviction, and hits as the cache grows - where FIFO can do worse with more room.

2 modules · 2 recorded sessions
P075

Bank queue

A simulated day at a bank, minute by minute: random customers from an EML generator, one first-come-first-served line with a limit, a few tellers; waits, people turned away, how busy the tellers were, Little's law exactly, and the same customers with 1 to 5 tellers.

2 modules · 2 recorded sessions
P076

Hamming code

Hamming's (7,4) code: 4 data bits sent as 7 so that one flipped bit is found by the checks that fail and put right; what two or three flips do to it; and the eighth parity bit that turns two flips from a wrong answer into a detected error.

2 modules · 2 recorded sessions
P077

Text banner

Big letters five rows high from a built-in font, wrapped to the screen; ordinary text wrapped greedily to a width and lined up left, centred or right; and a frame whose width comes from the longest line, so its edge closes exactly.

2 modules · 2 recorded sessions
P078

Matrix patterns

A grid filled in a clockwise spiral and read back along it, an odd magic square by the Siamese method with every row, column and diagonal sum checked, and the last grid turned and flipped - a magic square stays magic all eight ways.

2 modules · 2 recorded sessions
P079

N-queens

Queens on an n x n board with none attacking another: place them yourself and see which pairs attack; backtracking finds a first solution or all of them, with the squares it tried; and the solutions that are really different once the 8 turned and mirrored views count as one.

2 modules · 2 recorded sessions
P080

Rock paper scissors

Rock paper scissors against a computer that learns how often you play each move and what you play after each, guessing your next move and playing what beats it; fixed strategies played for hundreds of rounds; and what it has learned about you.

2 modules · 2 recorded sessions
P081

Big numbers

Whole numbers of any size kept exact: factorials with their digits and trailing zeros checked by Legendre's formula, binomial coefficients built from prime powers without dividing, powers by repeated squaring, and long division of one big number by another.

2 modules · 2 recorded sessions
P082

Root finder

Bisection and Newton's method side by side on square roots and on roots of polynomials, in exact fractions, with the correct decimals of every step counted exactly - one bit a step against digits that double.

2 modules · 2 recorded sessions
P083

Clock arithmetic

Working modulo m: powers by repeated squaring step by step, inverses by the extended Euclidean algorithm, the Chinese remainder theorem for moduli that need not be coprime, and the Fermat and Miller-Rabin tests - where Carmichael numbers fool the first.

2 modules · 2 recorded sessions
P084

Permutations and combinations

The orderings of a word's letters by backtracking and in dictionary order, with repeated letters counted once; the next and previous ordering; an ordering's place and the ordering at a place; combinations; derangements, whose share closes in on 1/e; and Gray codes.

2 modules · 2 recorded sessions
P085

Stock chart

Daily prices in whole cents drawn as a chart: the best single buy and sell, which is the best run of daily changes (Kadane); every rise taken; and the best profit from at most k trades by dynamic programming, with the trades listed.

2 modules · 2 recorded sessions
P086

Simpson's paradox

Two treatments' success rates group by group and pooled, compared exactly by cross-multiplication: one better in every group and worse all together, why the weights decide it, the average of rates against the pooled rate, and a comparison that weighs the groups the same.

2 modules · 2 recorded sessions
P087

Weeks and months

Dates as a day count: a date's ISO week date against the US and simple week numbers, adding months by the clamp and overflow rules, stepping a month at a time against adding all at once, working days, and the years with 53 ISO weeks.

2 modules · 2 recorded sessions
P088

Codec workbench

Text as bytes, and bytes as hex, Base64 and Base32 (RFC 4648) both ways, with padding and the bits of one Base64 group shown; decoding is strict, accepting only canonical encodings and saying why anything else is refused.

2 modules · 2 recorded sessions
P089

Fixed-width report

Payroll lines in fixed columns, shown under a ruler: every line's length checked before its columns are trusted, every error reported at once (and what stopping at the first would have said), and pay added up by department in whole cents.

2 modules · 2 recorded sessions
P090

Text search

Every place a pattern occurs in a text, found by the naive method, Knuth-Morris-Pratt and Boyer-Moore-Horspool, with the character comparisons each makes; KMP's failure table for a pattern; and the longest common prefix of a list of words.

2 modules · 2 recorded sessions
P091

Huffman coding

A text's character counts, the code tree built with a binary heap by always joining the two lightest pieces, the codes it gives and how the tree was built, the text encoded and decoded back, and the bits saved against fixed-width codes.

2 modules · 2 recorded sessions
P092

Friend network

Who is friends with whom: the groups that hang together by depth-first search, degrees of separation by breadth-first search, whether everyone fits in two teams with no friends together (or an odd ring that prevents it), and friend suggestions.

2 modules · 2 recorded sessions
P093

Route planner

A map of towns and two-way roads in whole kilometres: the shortest route by Dijkstra's method with a binary heap, every town's distance in the order the towns were settled, a route through a chosen town against the shortest, and roads closed, opened or changed.

2 modules · 2 recorded sessions
P094

Packing planner

Items into bins by First Fit, Best Fit and First Fit Decreasing, against the fewest bins found by search; and the 0/1 knapsack - the most value that fits, by dynamic programming over every weight - against greedy best value per kilogram.

2 modules · 2 recorded sessions
P095

Sensor logger

Temperature readings kept in a ring buffer of the last N, shown slot by slot with where the next write goes and how many were overwritten, and the average, lowest and highest over a window sliding along them, the extremes by a monotonic queue.

2 modules · 2 recorded sessions
P096

Rate limiter

One list of request times through three limiters set to the same limit of L per W seconds - a fixed window, a sliding log and a token bucket - showing which requests each lets through and the most each really lets into any W seconds, with the token bucket's exact worst case.

2 modules · 2 recorded sessions
P097

Traffic lights

A junction of two roads with a walk button, run second by second; and an audit that checks every second of a log against six rules and reports every violation - on the run itself, the run with a fault put in, or a log typed in.

2 modules · 2 recorded sessions
P098

Washing machine

Washing programs of timed stages run minute by minute, with pause and resume, a door that stays locked while there is water or the drum is turning, and power cuts that make the stage under way start again - the finish accounted for minute by minute.

2 modules · 2 recorded sessions
P099

Message timeline

Three people send messages, each stamping events with a clock of their own: the events put back in order by wall clock, by a Lamport counter and by vector clocks; cause-and-effect pairs each order gets backwards; and for any two events, whether one could have caused the other, with the chain of steps.

2 modules · 2 recorded sessions
P100

Mastermind

Codes of 4 colours from 6, scored black and white by counting colours: play against a secret code with the codes still possible counted after each answer, watch the computer's rule solve any code, or see how one guess is scored.

2 modules · 2 recorded sessions
P101

IBAN checker

International bank account numbers checked the ISO 13616 way, step by step: letters as numbers and the remainder mod 97 taken nine digits at a time; check digits made from an account part, leading zeros kept; and every IBAN one typing mistake away that would pass.

2 modules · 2 recorded sessions
P102

Keypad lock

A simulated door keypad with a clock: wrong PINs in a row lock it out for longer each time, the right PIN opens the door for ten seconds, the PIN can be changed, every event is logged, and the time to try every possible PIN is worked out.

2 modules · 2 recorded sessions
P103

Version sorter

Semantic Versioning: one list sorted as text, by a natural sort and by the SemVer rule, with the pairs they disagree on; two versions compared with the rule that decides; and the newest version matching a caret, tilde or comparator range.

2 modules · 2 recorded sessions
P104

Money ledger

A ledger kept in whole cents beside the same sums added as floats; one amount added many times; tax on every line under four rounding rules and the drift each one leaves over many halves; and an amount shared by weights three ways, two of which always add up.

2 modules · 2 recorded sessions
P105

Percent calculator

Percentage points against percent; a price up and back down; a stack of percent and flat steps applied in every order, rounded at each step and exactly; and every whole-cent price that comes to a given one after a percent change - all in cents and hundredths of a percent.

2 modules · 2 recorded sessions
P106

Date reader

A date in three parts read as day/month/year, month/day/year and year/month/day, each reading kept or refused with its reason and the real ones set apart in days; how many days of a year read as another date the other way; and a date written so it cannot be misread.

2 modules · 2 recorded sessions
P107

Retry planner

Waits between retries under fixed, exponential, full jitter, equal jitter and decorrelated policies; a crowd of clients coming back after an outage, with the busiest slot under each; and a job runner whose ledger checks that its finally block ran on every attempt.

2 modules · 2 recorded sessions
P108

Feature flags

Three environments compared as sets of flags - who is ahead, and what a promotion would turn on and off - and flags rolled out to a share of users by a bucket each user keeps, so a larger share only adds users; allow and deny lists; and the bucket against a new draw at every check.

2 modules · 2 recorded sessions
P109

Permissions

Roles as sets of actions in a partial order; folders that grant roles and deny actions, inherited by every document below them with the reason for each action; and documents moved without their stored grants being refreshed, audited for grants too many and too few.

2 modules · 2 recorded sessions
P110

Pagination

A feed read one page at a time while items are added and deleted between the requests: offset and keyset pagination side by side, and which rows each delivered twice or skipped - the skip hidden behind a full page.

2 modules · 2 recorded sessions
P111

Config merger

Settings in three layers - defaults, environment, command line - merged deeply with the source of every value, against a shallow merge that loses sibling settings and a merge that tests values for truth and lets false, 0 and empty text fall through.

2 modules · 2 recorded sessions
P112

Survey analyzer

A small survey: each question's exact mean, median and spread; the Net Promoter Score and the scores that would move it; the top respondents under strict, dense and exclude policies for ties; and a split by satisfaction.

2 modules · 2 recorded sessions
P113

Number curiosities

What a number's digits do: happy numbers and the cycle every other number falls into, Armstrong numbers, the digital root beside its formula, and Kaprekar's routine to 6174 and 495, step by step.

2 modules · 2 recorded sessions
P114

Quadratic solver

ax^2 + bx + c = 0 with exact rational, irrational and complex roots, square roots and divisions worked digit by digit on whole numbers; and the small root of x^2 + bx + 1 in floats, by the textbook formula and a stable one, against its exact digits.

2 modules · 2 recorded sessions
P115

Thermostat

Three rooms with their own settings over factory defaults that they read live, heated minute by minute through a day with a band around the target, hour by hour, and the band's trade-off between switching the heater and holding the temperature.

2 modules · 2 recorded sessions
P116

Deadlock detector

Threads taking and releasing locks by a schedule, turn by turn, with the wait-for cycle that is a deadlock; every interleaving counted, the serial ones that never deadlock, and one lock order that removes it.

2 modules · 2 recorded sessions
P117

Message queue

A broker that sends a message again when its acknowledgement is lost, four handlers over the same deliveries - add, replay, check and a window of keys - and every choice of lost acks counted, with a key reused for another request refused.

2 modules · 2 recorded sessions
P118

Cache stampede

One hot key with a time to live: naive, single flight, early refresh and serve stale, tick by tick and side by side, counting fetches, waiting and stale answers as the traffic grows.

2 modules · 2 recorded sessions
P119

Two-phase commit

A coordinator and its participants as state machines, the coordinator crashing after any step: wait, ask peers, presume abort and presume commit at every crash point, with the time each participant's data stays locked in doubt.

2 modules · 2 recorded sessions
P120

Leader lease

A lease from a store that A trusts by its own clock while B takes over by the store's: two leaders over every pair of clock drifts, counting from asking or hearing, and the margin that removes them and what it costs.

2 modules · 2 recorded sessions
P121

Attendance register

A mark for each student at each session - present, late, excused, absent or none - and attendance rates under four ways of counting, which flag different students: an absence, a missing mark and no sessions yet are three different nothings.

2 modules · 2 recorded sessions
P122

Turnstile

A coin unlocks the gate and a push lets one person through: three machines that differ only in a coin while the gate is open, step by step, side by side, and over every short sequence of events.

2 modules · 2 recorded sessions
P123

Inventory diff

Two stock counts compared in both directions: added, gone, changed and renamed items, an item very likely moved to a new code, a units balance, and what a one-way check never sees.

2 modules · 2 recorded sessions
P124

Pascal's triangle

Rows built from the one above by addition, every entry exact however long, checked by symmetry, the sum 2^n, the hockey stick and the count of odd entries; and the float formula's first mistake, in row 55.

2 modules · 2 recorded sessions
P125

Colour mixer

Colours as #RRGGBB mixed, added with clamping, scaled and back, graded and eased one channel at a time in whole numbers, each share truncated and rounded half up side by side.

2 modules · 2 recorded sessions
P126

Outline writer

An outline written as an indented triple-quoted string, read into a tree and written out as bullets, numbers and wrapped lines with a hanging indent; cut to a depth, a with block keeps the indentation where keeping it by hand drifts.

2 modules · 2 recorded sessions
P127

Timeout budget

A request through four hops, bounded by a fixed timeout for every caller or by the user's deadline passed down: the same wait and answer for the user, but only the fixed timeouts leave work running that nobody waits for.

2 modules · 2 recorded sessions
P128

Connection pool

Jobs leaving their bodies at the end, by break, by return or by raise, giving their connections back by hand or by a with block; and when users borrowing one connection after another can leave the whole pool held.

2 modules · 2 recorded sessions
P129

Batch retries

A batch with some writes failing at random, retried whole, retried for the failed records only, or rolled back and retried: writes, records written twice, and attempts that need no failure at all.

2 modules · 2 recorded sessions
P130

Lost update

Users reading, adding to and writing back one shared value by a schedule, with and without a version check: every order of their turns counted, and only the serial ones keep every update without the check.

2 modules · 2 recorded sessions
P131

Event log

An account replayed from its events beside a stored balance column one write path forgets: a check that compares the column with itself, a replay that finds where they part, and how many orders of the events end where the log does.

2 modules · 2 recorded sessions
P132

Fair share

One worker and one-slot jobs from a heavy tenant and light ones, first come first served or tenants in turn: the light tenants' worst wait changes a lot, the mean per job not at all.

2 modules · 2 recorded sessions
P133

Metric labels

Requests counted into time series, one per combination of label values: which labels keep taking new values as the traffic grows, how many series each labelling makes, and what counters and histograms cost to keep.

2 modules · 2 recorded sessions
P134

Log sampling

A stream of requests and four ways to keep one record in ten - every 10th, rotated, random, and every error kept - each answering the same questions about latency, errors and phases, and getting different ones wrong.

2 modules · 2 recorded sessions
P135

Percentiles

Three shops' response times: exact percentiles, why their p95s cannot be averaged while their histograms can be added, which aggregates survive being computed by shop, and how strict backends must be when a request waits for N of them.

2 modules · 2 recorded sessions
P136

Attribution

Conversions after paths of touches from four channels, credited by first touch, last touch, linear and position models with the same total and different leaders, and last touch decided by its lookback window.

2 modules · 2 recorded sessions
P137

Cohort retention

Users who signed up together leave as a product gets worse; the mean tolerance of those still here rises every period while the whole cohort's never moves, because the product chose who is left to be measured.

2 modules · 2 recorded sessions
P138

Text truncation

Fitting text into a column with an ellipsis against the one-liner s[:w-3] + ..., titles that come out the same when cut, and three whitespace tidy-ups that each settle in one pass and merge different amounts.

2 modules · 2 recorded sessions
P139

Tolerance grouping

Measurements the same within a tolerance - reflexive and symmetric but not transitive - grouped by first match, which depends on the order, and by chaining, which joins values far apart; and records matched on name, email or phone that chain the same way.

2 modules · 2 recorded sessions
P140

Parts rollup

A bike's bill of materials with a part shared by three parents: parts and cost per bike multiplied down every path, rightly, and a tooling cost paid once that the same tree rollup counts once per path.

2 modules · 2 recorded sessions
P141

Event tickets

One concert's bookings kept by two designs side by side - cancel as an undo and cancel as a state - so a cancel sent twice gives back seats and money twice in one of them, and the extra seats get sold.

2 modules · 2 recorded sessions
P142

Input sanitizer

Cleanup steps for typed text, which of them are safe to repeat, and pipelines of safe steps that still change on a second pass because a later step hands back work an earlier one would still do.

2 modules · 2 recorded sessions
P143

Member accounts

Sign-ups and soft deletes kept four ways - plain, partial, nulled and compound uniqueness - each decision set against the rule meant, one active account per address.

2 modules · 2 recorded sessions
P144

Customer merge

Duplicate customers merged by a matcher that compares stored strings and one that normalises when it compares - merges the first job's own writes manufacture - and the orders that still name the rows merged away.

2 modules · 2 recorded sessions
P145

Username registry

Names folded into keys four ways, from the name as typed to lower case without marks or trailing digits, set against who is who: the people each fold merges and the people it splits.

2 modules · 2 recorded sessions
P146

Order states

Orders kept as three fields - payment, fulfilment, called off - and as one status column of five values for eighteen real states: what the column reads back as, and the answers it gets wrong.

2 modules · 2 recorded sessions
P147

Webhook router

A payment provider's events through five handlers written before it added a kind - if-else, no else, a default, an error, a hold queue - each one's buckets and revenue set against what every kind means.

2 modules · 2 recorded sessions
P148

Price table

A parcel rate card keyed on the weights as typed and on whole grams: computed weights that find no entry, and 1, 1.0 and True landing on one key so a misaligned checkbox sets the 1 kg price.

2 modules · 2 recorded sessions
P149

Signup funnel

Sign-up rates by segment with events over humans, clamped and matched, and the sign-ups credited to onboarding tips set against the ones they caused as more people see them.

2 modules · 2 recorded sessions
P150

Fixed-width integers

A string hash, a binary-search midpoint, factorials and a division in Python's integers and in a 32-bit int as C and Java have it: where it wraps, where it turns negative, and where the two divisions part.

2 modules · 2 recorded sessions
P151

Tax brackets

Income bands written from a sentence and read four ways - closed, half-open, open, left-open - the incomes on a band's end, the slab tax the reading decides and the marginal tax it cannot change.

2 modules · 2 recorded sessions
P152

Import pipeline

Order rows through parse, enrich, dedupe and window, the books closed only with a ledger of every drop, and a listing whose count lets a viewer read the amounts it cannot see.

2 modules · 2 recorded sessions
P153

Flaky tests

A suite whose tests fail at random, retried and quarantined week by week: the pass rate retries report, and a suite that grows greener every week while it catches fewer defects.

2 modules · 2 recorded sessions
P154

Mutation tester

One small function and four mutants of it, test suites scored by the branches they run and the mutants they catch, the values that tell each mutant apart, and a test double that agrees with all of them.

2 modules · 2 recorded sessions
P155

File share

Documents reached by path and saved by a handler that looks the path up twice and one that resolves it once: a move between the check and the write sends a save to a document the caller does not own.

2 modules · 2 recorded sessions
P156

Comparator lab

Insertion, selection and bubble sort run with a head-to-head record that has a cycle and with sets compared by subset: different results for every input order, and an adjacent-pairs check that passes on results that are not in order.

2 modules · 2 recorded sessions
P157

Fraud alerts

A detector right 99% of the time over a million payments a month: accuracy that stays put while precision follows the fraud rate, the rate at which alerts are right as often as not, and a second check on the alerts.

2 modules · 2 recorded sessions
P158

Bug triage

Two findings with one shared cause patched where each was seen, one report with two causes patched to its own inputs, and a backlog that outruns its fixes worked in arrival order and worst first.

2 modules · 2 recorded sessions
P159

Risk flags

Accounts flagged from the signals against them, the flag stored bare and with its evidence: a withdrawn signal leaves the bare flag standing, and the evidence store recomputes just the flags that rested on it.

2 modules · 2 recorded sessions
P160

Upload limits

One upload endpoint limited by files, by bytes and by both: 100 files lets in anywhere from under a megabyte to hundreds, and a byte limit bounds the most any upload gets in.

2 modules · 2 recorded sessions
P161

Subscription billing

An API plan whose quota resets on the 1st, invoiced over a cycle that starts on the billing day: a customer who never ran out of quota is billed for overage, and a steady use is over the quota in the 31-day months only.

2 modules · 2 recorded sessions
P162

Timesheet

A week of shifts and hours over 8 in a day paid at time and a half, with the day read as the shift, the shop's calendar day and the payroll server's: every midnight that falls inside a long shift pays less.

2 modules · 2 recorded sessions
P163

Invoice rounding

A supplier's invoice with tax on every line, each line rounded half-up to the cent: rounded lines add up to more than the invoice is worth, and rounded shares of it to 101%.

2 modules · 2 recorded sessions
P164

Travel expenses

A trip paid by card in four currencies and reimbursed in dollars: an amount column that adds yen to cents, lines summed at ten days' rates, and a card that quotes at authorization and charges at capture.

2 modules · 2 recorded sessions
P165

Shard planner

Order ids allocated 8 apart, placed on buckets and nodes: id % 16 uses 2 of 16 buckets, a ring moves only the keys a new node takes, and one customer's key makes one node serve more than five times the even share.

2 modules · 2 recorded sessions
P166

Replica placement

Three replicas a shard on racks of 6, 3 and 3 nodes, by distinct nodes or by distinct racks: a check that counts nodes while failures arrive by rack, uneven loads, and a shared service no replica count moves.

2 modules · 2 recorded sessions
P167

Backup planner

An order system's changes hour by hour against a one-hour recovery point objective: a nightly backup that has never failed meets it for 1 hour of 24, and every archive carries the key that encrypts it.

2 modules · 2 recorded sessions
P168

Data anonymizer

200 made-up patient records released with names, emails and phones removed: postcode, birth date and sex still single out every one, and a log mask of one asterisk per letter publishes each name's length.

2 modules · 2 recorded sessions
P169

Float sums

Four workers' partial sums added as they arrive: a loop and Kahan's sum give five different totals over the 24 orders, and Neumaier's sum the true one in all of them.

2 modules · 2 recorded sessions
P170

Eligibility rules

300 made-up applicants and three rules written two ways: a negation distributed by hand keeps 56 it should skip, one clause of member-or-referred never decides, and a guard moved behind its test divides by zero.

2 modules · 2 recorded sessions
P171

Alert rules

Three monitors on one service: an alert on the crossing pages once while the disk fills for three days, a spike falls between two reads of a gauge, and minutes with no sample are recorded as zero.

2 modules · 2 recorded sessions
P172

Error budget

A 99.9% monthly target: two months that spend the same budget reach 42 users and 1,000, an hour with no requests reads as fully met, and one endpoint spends 82% of a budget the service never exceeds.

2 modules · 2 recorded sessions
P173

Cron scheduler

An office on UTC+1 and UTC+2 and a billing job set for 02:30 office time: on the spring change it does not run, on the autumn change it runs twice, and a report over the UTC day is not the day its readers mean.

2 modules · 2 recorded sessions
P174

DB migrations

Four idempotent migration steps on a customers table: two orders end in different schemas, a code rollback leaves the schema behind, and the down steps run in reverse lose the phone column.

2 modules · 2 recorded sessions
P175

Loyalty points

A cafe's points rule changed three times: today's pipeline rebuilding the points table calls 241 of 360 receipts ledger errors where 3 are, and a write-time store rule leaves the 19 old gaps in place.

2 modules · 2 recorded sessions
P176

Locker rental

A gym's lockers rented through a year, each freed number handed to the next tenant: notes written against a locker number now name another tenant or nobody, and random card ids of four hex characters collide among the first thousand members.

2 modules · 2 recorded sessions
P177

Stock reorder

One item's reorder point set for a 5-day lead time when the supplier takes 10, a stock screen that counts units on a ship and units already promised, and a shortage in which every order doubles.

2 modules · 2 recorded sessions
P178

Fuel economy

Two cars and a round trip: the van gaining 4 km/L saves more fuel than the sedan gaining 20, and 30 out and 60 back averages 40, not 45.

2 modules · 2 recorded sessions
P179

Recipe scaler

A roast for four scaled to more or fewer servings: the ingredients scale with them, the time with the 2/3 power of the weight, and a teaspoon of fine salt holds twice a teaspoon of flakes.

2 modules · 2 recorded sessions
P180

Power strip

An extension lead rated 10 A: two heaters each well under it draw 13.0 A together, and a 240 V heater on a 120 V supply gives a quarter of its heat.

2 modules · 2 recorded sessions
ΣEML 2026

Efficient New Language — a high-density semantic overlay for humans and AI agents.

This site’s demos run on the real EML toolchain, in your browser.

© 2026 EveMissLab (一言諾科技有限公司) / Neo.K. All rights reserved.