CLOTH

A systems programming language designed for performance, safety, and developer productivity. Built for creators, students, visionaries, and everyone in between.

v0.0.1Pre-AlphaCross-Platform

LANGUAGE OVERVIEW

Cloth combines the performance of systems programming with the safety and expressiveness of modern languages

Memory Safe

Compile-time memory management without garbage collection

Ownership system
Borrow checker
No garbage collection
Predictable performance

Zero-Cost Abstractions

High-level constructs with no runtime overhead

Generic programming
Trait system
Pattern matching
Functional features

Concurrent by Design

Built-in async/await and actor model for concurrency

Async/await syntax
Actor model
Message passing
Parallel execution

Cross-Platform

Native compilation for multiple architectures

Multiple OS support
ARM64 & x86_64
WebAssembly
Embedded systems

DESIGN PRINCIPLES

Cloth is built on three core principles that guide every design decision

Performance

Cloth is designed for high-performance applications. Every feature is carefully crafted to provide maximum performance without sacrificing safety or readability.

Compile-time optimizations
Zero-cost abstractions
Predictable performance
Minimal runtime overhead

Safety

Memory safety and type safety are fundamental to Cloth. The compiler prevents common programming errors at compile time, not runtime.

Memory safety guarantees
Type system enforcement
Compile-time error detection
No null pointer exceptions

Expressiveness

Cloth provides powerful abstractions that make complex problems simple to express and understand, without compromising performance.

Pattern matching
Algebraic data types
Trait-based polymorphism
Functional programming features

TECHNICAL SPECIFICATIONS

Built for modern systems with enterprise-grade reliability

Language Features

Core language capabilities and design decisions

Static type system with inference
Ownership & borrowing memory model
Async/await + actor concurrency
Multi-paradigm programming

Target Platforms

Supported operating systems and architectures

Linux, macOS, Windows, FreeBSD
x86_64, ARM64, RISC-V architectures
Microcontrollers and IoT devices
WebAssembly browser & server execution

GET STARTED

Begin your journey with Cloth in minutes

Quick Install

# Install Cloth
curl -sSL https://install.cloth.dev | sh
# Verify installation
cloth --version
# Create your first project
cloth init hello-world