r/ProgrammingLanguages • u/LasRKiD • Jun 02 '26
Aergia, my little project
Aergia is a programming language I made since I really liked minimal, esolang-style syntax, where each command can be a single character rather than a keyword. However, I also designed Aergia with the intent of making it readable, which even now I'm not very sure as to how usable it is.
Source code: https://github.com/las-r/aergia
Documentation: https://las-r.github.io/aergia/
Online REPL: https://las-r.github.io/aergia/repl/
Here's a little snippet:
{factorial :n:
(<= n 1
? 1
)
? *n @factorial:-n 1:
}
> "Enter n for n!:"
> @factorial:.:
I just need feedback, and maybe suggestions. Does the syntax feel like something you could get used to, or is it kind of a write-only language? If there was one feature or improvement that would make Aergia more usable or appealing to you, what would it be? Any other general thoughts on the implementation, documentation, or design choices?
8
u/LasRKiD Jun 02 '26
Per AutoModerator's request I hereby confirm that this project did not use an LLM as part of the development process.
5
u/Forward_Paint_2045 Jun 03 '26 edited Jun 03 '26
Interesting looking language. It’s hard to give great feedback without knowing what your goals are, but some thoughts:
Your {function} syntax is tantalizingly close to K’s lambda syntax, aka “dfns” in J & APL:
factorial: { $[x>1; x*factorial[x-1]; 1] }
7
u/Aeolem Jun 03 '26
This feels like Lisp with extra steps.
5
u/ChiveSalad Jun 03 '26
The online repl is a nice touch. The language is very forthy!
2
u/benjamin-crowell Jun 03 '26
Is the name a reference to lazy evaluation or something?