LLMs aren't faster for coding - here's some results

Ik ik, AI topics are terrible and all of that but today i come with some data for people who wonder about LLMs - i used QWEN3:14B and 2 helper files giving it syntax rules

My goal was to make simple script where i won’t use much godot-specific stuff to see if coding is good for qwen model, it will move node2D if sum of array’s 1 values is greater than array’s 2

This is the first version of code it gave

extends Node2D

var array1: Variant;
var array2: Variant;

func _ready():
	array1 = [1, 2, 3];
	array2 = [4, 5, 6];

func _process(delta: float):
	var sum1: float;
	var sum2: float;
	sum1 = 0;
	sum2 = 0;
	
	for i in array1:
		sum1 += i;
	
	for i in array2:
		sum2 += i;
	
	if sum1 > sum2:
		translation += Vector2(1, 0) * delta;

The code was working but it had strange ways of working and also qwen assumed it requires process, probably due to how common process is used

This is the final code without any hand-edition

extends Node2D

var array1: Array = [20, 30, 40];
var array2: Array = [25, 35, 45];
var sum1: float = 0.0;
var sum2: float = 0.0;

func _ready():
	sum1 = 0.0;
	sum2 = 0.0;
	
	for i in array1:
		sum1 += i;
	
	for i in array2:
		sum2 += i;
	
	if (sum1 > sum2):
		position.x += 100;

here are the prompts:


^ this is the first one

^ this is the second

it’s important to add that second’s time should be like 2 minutes because i edited it and added more precise instructions as you can see

Results ig :\
again ik that this topic is very annoying to talk about, and also i do this because i wanted to experiment with some post formatting, still these are results:

  • generating ~90% correct code requires about 3x more time than writing it by hand
  • you need to know how code will work in your head, any vague description will make code even more inaccurate
  • even formatting text with instructions can take a while and ton of editing so use it only for large files if you’ll ever have to

Some notes
I expected worse results, this experiment is also biased because i use older local model and not some newest paid claude ai but still i believe it will give similar results on ones people use, as long as you want accurate code hand-coding is way better, unless you can’t type on keyboard fast…

1 Like

This is what has been the general verdict by experienced programmers in the field over the last few years, the work around making sure the output is good, tweaking the prompt, and cleaning it up takes more time than it “saves”

2 Likes

making this small experiment myself shows to me that it is true, although i still think it is possible to use maybe heavier LLM with way better PC to build code structure, but there are more cons than pros, until some breakthrough tech spring up, it’s best text formatting tool ever, but not coding one.

This would get even worse if (or when) LLM output is confirmed to be liable for copyright infringement and patent violations, i.e. when prompters will have to not only verify the quality but ensure it isn’t stolen, something you don’t have to do when you just generate the code with your brain (this is assuming that the LLMs can survive such laws in the first place, the process of scarping data to build them on would become a completely different game resource wise and they’d have far less data to use, so it might become completely unprofitable to do so)

2 Likes

Please re-read my old thread about accidentally merging good code from a good dev that used LLM

In the hands of a good programmer, super well versed in test driven development, the latest claude code can brute force it’s way to valid code because the test “harness” was extremely well written.

But the brute forcing (sorry for shouting) is destroying our planet .. needlessly. Because if this dev can write such good tests then he can also write the code himself.

1 Like

really you don’t have to take planet into matter to see that any LLM is the problem i call “minecraft progresion is bad” type of problem where people who could use LLM to write code because they can’t won’t ever use it effectively because they don’t have knowledge, and people who can somewhat use LLM as a helper don’t have to use it because it’s way slower

If you think about it more what average person who vibe codes think:

  • LLM will save time for learning coding
  • LLM is magic tool to make games super fast

And what LLM needs to be good:

  • Specific instruction writing skills
  • System design skills
  • Knowledge of syntax and code to test if it works and if there aren’t any useless methods used

On the other hand we have advanced programmers who think LLM will speed up their work as they do with non-coders, so they spend their time writing prompts in such way it gives accurate results while not seeing writing code would be faster and that code wasn’t their problem at all!

It’s even interesting why people always search magic all-in-one solution when usually there is just requirement for more than one solution to do something good, convienience ig

Fine, not planet. If that does not feel like a valid point to you.

Inefficient code wastes energy=money
Inefficient code wastes your time=money
Inefficient code breaks down your hardware faster=money

Brute forcing a solution with the energy that this takes is a giant waste of money.

The programmer himself would have just to be fed the same calories everybody else eats without wasting all these resources=money

If I translate waste to terms of money is it then okay to take in consideration?

even money isn’t that big of a deal, the saddest part is that it makes you believe you’re better while you’re destroying your work

It’s like figthing hornets with flamethrower - possible, yes
but do you really need this giant machine to code - nope…

2 Likes

Fag-packet calculations produce a gaming population, world-wide, of close to four billion. Supposing only half to be active in any twenty-four hour period, that’s two billion. Rough estimate of power consumption of a mid-range gaming PC (or Mac, of course…) : two kW per day. Resulting in an estimated four billion watts of power consumed by gamers, every day.
This is not an accurate measure of electricity ‘wasted’ (it could be a bit more, or a bit less…), but may serve to get into proportion some of the claims of wasted energy due to AI data centres. This is not a defence of AI, either; just a crude yardstick to show that if AI is considered a ‘waste’ of the Planets resources, gaming has to bear some part in that same ‘wastage’. None of this includes other IT power consumption, such as net servers, commercial offices etc; only gaming power usage.
Just sayin’. Chum

2 Likes

I was trying to pivot to a money argument :joy:, but actually I was not making a planet argument either, per sé.

I was making an argument about LLM being slower. If the stuff that these big machines do were to happen on any sort of normal infrastructure it would, due to its inefficiencies, be very slow. This is because of this back propagation is necessary to mitigate its many mistakes… If it then gets an automated prompt back from you that says: “neh, you failed this test again” it will just go another round with you thinking “boy this is fast” while in fact your query had to be distributed across who the hell knows how many subprocesses that had to back propagate… It’s slow.

Also: the games being played make money, LLMs don’t.

Problem is that electricity can’t be stored easily and you have instant grid, also energy source matters for enviroment, if you used electricity from a coal powered powerplant but you used it sparsely it would be worse than if it was from wind turbine, so we can’t just say electricity is some material we can use when we want and store when we want

I think we should use more local arguments like time, buisness resources and not things that have ton of randomness in them, by yourself you might not be able to save planet or get milion dolars by just selling games, but you surely can control if you prefer to fight with a code generator or think yourself and have problem solved

Really we don’t even have to argue about those big stuff, AI is viral multi-tool that also wasn’t designed as multi-tool and most devs who use it would turn out slighty better at most, nothing game changing
It is interesting if Ai slop would cause some rebounce effect tho, rebounce effects usually are sudden and can shift industry from bad to good or from good to bad fairly quickly, time will show

It did detect a lot of urgent vulnerabilities in the core of very old software: openjdk, kernel, php, you name it. These have been patched up asap.

That is so far the only positive outcome I can see.

The flooded markets with low effort slop is making people think about new ways to value art and such. That could be a positive outcome.

I’m listening to a local political podcast about the main debate in our government: net congestion - people can’t start a business anymore because we’re all out of electrical supply and the wires can’t handle it. How can this be? The Netherlands have one of the most modern infrastructures in the world? Where did all the power go?

Once we realize we do not need this tech we will have thought of great ways to consume less power which will free it back up.. that may be a good local outcome?