Gallery
Every example, drawn from the values eLucid8 computed for it. Pick one to explore it in the playground: zoom into a fractal, play a simulation, point at any value and ask why.
45 examples
Fractals 8
Zoom and panMandelbrot set (fractal)The home page's picture: the famous fractal at any level of zoom. Try: ask for the Tricorn, Cubic or Celtic.
Zoom and panTricorn (fractal)The Mandelbrot set with one sign changed: a three-cornered hat with ragged arms.
Zoom and panCubic Multibrot (fractal)The Mandelbrot iteration with z³ in place of z²: two round bodies with a bulb above and below.
Zoom and panCeltic fractalThe Mandelbrot iteration with abs on the real part: a pointed wing with knotted fronds.
Zoom and panJulia set (fractal)The Mandelbrot set's cousin: z ← z² + c with c fixed, at any level of zoom.
Zoom and panBurning Ship (fractal)The Mandelbrot iteration with absolute values: a ship on fire.
Zoom and panNewton's fractal for z³ − 1Which cube root of 1 Newton's method reaches from each point, and how fast.
Zoom and panSierpinski triangle (fractal)Pascal's triangle mod 2 at every scale: zoom in and the triangle comes back.
Grids and simulation 4
PlaysHeat diffusion over time and spaceHeat spreading on a plate, tick by tick.
PlaysGame of Life (random start)Conway's cellular automaton on a 128 × 128 board.
PlaysReaction–diffusion: coral from a squareTwo chemicals spread and react: a ring grows from a square and folds into coral.
Image pipeline: blur and edges (optimisations never change results)Blur an image, then find its edges.
Data science and ML 8
Feature leakage: timestamps prove what each value readFeatures for a prediction, and a check that none reads the future.
Anomaly detection on sensorsAlarms where a reading is far from its sensor's recent readings, with missing readings left out.
- Forecasting demandHolt's smoothing forecasts each product's sales a week ahead, and measures its error.
- PlaysForecasting by differencesPredict tomorrow by assuming a change, or the change in it, repeats; compare the levels.
- Forecasting by differences: real exchange ratesThe same levels on 60 days of the ECB's dollar/euro rate: tomorrow equals today wins.
PlaysHow training works, written as equations (XOR, a teaching example)A teaching example: a tiny network learns XOR by gradient descent. eLucid8 is not meant for training large models.
Matrix multiplication (MDP §5.3)One entry of a product, demanding one row and one column.
Longest common subsequence: dynamic programming on demandA table of subproblems, of which a question computes only the cells it needs.
Real time 4
- A watchdog on a heartbeatCheck every second how long since the last beat, and raise an alarm after 3 seconds of silence.
Rate limiting loginsAt most 3 attempts in any 10 seconds per user: a script's burst is blocked, with the time to wait.
- Sessions from clicksA gap of more than 30 minutes ends a visitor's session: each session's number, length and pages.
- A heater that never acts on a stale reading (hold … within)A thermometer goes quiet: past 2 seconds its last reading is too old, and the heater says so instead of guessing.
Sensors and time 6
- Three sensors along a dimensionCompare sensors at the same hour, and find the warmest.
- Missing and failed readings (missing data and errors)What happens to answers when a reading is missing or faulty.
- Two streams and alignment by timeCombine two streams that arrive at different times.
PlaysAlps temperature (real data, Open-Meteo)Three days of real temperatures on a 16 × 16 grid.
- Correcting data: only what read it is computed againCorrect one reading and see what is reused and what is computed again.
- Buttons and latches (Lustre style)A rising edge, a counter with a reset, a latch and a stopwatch, as in Lustre.
Business 3
- Market feeds as of each momentPrice each trade against the quote in force when it happened.
PlaysSales planning by product, zone and monthRevenue, totals by zone and product, and a plan that grows each month.
- Splitting rows: passed and failed (wvr)Keep the payments that pass a test, in order, with wvr, and the others beside them.
Operations 2
Outside services 2
Lists, records and sets 4
- Visitors: lists, records and setsEach visit a record, every visit in a list, and the distinct visitors in a set.
- A to-do list with undo: a list as a stackOpen tasks as a list of records, and undo by keeping a stack of the states before each action.
- Who can reach whom: a set grown to a fixed pointThe people one person reaches through follows, a set grown step by step until it stops changing.
- A queue at a counter: a list as a queueCustomers join the end of a line and are served from the front; how long the line gets, and the longest wait.
Start here 4
- The basicsData, arithmetic, fby, a sum over a range, if and eod, on ten readings.
- Streams: first, next, fbyA running sum and its neighbours along one dimension.
- Functions, where clauses and a second dimensionYour own functions, local definitions, and a prefix sum.
- Drawing curves: tanh and a sine waveTwo curves drawn as lines: tanh, and a sine wave.