REDLINE Programming Language
High-Speed Science (v1.0)
Welcome to the official guide for the REDLINE Programming Language. You're here because you're not satisfied with the status quo. You want the simplicity of modern scripting languages and the raw power of compiled, low-level code. You want to have your cake and eat it too. We're here to tell you that you can.
What is REDLINE?
REDLINE is a high-performance, transpiled systems programming language. Our motto is "C++ but Simplified." We've engineered a language that combines the clean, readable, indentation-based syntax of Python with the near-bare-metal speed of C++.
How? We don't try to reinvent sixty years of compiler technology. Instead, REDLINE is a "transpiled" language. Your REDLINE code is converted into highly optimized, human-readable C++17 code, which is then compiled by a standard C++ compiler (like G++) into a native executable. This gives you the best of both worlds: a beautiful, modern language on the frontend, and a battle-tested, performance-obsessed toolchain on the backend.
Who is this book for?
This book is for any developer who has ever said, "I love how easy Python is, but I wish it were faster," or, "I love how fast C++ is, but I wish it were simpler." Whether you're a student building your first project, a hobbyist making a game, or a professional engineering a high-performance application, REDLINE is your new favorite tool.
The REDLINE Philosophy: Why Transpilation?
Our philosophy is simple: focus on results, not on reinventing the wheel.
- Leverage the Best: By compiling to C++, we instantly inherit decades of compiler optimization research. We get access to the massive C++ ecosystem of libraries and tools for free.
- Focus on the Developer: Since we don't have to write a new code optimizer from scratch, we can focus on what matters most: the developer experience. We've poured our resources into creating a clean syntax, a powerful standard library, and intuitive tooling.
- Transparency: You can always look at the generated C++ code in the
temp_builddirectory. There's no magic here—just efficient, high-speed science.
How to Install REDLINE
Installation is simple. You just need to clone the repository and initialize the compiler core.
Prerequisites
- Rust & Cargo: To build the REDLINE compiler core.
- G++ (C++17 compatible): To compile the generated C++ code.
- Python 3: To run the build script.
- Git: To clone the repository.
Steps
-
Clone the Repository:
Find a good place on your computer and clone the REDLINE repository.
git clone https://github.com/REDTOPS-Enterprise/REDLINE.git -
Navigate into the Directory:
cd REDLINE -
Initialize the Compiler:
Run the
initcommand. This will usecargoto build the Rust-based compiler core.python redline.py init
Once these steps are complete, you are ready to use the compiler.