LuaC โ Lua/C Compiler Android App

LuaC โ Lua/C Compiler Android App
**LuaC** is an innovative Android application designed for mobile developers, learners, and hobbyists. It provides a convenient way to compile and execute **Lua** and **C code** directly from your smartphone, powered by a robust backend.
โจ Core Features & Developer Experience
Remote Compilation & Execution
Compile and run Lua and C code securely on a powerful cloud-based backend, delivering results back to your device.
Syntax-Highlighted Editor
Enjoy a modern code editor with built-in syntax highlighting for Lua and C, enhancing readability and coding speed.
Real-time Output & Debugging
Receive instant compilation output and error streams to quickly identify and debug issues in your code.
Expandable Architecture
Designed with a modular architecture, allowing for easy integration of additional scripting languages in the future.
-- Lua Example: Hello World
print("Hello from Lua!")
/* C Example: Simple Addition */
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
printf("Sum: %d\n", a + b);
return 0;
}
print("Hello from Lua!")
/* C Example: Simple Addition */
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
printf("Sum: %d\n", a + b);
return 0;
}
๐ Technical Deep Dive
Frontend (Android)
Kotlin
Jetpack Compose
Material Design 3
Optimized for Android SDK 35
Backend (Cloud)
Express.js (Node.js)
LuaJIT (for Lua execution)
Docker (containerization)
Railway (hosting)
Communication
Retrofit (HTTP client)
Gson (JSON parsing)
RESTful API
Key Implementations
Syntax highlighting logic
Error stream parsing
Modular architecture
๐ฏ Target Audience & Benefits
- Learners: Ideal for students to practice coding concepts in Lua and C on their mobile devices.
- Mobile Coders: Offers a quick and convenient way to test small code snippets without needing a full development environment.
- Hobbyists: Perfect for experimenting with scripting languages on the go, fostering creativity and rapid prototyping.
- Efficient Execution: Leverages **LuaJIT** within an **Alpine Linux Docker container** for extremely fast and lightweight code execution.
- Modern UX: Adheres strictly to Material3 Design Guidelines, providing a fluid and intuitive user experience across a wide range of Android devices.