Indentation is structure
No piles of braces just to show where a block starts. The shape of the code stays visible.
A small, readable language with indentation-based syntax and a native LLVM compiler. Write programs that are easy to read before they become hard to maintain.
fn greet(name):
return "Hello {name}!"
message = greet("World")
print(message)
01 / The language
Tekst is designed so the first program is approachable and the language can still support larger programs.
No piles of braces just to show where a block starts. The shape of the code stays visible.
Define a function, give it arguments, return a value, and keep moving.
Collections, classes, modules, pointers, and compiler tooling are part of the wider language surface.
The point isn't fewer features. It's less friction between the idea in your head and the code on the screen.
THE TEKST APPROACH02 / See it
Every example below is a real piece of Tekst source. Switch tabs, then copy exactly the example you are looking at.
03 / Under the surface
The compiler is written in C++17 and lowers Tekst programs through parsing and LLVM IR.
That gives Tekst two useful sides: a syntax you can understand quickly, and a compiler architecture you can dig into when you want to understand what happens underneath.
Explore the compiler →04 / Beyond hello world
Move through the documentation by concept, not by a giant wall of reference pages.
Values, variables, strings, operators, and input.
Learn basics ↗ 02Arguments, returns, defaults, and reusable code.
Learn functions ↗ 03Classes, fields, methods, instances, and inheritance.
Learn objects ↗ 04Lists, tuples, dictionaries, indexing, and mutation.
Learn collections ↗ 05Organise larger programs with use, from … use, and packages.
Explore pointers, addresses, allocation, and lower-level concepts.
Learn memory ↗05 / Start here
Try Tekst in the browser, or install a release and learn the language one concept at a time.
Try Tekst in your browser →Read the getting started guide ↗$ tekst hello.tk
$ ./hello
Hello World!Current release
Loading release information.
TEKST
The best first impression a programming language can make is a program you understand before anyone explains it.
Start with Tekst ↗