Pebble

A simple, fast scripting language for everyday tasks

Perfect for beginners, students, and teachers — yet powerful enough for real-world applications

Pebble Logo

Built for Performance from the Ground Up

Why Pebble?

Blazing Fast

Bytecode interpreter with NaN-tagged values for exceptional performance. Outperforms Python and competitive with Lua.

🎯

Simple Syntax

Clean, easy-to-learn syntax inspired by Python and Lua. Perfect for scripting, prototyping, and real applications.

🔋

Batteries Included

Comprehensive built-in library with file I/O, JSON parsing, string manipulation, array/map operations, collision detection, texture rendering, audio playback, and game development utilities. Everything you need, right out of the box.

🎮

Game Development Ready

Create games right out of the box! Built-in window creation, keyboard/mouse input, sprite rendering, collision detection, full audio support for music and sound effects. Everything you need for 2D games - no external libraries required.

🔧

Built-in Types

Native support for arrays, maps, and records with powerful built-in operations.

🛠️

VS Code Extension

Full IDE support with syntax highlighting, error reporting, goto definition, and more.

Quick Example

## Fibonacci function with memoization
let cache = {}

def fib(n):
    if n <= 1:
        return n
    end
    
    if has_key(cache, n):
        return cache[n]
    end
    
    let result = fib(n - 1) + fib(n - 2)
    cache[n] = result
    return result
end

print(fib(30))  # Fast execution!

Getting Started

Get up and running in seconds. No dependencies, no configuration, no hassle.

1

Download Pebble

Grab the binary for your platform

🐧 Linux 🍎 macOS 🪟 Windows
2

Write Your Code

Create a hello.pbl file

io_print("Hello, Pebble!")

let x = 42
io_print("The answer is", x)
3

Run It

Execute your script instantly

$ pebble hello.pbl
Hello, Pebble!
The answer is 42
Download Now

Performance Benchmarks

Real-world performance comparisons

Array Operations (100K push/pop + 1K insert/remove)

Pebble

38-45ms

Python 3

39-46ms
≈ Equal

Lua 5.4

874-947ms
22-24x slower

String Concatenation (50K iterations, 5 strings each) — result = result + "a" + "b" + "c" + "d" + "e"

Pebble

25-39ms

Python 3

2858-2894ms
114x slower

Lua 5.4

1020-1024ms
40x slower

Binary Trees (depth 20, 2M+ allocations)

Pebble

583ms

Python 3

2633ms
4.5x slower

Lua 5.4

667ms
1.1x slower

Map Operations (100K set/get/delete cycles)

Pebble

133ms

Python 3

137ms
≈ Equal

Lua 5.4

197ms
1.5x slower

Records/OOP Operations (100K instance creations, 100K field accesses, 100K field updates)

Pebble

38ms

Python 3

53ms
1.4x slower

Lua 5.4

53ms
1.4x slower