An open API service indexing awesome lists of open source software.

https://github.com/cloth-foundation/cloth

A statically-typed OOP language with two-pass compilation.
https://github.com/cloth-foundation/cloth

compiler golang help-wanted programming-language static-typing

Last synced: about 2 months ago
JSON representation

A statically-typed OOP language with two-pass compilation.

Awesome Lists containing this project

README

          



The Cloth Programming Language

[Website][Cloth] | [Learn] | [Documentation] | [Contributing]


Early Access
Apache License
MIT License

GitHub Stars


[Cloth]: https://cloth.dev

[Learn]: https://cloth.dev/learning-center

[Documentation]: https://docs.cloth.dev

[Contributing]: CONTRIBUTING.md

This is the main source code repository for [Cloth](https://cloth.dev), including the compiler, standard library,
documentation, and tooling. Shuttle can be found [here.](https://github.com/Cloth-Foundation/Shuttle)

# 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).

## Required 3rd Party Libraries
> There is a plan when an installer is made that it will automatically install these libraries.
- [Git](https://github.com/git/git)
- [Clang](https://clang.llvm.org/)

## Help

See the [Help Center](https://cloth.dev/resources) or the [Documentation](https://docs.cloth.dev/) for help resources.

## Contributing

See [Contributing.md](CONTRIBUTING.md).

## License

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