Getting Started
Welcome to Toka! Toka is a modern systems programming language designed for memory safety, high performance, and intuitive development. It implements the Hat Principle to achieve compile-time memory safety without a garbage collector or manual lifetime annotations.
To help you get up and running as quickly as possible, this chapter is divided into three logical steps. We recommend following them in order:
🧠Your Path to Toka
-
Installation Set up the Toka compiler and toolchain on your system. We provide a single-command quick installer for Linux, macOS, and Windows, as well as instructions for building from source.
-
Hello, Toka! Write, compile, and run your very first Toka program. You'll learn how to invoke the compiler directly and understand the anatomy of a basic Toka executable.
-
Project Structure Scale up from a single-file script to a structured multi-file package. Learn about Toka's built-in package manager, defining package metadata in
package.tk, adding dependencies, and structuring library projects.
Let's begin by installing Toka on your machine!