News for hackers. Stuff that matters.
Re:The art of programming and why I won't use LLM by grey-area on Sunday August 25, 2024 @02:33PM (#41349912)
Compilers are deterministic.

LLMs are not.

Re:The art of programming and why I won't use LLM by yodon on Sunday August 25, 2024 @02:38PM (#41349965)
>Compilers are deterministic

They seem that way, until you're tasked with getting a repeatable, idempotent build out of a non-trivial build system.

Re:The art of programming and why I won't use LLM by marcinzm on Sunday August 25, 2024 @02:39PM (#41349980)
LLMs are deterministic if you force a seed or disable sampling. They however do not guarantee that small input changes will cause small output changes.
Re:The art of programming and why I won't use LLM by Jensson on Sunday August 25, 2024 @04:01PM (#41350780)
> LLMs are deterministic if you force a seed or disable sampling

Not with todays GPU's, you would need to run it locally with special GPU settings or run it on your CPU to ensure it is deterministic.

Re:The art of programming and why I won't use LLM by DougN7 on Sunday August 25, 2024 @06:01PM (#41351862)
So? Compilers compile and LLMs do not. Compilers use linkers and LLMs do not. Arbitrary distinctions don’t means “this time it’s different”.
Re:The art of programming and why I won't use LLM by grey-area on Thursday September 05, 2024 @09:43AM (#41456555)
So as the OP said, all the parts are deterministic in this stack. Their behavior is fixed for a given input, and all the parts are interpretable, readable, verifiable and observable.

This is entirely different from LLMs which are opaque even to their designers, and have unpredictable flaws and hallucinations, they are probability machines based on what data they have been exposed to, which means they are not a reliable way to generate programs.

Maybe one day we'll fix this, but the current generation is not very useful for programming because of this.