The Most Advanced Lua Compiler - Transform your Lua code into powerful executables
Darwin is a powerful Lua compiler that transforms your Lua scripts into:
Output Type | Description | Perfect for |
---|---|---|
๐ง Linux Executable | Standalone binary for Linux | Servers, CLI tools |
๐ช Windows Executable | Standalone .exe for Windows | Desktop apps, utilities |
โ๏ธ C/C++ Code | Generated C source code | Integration, performance |
๐ SO Library | Shared object libraries | Modular applications |
๐ Lua Amalgamation | Single Lua file | Distribution, embedding |
- ๐ Embed Files & Folders - Bundle resources directly into your executable
- ๐ง C/C++ Integration - Mix Lua with native C code seamlessly
- โก Compile-time Magic - Manipulate code during compilation
- ๐จ Zero Dependencies - Your compiled programs run anywhere
- ๐ Lightning Fast - Optimized compilation and execution
-- hello.lua
print("Hello from Darwin! ๐งฌ")
print("This is now a compiled executable!")
darwin hello.lua -o hello.out
./hello.out
That's it! You've just created your first compiled Lua program! ๐
curl -L https://github.com/OUIsolutions/Darwin/releases/download/0.4.0/darwin.out -o darwin.out && sudo chmod +x darwin.out && sudo mv darwin.out /usr/bin/darwin
Download darwin.exe and add it to your PATH
Platform | File | Size | Description |
---|---|---|---|
๐ง Linux | darwin.out | ~2MB | Ready-to-use Linux binary |
๐ช Windows | darwin.exe | ~2MB | Ready-to-use Windows executable |
๐ Source | darwin.c | ~500KB | C amalgamation for compilation |
Guide | Difficulty | Description |
---|---|---|
๐ Quick Start Examples | Beginner | Get started in 30 seconds |
๐ฅ๏ธ Command Line Usage | Beginner | All CLI commands explained |
๐ง API Usage | Intermediate | Advanced project creation |
๐๏ธ Build Guide | Advanced | Build from source |
๐ Dependencies | Reference | License information |
๐ ๏ธ Command Line Tools
Perfect for creating system utilities and CLI applications:
# Create a file manager
darwin file_manager.lua -o fm.out
# Create a text processor
darwin text_processor.lua -o process.out
๐ Web Applications
Build web servers and APIs:
# Simple web server
darwin web_server.lua -o server.out
# REST API
darwin api.lua -o api.out
๐ฎ Games & Interactive Apps
Create games and interactive applications:
# Simple game
darwin game.lua -o game.out
# Interactive quiz
darwin quiz.lua -o quiz.out
โ๏ธ System Integration
Integrate with existing C/C++ projects:
# Generate C library
darwin my_logic.lua -o liblogic.so
# Create C header
darwin logic.lua -output-type c-header
- ๐ Found a bug? Open an issue
- ๐ก Have an idea? Start a discussion
- ๐ Need help? Check our documentation
- ๐ Like Darwin? Give us a star on GitHub!
Darwin isn't just another compiler - it's a complete ecosystem for Lua development:
Feature | Traditional Lua | Darwin |
---|---|---|
Distribution | Script files | Single executable |
Dependencies | External libs | Everything embedded |
Performance | Interpreted | Compiled optimization |
Integration | Lua only | Lua + C seamlessly |
Deployment | Complex setup | Drop and run |
Made with โค๏ธ by the OUI Solutions team
โญ Star us on GitHub โข ๐ Read the docs โข ๐ Try Darwin now