r/Compilers • u/G_oni_vv • 3d ago
What if a programming language could intelligently manage its own memory and execution?
/r/AskProgrammers/comments/1y55vvw/what_if_a_programming_language_could/Similarly, imagine a graphics application where only one object changes. The runtime could identify which data actually needs updating instead of recalculating everything unnecessarily.
My goal isn't simply to create another garbage collector or claim that this will automatically outperform existing languages.
I'm exploring whether a programming language can make resource management more intelligent while keeping it automatic for the programmer.
I'd like to hear your thoughts:
Would combining adaptive memory management, predictive execution, and incremental processing make sense as part of a language runtime?
Or would you prefer these responsibilities to remain separate systems?
I'm particularly interested in the architectural trade-offs and potential problems with this approach.
2
u/Key_Detail15 3d ago edited 3d ago
Deleted my original post. The background context seems to be this thread of the OP's. So too vague to respond to meaningfully.
2
u/SwedishFindecanor 2d ago edited 2d ago
I think you'd need to describe your ideas in more concrete terms to better convey your thoughts in ways that other people will understand. First after that will you have a chance to get feedback for your idea.
One way to do that would be to present an example.
Finding smarter ways to manage memory, execution and dataflow is among the goals of all research in programming languages. If you want to discuss goals, then by all means express it that way.
1
u/recursion_is_love 3d ago
What is garbage and it's collector?
1
u/Discordbothost 22h ago
Incremental updates have a bookkeeping cost even when there's nothing worth reusing. I'd prototype just that piece with your graphics example: move one object, then move every object. Compare frame time and memory against a full rebuild in both cases. That gives you a baseline before adding prediction.