Spherepop Prototype

( How ( + ( - ( 1 ) ( 2 ) ) ( - ( 1 ) ( 2 ) ) play ) spherepop: ( (Find the ( innermost bubble ) ) and then pop as many ( + b u b b l e s ) ) as you can ( . ) ) )

Spherepop is a visual programming language where nested expressions are represented as nested circles. Clicking on a circle evaluates the inner expression and updates the display.

Basic Principle

( ( ( a + b ) + c ) + d )

For the expression ((a + b) + c) + d, we will have a circle around a + b, a larger circle around (a + b) + c, and a larger circle around ((a + b) + c) + d.

Clicking on a circle will pop it and evaluate the expression within.
Scope Intro

Stack Explode

Spherepop Image 01
Click on spheres to evaluate the inner expressions and watch them pop!

Basic Example

(((1 + 2) + 3) + 4)

Complex Example

(((1 + 2) + (3 + 4)) + (5 + 6))

Deeper Example

(((1 + 2) + (3 + (4 + 5))) + (6 + (7 + 8)))

How It Works

1. Nested expressions become nested spheres - Each level of parentheses creates a new sphere layer

2. Click to evaluate - When you click a sphere, it evaluates its contents and pops with a satisfying animation

3. Work from the inside out - Start with the innermost spheres and watch the evaluation propagate outward

4. Visual feedback - Popped spheres turn green and display their computed value

Examples in Action