This repository contains the Glu compiler and standard library.
Glu was created as a modern alternative to C for use as a "glue" language—making it easy to connect and interoperate with other languages and systems, especially via LLVM. While C is fast and portable, it lacks safety, modern tooling, and seamless integration with today's language ecosystems. Glu addresses these gaps with:
- Simplicity: Clear, concise syntax inspired by modern languages.
- Performance: Fast and resource-efficient, suitable for embedded and high-performance applications.
- Safety: Robust type system and safe memory management to prevent common errors.
- Interoperability: Native LLVM integration for easy interaction with Rust, Swift, Clang, and more.
- Reversibility: Unique ability to regenerate readable source code from optimized LLVM IR, aiding debugging and understanding of compiler optimizations.
-
The Glu Book: A comprehensive guide to learning Glu step by step.
-
Language Reference: Detailed documentation of Glu's syntax and architecture.
-
Why Glu Exists: An explanation of the motivations behind Glu's creation.
Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines on how to contribute to the project.
Glu is distributed under the terms of the Apache License 2.0. See the LICENSE file for more details.
For more information, visit the official website: https://glu-lang.org