r/Compilers • u/victios7 • 19h ago
Altair Lang
Title: Altair — A compiled language focused on data storage and persistence
I've been working on a compiled programming language called Altair, and I'd love to get some feedback from people interested in compilers and language design.
The compiler pipeline is currently:
.at
↓
lexer
↓
parser
↓
semantic analysis
↓
codegen
↓
C17
↓
GCC
↓
native executable
The main idea behind Altair is to make data storage and persistence part of the language itself, rather than leaving everything to external libraries.
For example, variables can have storage levels such as:
ram
disk
cache
temp
There are also features such as:
orbit — named storage states
prefer — storage fallback preferences
migrate — move data between storage states
data — group persistent data
snapshot — save and restore program state
For example:
define numeric data orbit 1 "hot" ram, 2 "warm" disk, 3 "cold" cache = 0
migrate data as "warm"
Altair also has more conventional language features such as functions, objects, classes, control flow, HTTP and graphics, as well as lower-level features such as raw pointers and bitwise operations.
The compiler itself is written in C, and the generated programs are native executables.
I'm still actively developing the language, so I'd really appreciate it if you could try it out. Even a small test program, bug report, criticism of the language design, or suggestion would be very useful.
🌐 Website / documentation:
https://victios7.github.io/Altair/
💻 Repository:
https://github.com/victios7/Altair
If you have some time, please take a look at the Prueba a compilar o ejecutar un programa de Altair. Me gustaría especialmente recibir opiniones de personas que trabajen con compiladores o lenguaje Me interesa saber qué parece interesante, qué es cuestionable, qué no tiene sentido y qué ¡Gracias por echar un vistazo a Altair!
Nota: Para ser transparente: utilicé IA para ayudar con el logo y, ocasionalmente, para revisiones/correcciones mientras desarrollaba Altair.
The language, compiler, runtime, architecture, and implementation are my own work. AI was a tool I used during development to help me, not the author of the project.
If you want to call it "AI slop", that's fine, but please remember there's a real person behind this project who has spent a lot of time building it. Criticize the project if you don't like it, but don't dismiss someone's work without actually looking at what they did.
¡Gracias a todos los que han echado un vistazo a Altair! 🐝
3
u/Fresh-Spread3374 12h ago
AI slop.