Skip to content

Cloth-Foundation/oCloth

This is the main source code repository for Cloth, including the compiler, standard library, documentation, and tooling. Shuttle can be found here.

What is Cloth?

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.

Quick Start Guide

Download the latest compiler installer for your operating system and follow the on-screen instructions. You may need administrator permissions.

Build From Source

While not recommended, you can follow [the Installation Guide][INSTALL.md].

Help

See the Help Center or the Documentation for help resources.

Contributing

See Contributing.md.

License

Cloth is distributed under the terms of the MIT license and Apache 2.0 license.

About

The Cloth compiler

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages