r/ProgrammingLanguages • u/jimbobmcgoo • Jul 23 '26
Will we see another fundamental programming language feature as revolutionary as the borrow checker?
That is I am mainly curious about compile time features that you design a whole language around rather than optimisations/features that could be applied to most languages. I am mainly inquiring about things that could offer additional robust safety/performance guarantees at compile time rather than runtime. Ideally not things that just offer similar effects to the borrow checker with less restrictive tradeoffs
61
Upvotes
View all comments
Show parent comment
2
u/-theChris Jul 23 '26
Not really. In my language, I am defining
effectas a composite of termination and capability.Terminations are one of pure, divergent, unknown (in case of FFI).
Capabilities are one of pure (total functions a la Koka), mutating,
cap(my language's special type), opaque (custom ASM blocks or FFI).capis simplified through std::lib nominals like IO. Read, IO.Write etc. Users can compose their own caps too.The language exposes a policy engine where combinations of caps + terms can be allowed or disallowed at function, module, program levels.