Hey all. This is the home page for the Ten programming language. For now it’s just me working on the language and it isn’t ready for public use, but if you’d like to get involved then feel free to contact me on reddit.

For installation instructions you can check out the Getting Started page. Unfortunately there isn’t much auxiliary material on the language itself for now, but the Ten Reference Manual gives full coverage of the language, its prelude, and embedding API.

About Ten

Ten is a general purpose scripting language inspired by Lua. It’s small, portable, and embeddable; and has some pretty interesting features, though the greatest of its ‘features’ is its lack thereof. Ten strives for utmost simplicity, providing only the essentials as language features and leaving the rest for libraries to implement.

Besides its minimalism, Ten has a few notable features that set it apart from other languages of the same class.


Here are a few code samples to give an idea of what the language looks like:

Hello Person

def name: do show"What's your name? " for input()
show( "Hello, ", name, "!", N )

Fizz Buzz

each( irange( 1, 101 )
  [ num ]
      num % 15 = 0: show"FizzBuzz "
      num % 3  = 0: show"Fizz "
      num % 5  = 0: show"Buzz "
      show( num, " " )
show( N )


def fibo: [ n ]
  if n < 2:
    this( n - 1 ) + this( n - 2 )

Linked List

def cons: [ car, cdr ] { .car: car, .cdr: cdr }
def list: [ vals... ] do
    def iter: rseq( vals )
    def recr: [] do
        def next: iter()
    for next &? cons( next, this() )
for recr()

def digits: list( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 )