Darwin

November 20, 2025 · View on GitHub

Darwin

Lua Logo GitHub Release License Status Platforms


⚠️ Important Notice

This is alpha software! Use at your own risk. While we're working hard to make it stable, bugs are expected. Perfect for learning and prototyping! 🧪


Overview

Darwin is a powerful Lua compiler that transforms your Lua scripts into standalone executables. It provides a streamlined interface for compilation, eliminating the complexity of traditional build systems:

  1. Write your Lua code
  2. Compile to executable
  3. Deploy anywhere

This compiler is designed for developers who need to:

  • Create standalone applications from Lua scripts
  • Embed files and resources into executables
  • Mix Lua with native C code seamlessly
  • Deploy applications without dependencies

Key Features

  • Multi-platform compilation - Create executables for Windows, Linux, and more
  • File embedding - Bundle resources directly into your executable
  • C/C++ integration - Mix Lua with native code
  • Zero dependencies - Your compiled programs run anywhere
  • Lua amalgamation - Single file distribution
  • SO library generation - Create shared libraries from Lua code

Linux Installation

curl -L https://github.com/OUIsolutions/Darwin/releases/download/0.20.0/darwin_linux_bin.out -o darwin.out && chmod +x darwin.out &&   mv darwin.out /usr/local/bin/darwin 

Mac-Os Instalation

curl -L https://github.com/OUIsolutions/Darwin/releases/download/0.20.0/darwin.c -o darwin.c && gcc darwin.c -o darwin.out && sudo mv darwin.out /usr/local/bin/darwin && rm darwin.c 

AI/LLM Integration

Want to learn how to use Darwin with AI assistance? Download the ai_doc.md file and paste its contents to your preferred AI assistant (ChatGPT, Claude, Copilot, etc.) for interactive learning and code examples.


Releases

FileWhat is
darwin.cA Amalgamation Containing all the Library
darwin_linux_bin.outReady-to-use Linux binary
darwini32.exeReady-to-use Windows 32-bit executable
darwin.debDebian package for easy installation
darwin.rpmRPM package for easy installation

Public API

Click here Public API to see the full list of public API functions.

Usage Tutorials

TutorialDescription
API UsageWorking with Darwin's API
Build GuideBuilding Darwin from source
CLI UsageCommand line interface guide
DependenciesUnderstanding project dependencies

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.