Latest toolchain toolchain-01c1f625

Code you can read.Speed you can measure.Binaries you can ship.

tiko is a compiled, statically typed language for building fast, self-contained programs. Readable syntax on top; generics, channels, typed errors and direct C-header import underneath, compiled through LLVM with no garbage collector and no runtime to install.

Other platforms · Release notes · pre-1.0, free and open source

  words.tiko
#import "std/containers"
#import "std/strings"

'' Count the words in a sentence and return the most common one.
function MostCommon( byval text as ustring ) as (word as ustring, count as int32)
    dim counts as containers.Map( of ustring, int32 )
    for each w as ustring in strings.Split( LCase( text ), " " )
        counts[ w ] += 1
    next

    dim as ustring best
    dim as int32 most = 0
    for each e in counts
        if e.Value > most then best = e.Key : most = e.Value
    next
    return (best, most)
end function

var (word, n) = MostCommon( "the quick brown fox jumps over the lazy dog the end" )
print "'" & word & "' appears " & n & " times"
'the' appears 3 times
≈ Cmatches the speed and performance of C on many benchmarks
25 KBhello world on Windows, system DLLs only
No GCscope-based cleanup, defer, shared pointers
4 platforms + AndroidWindows x86-64, Linux x86-64 and arm64, macOS Apple Silicon; Android apps built on Windows (experimental)
Why tiko

The readable systems language

For tools, services, command-line programs and native apps, when you want Python's clarity and C's executables.

Readable by design

Every block says what it closes: end function, next, end if. A reviewer never counts braces.

C-class speed

Its own front end and typed IR, then LLVM. Measured against C, Rust, Go and Zig, scripts in the repo.

Tiny, self-contained

One small executable, no runtime to install, no Visual Studio needed for the Windows target.

Concurrency built in

spawn a procedure, pass values through typed channels, wait on several with select channel.

Reads C headers directly

#cinclude "sqlite3.h" imports a C library's own header. You don't write a binding.

Batteries included

Containers, Result/Optional, filesystem, time zones, HTTP and TLS, exact decimals, logging and a TUI toolkit.

A quick tour

Modern features, plain words

Every sample here compiles and runs with the current toolchain.

  settings.tiko
#import "std/fs"

var r = fs.ReadAllText( "settings.ini" )
if r.IsOk( ) then
    print len( r.Value( ) ); " characters"
else
    print "cannot read settings.ini: "; r.Failure( ).Message( )
end if
cannot read settings.ini: no such file or directory
Install

Get tiko

One archive per system. Unpack it anywhere: tiko finds its own headers and libraries, and needs no environment variables. Each archive also carries tkEdit, a GUI-based, multi-buffer editor.

Windows

Windows 10 or 11, x86-64. Also builds Android apps tiko-windows-x86_64-01c1f625.zip 92 MB · SHA-256 f515f8421633c1a6105a8335c79b52b55800b735c7dc427611fc5a20453f7f7b Download .zip

Linux x86-64

x86-64 (amd64), glibc tiko-linux-x86_64-01c1f625.tar.gz 46 MB · SHA-256 478bf2f21e054172a6f153b090e48a2c0252cea6e22e015442a922aa67b1854c Download .tar.gz

Linux arm64

aarch64, glibc 2.35+: Ubuntu 22.04+, Debian 12, Raspberry Pi OS 64-bit tiko-linux-arm64-01c1f625.tar.gz 45 MB · SHA-256 a25f6ded601a5a07a142a7441bbf290bdaafb9dcee2aa2065ada034ec970fcf5 Download .tar.gz

macOS

Apple Silicon (arm64), macOS 13+ tiko-macos-arm64-01c1f625.tar.gz 40 MB · SHA-256 37a515a0811144666b22d8b755faa76b81cdb86f5fb9b62f3bc93ed1906f82ac Use curl: see steps
  1. Download and unzip

    Download tiko-windows-x86_64-01c1f625.zip and unzip it anywhere. You get one folder, tiko-lang\. Or, in PowerShell:

    curl.exe -fLO https://github.com/PaulSquires/tiko-lang/releases/download/toolchain-01c1f625/tiko-windows-x86_64-01c1f625.zip
    tar -xf tiko-windows-x86_64-01c1f625.zip
  2. Install clang 18 or newer

    tiko uses clang to compile and link. It is not bundled.

    winget install LLVM.LLVM
  3. Compile your first program

    Save print "Hello, world!" as hello.tiko, then:

    tiko-lang\tiko.exe hello.tiko -o hello.exe
    hello.exe

    Open the editor with tiko-lang\tkedit.exe.

Released 2026-11-26 · Release notes and checksums · All releases · Build from source

Learn

Learn at your own pace

Free, online, and written for programmers who know another language. Every listing is compiled and run before it is published.

The book

The tiko Programming Language

From types and control flow through generics, concurrency and C interop, to three complete projects: a search tool, a concurrent pipeline and a terminal-UI ledger.

Read onlineGet the PDF
The tiko Programming Language: book cover

tiko by Example

One short, complete program per page with the output it printed, and a few activities to try. From printing to channels.

Start the examples →

Documentation

The Feature Index, the standard library, every keyword and intrinsic, and tutorials on concurrency and modules.

Open the docs →

AI Cheatsheet

The language and standard library on one page, for AI coding agents: syntax, idioms and the mistakes that break builds. Drop it in as AGENTS.md.

Get the cheatsheet →
Tooling

Comes with the tools you expect

tkEdit

A GUI-based, multi-buffer editor in every archive, with syntax highlighting, themes, and compile-and-run. Written in tiko.

tiko-lsp

A language server for any LSP editor: completion, hover, rename, formatting, inlay hints. GitHub →

Diagnostics and debugging

Every error has a stable TKOnnnn id and a caret. -g emits DWARF for gdb, lldb and lldb-dap.

tkEdit

Write it, debug it, draw it

tkEdit is in every archive, on Windows, Linux and macOS. It is one file, written in tiko, with an editor, a debugger and a visual form designer.

tkEdit with a project open, three tabs and the project explorer, in light and dark themes
Editor

tkEdit

Multi-buffer editing with tiko-aware highlighting, a project explorer, light and dark themes, and build-and-run on F5.

Get started →
tkEdit stopped at a breakpoint, with locals, the call stack and breakpoints
Debugger

Source-level debugging

Breakpoints, stepping, run to cursor, and locals, globals and watches as trees. Hover over a name to see its value. It runs on lldb-dap.

Debugging in tkEdit →
The Form Designer: toolbox, a form of real controls, the object tree and properties
Visual Designer

Form Designer

Draw a window from real tkControls, double-click a control to write its handler, and bind controls to your data. The output is ordinary tiko source.

Form Designer guide →
tkControls

Over 60 controls for native apps. They look the same on every system.

A GUI toolkit written in tiko, with a data grid, charts, a code editor, printing and reports. It ships with the toolchain: #import a control and build.

  • Windows, Linux and macOS build from one source, with no changes. Every control draws itself on SDL3. Android too, experimentally.
  • Themeable: light, dark, or your own palette. The fonts are bundled.
  • Data-binding aware Bind: LoadFrom fills a form from a record and SaveTo validates it and writes it back. Grids and lists fill from an array or an SQLite query.
  • MPL 2.0: you can use the controls in closed-source software.
tkDataGrid: 100,000 rows with typed columns, check boxes, progress cells and a multi-row selection tkDataGrid · 100,000 rows, edited in place
AndroidExperimental

The same source, on a phone

A tkControls program is also an Android app. tiko compiles it, links it and signs it as an APK, with no Java, Kotlin or Gradle project to keep.

  • One command: tiko -target android-arm64 -app hello.tiko writes hello.apk, ready for adb install. -appbundle makes an App Bundle for Google Play.
  • Made for touch: taps, swipes with fling, long press, the screen keyboard per field, the safe area and the BACK button, in every control.
  • Built on Windows with Android Studio's SDK and NDK, for Android 10 or newer: phones (arm64) and the emulator (x86-64).
tiko -target android-x86_64 -app hello.tiko
adb install -r hello.apk
Fasting on Android: the Timer page, a ring two thirds full around the elapsed time, with the goal and an End fast button Fasting on Android: the Calendar page, a month grid with the hours fasted on each day in green or orange Fasting on Android in the dark theme: the Reports page with tiles and a chart of hours fasted per day

Fasting, written in tiko with tkControls, on the Android emulator

Tiko, the tiko mascot

tiko is young, and growing fast

It's pre-1.0: try it, break it, tell us on GitHub. Coming from FreeBASIC? tiko compiles FreeBASIC code, and .bas/.bi files mix freely with .tiko/.ti.

Compatibility guide