NitroPascal

Modern Pascal • C Performance

Write elegant Object Pascal code and transpile it to optimized C++ for blazing-fast native performance. Powered by Zig's modern toolchain for seamless cross-platform compilation.

💡 Introduction to NitroPascal

Discover what NitroPascal is, why it was created, and what makes it unique

🔥 What Makes It Special?

A revolutionary transpilation approach that delivers uncompromising performance

Transpilation-Powered Performance

NitroPascal doesn't just compile Pascal—it transforms your modern Object Pascal code into highly optimized, idiomatic C++. This intermediate representation is then compiled using Zig as a drop-in C++ compiler, leveraging its powerful LLVM backend and unified build system through build.zig.

This approach unlocks decades of C++ compiler optimization research while maintaining Pascal's elegant syntax and strong typing. You get the best of both worlds: readable, maintainable code that compiles to native binaries with performance rivaling hand-written C++.

📝

Object Pascal

Write clean, modern Pascal

⚙️

C++ Code

Transpile to optimized C++

🔨

Zig Compiler

Compile with Zig/LLVM

Native Binary

Lightning-fast executable

✨ Key Features

Everything you need for modern, high-performance Pascal development

🎯

Multi-Target Compilation

Generate native binaries for Windows, Linux, macOS, and more. Write once, deploy everywhere with true native performance.

Aggressive Optimization

Leverage decades of LLVM optimization research through Zig's powerful compilation pipeline for maximum performance.

🔧

Unified Build System

Simple, powerful builds with Zig's build.zig. No complex makefiles, no configuration hell—just clean, declarative builds.

🌐

Cross-Platform Excellence

Seamless cross-compilation without the pain. Target any platform from any platform with consistent results.

🔗

Natural C++ Interop

Generated C++ code interfaces seamlessly with existing C/C++ libraries. Tap into the vast C++ ecosystem effortlessly.

🎨

Clean Syntax

Maintain Pascal's legendary readability and strong typing while enjoying modern language features and zero-cost abstractions.

💻 See It In Action

Write elegant Pascal, get optimized C++

NitroPascal Source
$optimize "debug" program HelloWorld; extern <stdio.h> routine printf(format: ^char; ...): int; routine Greet(name: ^char); begin printf("Hello, %s!\n", name); end; begin Greet("NitroPascal"); ExitCode := 0; end.
Generated C++ Code
// Optimized C++ output #include <stdio.h> void Greet(const char* name) { printf("Hello, %s!\n", name); } int main() { Greet("NitroPascal"); return 0; }

💡 Why Choose NitroPascal?

The perfect blend of elegance and performance

🚀 Break Performance Limits

Achieve C-level performance without sacrificing Pascal's clarity and maintainability.

🔒 Memory Safe

Strong typing and compile-time checks prevent common bugs without garbage collection overhead.

📚 Leverage Existing Code

Seamlessly integrate with C/C++ libraries and leverage the vast ecosystem.

🛠️ Modern Tooling

Built on Zig's excellent build system for fast, reliable, cross-platform development.

🔧 Built With

Standing on the shoulders of giants

LLVM

The LLVM Compiler Infrastructure - modular and reusable compiler and toolchain technologies powering world-class optimization.

View on GitHub →
🔨

Zig

A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

View on GitHub →

Ready to Get Started?

Join the NitroPascal community and start building high-performance applications today

🚧 Currently in active development • Star the repo to stay updated!