Skip to content
@turf-lang

The Turf Project

The Intelligent Compiler. Home of the Turf Compiler, focused on extremely helpful errors.

A statically typed language that compiles ahead of time to native executables.

Website · Download · Releases · Issues

About Turf

Turf is a compiled language built on LLVM. It has structs, enums, real generics, state machines, pattern matching, error unions, and a garbage-collected heap with checked references. The standard library covers strings, collections, files, JSON, HTTP and sockets. A project and package tool and a language server ship with it.

Programs compile to a single native executable that needs no Turf files at run time. Releases are self-contained on Linux (x86-64, arm64), macOS (Apple Silicon) and Windows (x86-64): the archive carries the compiler, its LLVM, the linker and the runtime, so there is nothing else to install.

Get started

# Linux and macOS
curl -fsSL https://turflang.org/install.sh | sh
# Windows (PowerShell)
irm https://turflang.org/install.ps1 | iex

Or use a package manager:

brew install turf-lang/turf/turf        # Homebrew
scoop bucket add turf https://github.com/turf-lang/scoop-turf
scoop install turf                      # Scoop

Then:

turf new hello && cd hello
turf run

Repositories

Repository What it is
turf-lang The compiler, standard library and language reference. Start here.
turf-cli The turf command-line tool: projects, builds, tests, formatting and dependencies.
turf-lsp The language server, which runs the real compiler in-process for diagnostics, hover and completion.
turf-skills Skills that teach coding agents to write Turf.
turf-fuzz Fuzzing for the compiler, with findings promoted to regression tests.
website Source for turflang.org.
homebrew-turf Homebrew tap.
scoop-turf Scoop bucket for Windows.

Contributing

Bug reports, questions and pull requests are welcome. Report a compiler bug on turf-lang and include the output of turf version. Problems with the turf tool belong on turf-cli, and editor problems on turf-lsp. Each repository's README says how to build and test it.

Pinned Loading

  1. turf-lang turf-lang Public

    The Turf programming language: statically typed, compiled ahead of time to native executables through LLVM. Generics, pattern matching, state machines, error unions and a garbage-collected heap.

    C++ 3

  2. turf-lsp turf-lsp Public

    Language server for Turf, speaking LSP 3.17. It runs the real compiler in-process, so diagnostics, hover and completion match what turfc reports.

    C++

  3. turf-cli turf-cli Public

    The turf command-line tool for Turf: create, build, test and format projects, and manage reproducible, lock-pinned git dependencies.

    Go

  4. turf-skills turf-skills Public

    Agent skills for writing Turf: language syntax, the standard library and the turf toolchain. Works with any coding agent.

    JavaScript

  5. turf-fuzz turf-fuzz Public

    Fuzzing for the Turf compiler, kept separate from the compiler repo. Findings are minimized and promoted to regression tests.

    Python

  6. website website Public

    Source for the Turf website and documentation. Built with Astro.

    MDX

Repositories

Showing 9 of 9 repositories
  • turf-lang Public

    The Turf programming language: statically typed, compiled ahead of time to native executables through LLVM. Generics, pattern matching, state machines, error unions and a garbage-collected heap.

    turf-lang/turf-lang's past year of commit activity
    C++ 3 Apache-2.0 0 8 0 Updated Oct 15, 2026
  • website Public

    Source for the Turf website and documentation. Built with Astro.

    turf-lang/website's past year of commit activity
    MDX 0 0 0 0 Updated Oct 15, 2026
  • .github Public

    Turf is a statically typed, ahead-of-time compiled language built on LLVM.

    turf-lang/.github's past year of commit activity
    0 0 0 0 Updated Oct 14, 2026
  • turf-skills Public

    Agent skills for writing Turf: language syntax, the standard library and the turf toolchain. Works with any coding agent.

    turf-lang/turf-skills's past year of commit activity
    JavaScript 0 Apache-2.0 0 0 0 Updated Oct 14, 2026
  • turf-lsp Public

    Language server for Turf, speaking LSP 3.17. It runs the real compiler in-process, so diagnostics, hover and completion match what turfc reports.

    turf-lang/turf-lsp's past year of commit activity
    C++ 0 Apache-2.0 0 0 0 Updated Oct 14, 2026
  • turf-fuzz Public

    Fuzzing for the Turf compiler, kept separate from the compiler repo. Findings are minimized and promoted to regression tests.

    turf-lang/turf-fuzz's past year of commit activity
    Python 0 0 3 0 Updated Oct 14, 2026
  • scoop-turf Public

    Scoop bucket for installing Turf on Windows.

    turf-lang/scoop-turf's past year of commit activity
    0 0 0 0 Updated Oct 14, 2026
  • homebrew-turf Public

    Homebrew tap for Turf: brew install turf-lang/turf/turf.

    turf-lang/homebrew-turf's past year of commit activity
    Ruby 0 0 0 0 Updated Oct 14, 2026
  • turf-cli Public

    The turf command-line tool for Turf: create, build, test and format projects, and manage reproducible, lock-pinned git dependencies.

    turf-lang/turf-cli's past year of commit activity
    Go 0 0 0 0 Updated Oct 14, 2026