r/ProgrammingLanguages • u/Potato871 • Sep 01 '26
Discussion What is the interesting part of a programming language to you?
I've been working on some "documentation" for my own language (see here), which got me thinking: do we all see languages the same way? I personally look for unification of concepts and extensibility in a design, yet I've seen those who care deeply about functional purity or clean decompositions.
What do you look for in a programming language? And why?
33
Upvotes
View all comments
Show parent comment
1
u/Potato871 Sep 02 '26 edited Sep 02 '26
It's a bit easier to attack the problem (obviously the problem is still very hard) with how my compiler is constructed, I have more of an annotated graph of nodes with shared values, so I can put quals on a value and it propagates that fact around.
For instance, we could say each length_relation_qual holds a numerical index and considers the original value it is derived from to be its parent rather than what it holds.
Each math operator, if RHS is a literal or constant, just becomes enter the execution stage and perform the operation that operator would normally do but substitute the left argument for the qual's value.
Then at any site where the length_relation_qual fires it already holds the record of what operations have been applied to the value it repersents.
Then I can do the same walking I do during evaluation stage optimizations for control flows and such to further propagate this information along constant branches and whatnot. Then the index in a loop falls out on its own.