This is the main source code repository for Cloth, including the compiler, standard library, documentation, and tooling. Shuttle can be found here.
Cloth is a high-performance, object-oriented, low-level language designed for predictable execution and maintainable systems programming. It combines familiar C-style control with a structured, Java-like class model.
- Performance – Cloth avoids garbage collection and uses deterministic destruction, resulting in predictable runtime behavior and minimal overhead.
- Maintainability – A structured, class-oriented design and explicit syntax make large codebases easier to reason about and evolve over time.
- Productivity – Strong compile-time guarantees and explicit error handling reduce runtime surprises and debugging complexity.
- Memory Safety – Cloth uses a hierarchical ownership model with deterministic destruction. Objects form an ownership tree rooted at program entry, while static data exists in a separate root-lifetime domain, allowing for safe and predictable memory management without a garbage collector.
Download the latest compiler installer for your operating system and follow the on-screen instructions. You may need administrator permissions.
While not recommended, you can follow [the Installation Guide][INSTALL.md].
See the Help Center or the Documentation for help resources.
See Contributing.md.
Cloth is distributed under the terms of the MIT license and Apache 2.0 license.