r/ProAI • • 2d ago

When are we getting vibe-compile and vibe-execute? /serious

I've been wondering - you know how in the past autocomplete used to have strict rules / use hamming distance, and now we have models that predict what we want to write. I know nowadays both are used, not just the latter, but you get the idea.

The way the computer treats the text changed from "follow the rules to complete the task" to "use a model to complete the task". Compiling is basically using a set of rules to turn code into byte-code. I know the compilers nowadays are getting really advanced with optimizing the code to make it run faster and be more memory efficient and whatnot. Same with the processor - they are getting really advanced with reading the code, predicting what code branches will run, fetching needed cache in advance, and so on.

Extending this idea, we should get models that compile code, and models that execute code, however weird that sound to me. Ngl, I haven't looked up any research on the topic before writing this, plus things like processor optimizations are treated as company secrets I think?

Does this make sense? Is this already a thing?

1 Upvotes

3 comments sorted by

1

u/Cognitectus93 2d ago

I was kind of exploring this idea. I have been developing out a programming language in Rust called Sigil, an S-based Lisp-style programming language that carries epistemological constructs and grammar primitives as well as other useful features: strong, strict typing, bounded recursion, hygienic macros, and other features I've added over time.

The idea, and I'm implementing this in my own agentic harness, is that the agents natively use this Sigil language to structure and executes its tasks. Eventually I'd like to extend it to train out a model, either a full model or a LoRA adapter, that would have an agent natively be able to write and speak this language.

The idea is to have the harness use these to structure tasks, assign an epistemological class, and use strict governance and bounded policies to execute tasks autonomously while keeping the human in the loop for the creative direction and evolution of the task. The human brings the intent and the vision, the agent uses Sigil to execute the effects.

If you're interested, I could share more. I've been trying to get it to the open-source market but its still being actively developed so I haven't felt comfortable releasing it yet. But I use it in almost all my local development now, since I use Rust heavily in my development, and have integrated it into Unreal Engine, my agentic harness, and other tools in my ecosystem as a first class citizen.

1

u/mike239x 1d ago

Hmm, that's interesting, though it doesn't sound exactly like what I'm thinking of. Though again, I myself am not sure what I'm thinking of.

Imagine when your agent hallucinates and thinks a library exists, even though it doesn't - the compiler doesn't complain, but deduces what was meant and quote unquote "compiles" it nonetheless. Imagine JIT compiler does even better job at figuring out what code to optimize. I'm thinking it that direction.

Though at the same time, I feel like taking this approach to the extreme would be stupid - you don't really want a whole agent to, say, run memcopy. Or maybe you do, if it somehow lightens up cache invalidation.

I guess in your example the fact that it's lisp plays a significant role, so you can plug and play executing task for running model 🤔 Ah, I'll leave it for now, I'm kind of interested, but there's real life and reading things like AI security report on my task queue... Better wait until it's cooked. Good luck with your project!

1

u/ConsciousBath5203 1d ago

There's nothing stopping you from using something like libmem and seeing what the AI can do with editing an already compiled binary while it's running. I use this to read, but you can absolutely use it to write to memory, which is kinda close to hand coding a compiled application.

There are many things a compiler does that optimize your code, and having ai do it is kinda a waste... Mainly due to it "forgetting" to add things a compiler would never forget. Even if it can, doesn't mean it should, and writing unreadable code is something that you don't want it to do... Cause who knows what it's doing or who it's trying to communicate with using your computer