REOX Programming Language
The modern, declarative UI framework language for NeolyxOS
Simpler than C++, Safer than C, AI-Native
Overview
REOX is a statically-typed, declarative programming language designed specifically for NeolyxOS. It combines the expressive power of modern UI composition (inspired by SwiftUI) with the predictable, system-level performance of C/C++.
Reox is built to be:
- Native: Directly integrates with NeolyxOS rendering primitives.
- Safe: Strong typing and memory safety features.
- Fast: Compiles to optimized native machine code (LLVM/C backend).
- AI-First: First-class support for AI model integration.
Why Reox?
| Feature |
Reox |
C++ |
Python |
Swift |
| UI Syntax |
Native |
Library |
Library |
Native |
| Performance |
System |
System |
Interpreted |
System |
| Async/Await |
Native |
C++20 |
Native |
Native |
| Simplicity |
High |
Low |
High |
High |
| AI Native |
Yes |
No |
Libraries |
CoreML |
| Target OS |
NeolyxOS |
Any |
Any |
macOS/iOS |
Key Features
- 🎨 Declarative UI: Build interfaces with a composable, intuitive syntax.
- 🔒 Strong Typing: Catch errors at compile-time with type inference.
- ⚡ Async/Await: Native asynchronous programming for non-blocking operations.
- 🚀 Zero Dependencies: Standard library includes everything you need.
- 🤖 AI Integration: Built-in keywords for defining AI assistants and contexts.
- 🌙 Dark Theme: Includes a custom VS Code theme optimized for Reox.
Code Examples
1. Hello World
fn main() {
print("Hello from NeolyxOS!");
}
2. Declarative UI
Build beautiful, native UIs with less code.
window Calculator {
title: "Calculator"
size: (400, 300)
@Bind result: string = "0"
view {
vstack(gap: 12) {
text(result)
.font_size(32)
.color(0xFFFFFF)
hstack(gap: 8) {
button("7").on_click(action { append("7") })
button("8").on_click(action { append("8") })
button("9").on_click(action { append("9") })
}
}
}
}
3. Async/Await
Non-blocking operations with native async support.
async fn fetch_user(id: int) -> User {
let data = await http_get("/api/users/{id}");
return parse_user(data);
}
async fn main() {
let user = await fetch_user(42);
print(user.name);
}
4. AI Integration
Reox treats AI as a first-class citizen.
ai assistant {
model: "neolyx-gpt"
async fn suggest_action(context: string) -> string {
return await ai.prompt("Given context: {context}, suggest next action");
}
}
Installation
Via VS Code Marketplace
Search for "REOX Programming Language" in the VS Code Extensions view (Ctrl+Shift+X) and verify the publisher is ketiveeai.
Or install directly: VS Marketplace
Via Open VSX (for VSCodium, Gitpod, etc.)
Available on Open VSX Registry for open-source VS Code alternatives.
Manual Installation
Download the .vsix release and run:
code --install-extension reox-language-1.0.4.vsix
Contributing
We welcome contributions to the Reox ecosystem! This extension is open source.
- Fork the repository on GitHub.
- Clone your fork locally.
- Create a feature branch (
git checkout -b feature/my-feature).
- Commit your changes.
- Push to the branch and submit a Pull Request.
Reporting Issues
Please report bugs and feature requests on our GitHub Issues page.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Built with ❤️ by KetiveeAI for NeolyxOS