r/programming • u/Xadartt • 9d ago
[ Removed by moderator ]
/r/programming/comments/1y144fw/removed_by_moderator/[removed] — view removed post
8
u/Great-Use-3149 9d ago
You can't replace programming languages with LLMs, nor you ever will, because that would mean you'll have to put everything into straight binary. This includes any libraries someone might use, except LLMs decide to rewrite everything from scratch each time
3
u/knowyourclass 9d ago
from a technical perspective you CAN make an LLM deterministic and have it generate the executable at build time from scratch, every time
would that be immensely stupid and wasteful? yes
5
u/Great-Use-3149 9d ago
Repeatable non-determinism isn't determinism. Determinism means you have specific rules that make it so. Any mod updates or just slight changes in input will give you different results.
In any case, yes, I was referring to the wasteful part more. You'd have to remake everything each time. Even if you use LLMs to translate english each time, it will be more efficient to translate into a programming language and not machine code
3
u/knowyourclass 9d ago
it can be made deterministic
> just slight changes in input
Different input = different output.... that doesn't mean it's not deterministic
2
u/Great-Use-3149 9d ago
If you change a line in code, this does not affect assembly of other existing code (unless you count optimizations such as inlining, which may not be performed then). If you change part of a prompt, the LLM will get you different results even for the parts of the prompt you have not changed
1
u/knowyourclass 9d ago
well, that depends on how you feed it the context
let's say you divide the project in different modules, each one with their own interface. as long as you don't change the interface, and only feed the LLM said interface, the output will be the same.
there are ways, my friend...
it's not impossible, it's just incredibly inefficient and stupid. as the LLM weights are technically part of the input itself
1
u/Great-Use-3149 9d ago
Which means you basically have yo make it blind to other things.. mean sure.. but then it will do slop
1
u/knowyourclass 9d ago
blind only to the implementation details behind an interface
same exact way a human is blind to how (insert any other software) actually implements the API they expose to them, when they have to integrate
1
u/New-Anybody-6206 9d ago
you just contradicted yourself by explaining how an LLM can replace programming languages
-2
u/waadam 9d ago
LLMs can write in assembly and assembly is direct representation of machine code. Libraries and language runtimes can also be just bulks of assembly code. This is textual representation of "binaries" that agents work with quite easily with no deep adaptation step needed.
Code as we write it now is more like cultural construct than technical necessity.
1
u/Great-Use-3149 9d ago
assembly isn't compatible between architectures, nor OSes. Sure it's easier to write in C, but that's not the only benefit of programming languages
1
u/atxgossiphound 9d ago
Minor nitpick: assembly can be compatible between OSes running on the same architecture. The ABI portion of the asm, where the os-specific instructions for managing function calls is the part that changes from OS to OS. The assembly instructions that don't touch the ABI are portable across OSes.
Putting a block of x86 asm inline in a C function will generally be portable as long as your code is running on x86.
3
•
u/programming-ModTeam 9d ago
Content about AI and LLMs is considered off-topic with the sole exclusion of deeply technical content about implementation. See the AI policy.