eLucid8 computes only what you ask for.
Point at any spot: eLucid8 computes its value in your browser and shows you why. Drag to move; double-click to zoom in.

Click a spot to ask about it · drag to move · double-click or + to zoom in · − to zoom out · 0 to start again
The same engine as the elucid8 command, compiled to WebAssembly: the same answers, bit for bit, in your browser or on a server.
Try it on your phone: the same engine computes every zoom there.
At c = −0.7750 + 0.1350i
54steps, then the point escapes
n_steps[level = 1, k = 200, x = 1290, y = 1654]
Point anywhere on the picture to ask for another spot.
Why 54?
Starting from z = 0, eLucid8 repeats z ← z² + c. At step 54, z is first more than 1,024 from 0, so the count stops there.
| step | z | distance from 0 |
|---|---|---|
| 52 | 15.30 + 3.33i | 15.7 |
| 53 | 222.17 + 102.14i | 245 |
| 54 | 38,926.79 + 45,383.30i | 59,791 past 1,024 |
For this answer eLucid8 computed 1,904 values: this one point's path, nothing else. See every step in the playground
Places to explore
The program (9 equations for every view: moving asks for other points, zooming for another level)
-- The Mandelbrot set: for each point c of the plane, -- repeat z ← z² + c from z = 0 and count the steps -- until z is more than 1,024 from 0. -- Each level is twice as close as the one before; x -- and y have no end: the picture is the part of the -- plane asked for, at the level asked for. step = 0.005 / pow(2, #level) steps = min(2000, round(200 * (1 + log10(pow(4, floor(#level / 2)))))) cx = -4 + #x * step cy = -4 + #y * step escaped = zr * zr + zi * zi > 1048576 zr = restrict 0 fby.k (if escaped then zr else zr * zr - zi * zi + cx) to (k : 2001) end zi = restrict 0 fby.k (if escaped then zi else 2 * zr * zi + cy) to (k : 2001) end n_steps = restrict 0 fby.k (if escaped then n_steps else n_steps + 1) to (k : 2001) end -- The colour: the count made smooth between steps -- (the steps in the set). shade = if escaped then n_steps + 1 - log(log(zr * zr + zi * zi) / log(4)) / log(2) else steps
The question for the picture you see
shade[level = 1, k = 200, y = 1120..2079, x = 600..2039]
Build with a coding agent
Connect eLucid8 to Claude Code through MCP and it writes, checks and runs eLucid8 programs and deployments for you: it compiles each program before showing it, runs it on your data, explains an error from where it arose, and opens the results in the Player.
On the 38 tasks we test agents with, Claude Code completed 37.
pip install elucid8 claude mcp add elucid8 -- elucid8 mcp
Curious how it works?
You never have to write eLucid8, but you can always read it: a three-line program, its answers, and what each answer was computed from.
1Read it
x = input("x", t : inf)
running = x fby.t (running + next.t x)
ratio = running / xx: the readings, one at each steptrunning: the first reading, then the total so far plus the next oneratio: the total divided by the reading
2Ask any point
With readings 3, 1, 4, 0, 5, 9:
running[t = 4]13ratio[t = 3]Error: division by zerox[t = 6]eodEvery answer is data, eod (past the end of the data) or an error that says where it started, with the time of the newest data it read.
3Ask why
- running[t = 4] = 13
- running[t = 3] = 8
- running[t = 2] = 8 …
- x[t = 3] = 0 · data
- x[t = 4] = 5 · data
Only what the answer needed: running at t = 0 to 4 and the readings at t = 0 to 4.
Build with it
Connect your AI
So your AI can use eLucid8 every time, with no steps to paste:
https://elucid8-lang.org/llms.txtUse it from Python
Tables in and out (pandas, Polars, pyarrow), from scripts and notebooks.
# pip install elucid8 pandas
import pandas as pd, elucid8
program = """
x = input("x", t : inf)
running = x fby.t (running + next.t x)
"""
readings = pd.DataFrame({"t": [0, 1, 2, 3, 4], "value": [3, 1, 4, 0, 5]})
table = elucid8.run(program, {"x": readings}, query="running[t = 0..4]", timestamps=False)
print(elucid8.tidy(table))It prints:
t running_value running_error 0 0 3.0 None 1 1 4.0 None 2 2 8.0 None 3 3 8.0 None 4 4 13.0 None
Find your way
- Asking your AIWhat to ask, from a first picture to your own data, in three levels.
- Read a programThe language construct by construct, each with an example you can open in the playground.
- Check the answersAsk any point, read eod and errors, and press Why? to see what an answer was computed from.
- Run it for realYour first program on your computer: the elucid8 command, a program's folder and its deploy.json.
- ReferenceEvery construct with an example; for AI tools, the guide at llms.txt.
Write equations yourself: lessons in the language, in your browser.
Why eLucid8: where it fits, why not just Python, and measured against NumPy, DuckDB and pandas. See it run: Heat on a plate · Coral from a square · Catch a feature leak