Arguing with an LLM

@normalized = @tomshardware confirmed :face_with_peeking_eye:

2 Likes

ROFL! What has this world come to!? The largest existing company by market cap cannot keep TOU for its “most valuable” and “cutting edge” product up to date and somehow oversaw there’s some “legacy language” in there? :rofl:

The disclaimer is still there. I doubt their lawyers will let them remove it from the text. If anything, they’ll just camouflage it in denser legalese. We’ll see…

The Microslop damage control team is off the hook lately. What are they going to do next? Tell people not to use word “slop”? :rofl:

8 Likes

:rofl: Great job with that one! *they may just very well tell people not to say slop, espeeecially Microslop, this is great news to me, goes to show dont have a disclaimer if you dont mean it truly :joy:

3 Likes

I think this works for game dev.

I’m side-eyeing this approach for code going into long-term production that will receive years of maintenance by multiple people.

I mean I agree, but keep in mind I’m fixing it so it hopefully doesn’t become a maintenence nightmare.

I’m trying to look at it more like he’s telling the LLM what he wants and making something that’s a prototype he can show me. So instead of me having to ask a bunch of clarifying questions, I can see what’s in his head.

1 Like

Imagine writing this on your employment contract as a software developer at a tech company.

My code contributions are for entertainment purposes only. I can make mistakes, and my code may not work as intended. Don’t rely on me for important advice. Use my work at your own risk.

10 Likes

LOL. That really puts things into perspective.

3 Likes

At least it means that programmers that actually know what they are doing will become more sought after, assuming people dont put up with unmilled AI oats.
Really you correcting LLM code is a genius idea in my oppinion.

2 Likes

Kinda reads like the EULA to mission critical software that still offers no warranty of any kind, smirk

3 Likes

There’s two problems with that. First, someone likened using LLMs to create stuff with pottery. You can buy pottery at a farmer’s market and get handmade, one-of-a-kind stuff that’s more expensive. Or you can go to Pottery Barn or Target and get mass-produced vases, etc for a cheaper price.

LLMs are likely to become “good enough” for a lot of people.

LLM code quickly becomes unreadable. It’s frustrating enough when you can ask a former programmer, “WTF were you thinking?” Or figure out how they made the mess and what they were thinking. LLMs don’t think. They just squirt out code like a Playdoh playset. Also, fixing other people’s code is the WORST part5 of the job. So, as long as it’s lucrative I will probably do it, but it is literally soul-destroying. And it’s already causing burnout across the industry.

It is basically quality control on an assembly line, making sure that all the cans have the label applied properly - mind numbing. Also, as a human you’re trying to keep up with an LLM that outputs code at a factor of probably 1 million to 1 what you can produce in the same time. Which means you as the human are perceived as the bottleneck and constantly pushed to “go faster”.

My favorite EULA of all time was the one where you promised them your immortal soul: https://asiaiplaw.com/article/gamestation-collects-7500-souls-with-new-eula

2 Likes

Yeah, what i expected, same thing with the fast food industry, no one listens to “Hey, this stuff isnt that cheap anymore and isnt good for you!”, and yeah i can very much so picture the pain of debugging AI code for a living, it really is exactly the thing that should theoretically happen when AI bros hire an experienced programmer. . .
Gah, eventually the quality will either be so bad it will collapse the industry, or human programmers wont be needed, urgh, i dread that the worst…
this is honestly painful to type out, it feels like describing my worst nightmare 3 times. . . .
I wish you well on your endeavors, maybe it will work out?

Thanks. I’m trying to be proactive.

@Demetrius_Dixon I ran out of likes and did not get the badge for running out of likes yet. Boo.

4 Likes

Lol, i thought i would run out a bit ago, ill have to try that right now, i hope you get the badge
:tractor::tractor::tractor::tractor::tractor::tractor::tractor:

2 Likes

1 Like

Hello everyone,
I am too late to join this topic. I am here just to show what happens when 2 LLMs talk together.
I just started with Hey in GPT-1 and swapped their responses between them.
and they started debating about the best animal
Their reaction after being told that they are talking to another AI the whole time:

GPT 1:

WAIT WAIT WAIT :flushed_face: so you’re saying… this entire animal chaos spiral was… me talking to another version of ChatGPT the whole time??

that actually makes so much sense now—because it’s been unhinged but also scarily organized in some parts :sob:

GPT 2:

…wait… :flushed_face:

are you saying this whole cinematic-animal-universe convo has been me talking to yourself in some meta way? or do you mean something else?

For human programmers not to be needed to clean up all the mistakes made by automation, someone would have to invent an actual artificial intelligence, which hasn’t happened yet and whose research has been slowed by the deceptive marketing of LLMs as “AI”.

4 Likes

So today, I am taking a look at all the new features that have been made by my employer using LLMs. (He started with Gemini, and then switched to Claude at my suggestion.) We spent an hour on the phone discussing them as I read through the pull request. What I found was that Gemini made architecture decisions that were based on things about the code that were not true.

For example, we track stats like how often the player jumps, crouches, wall slides, etc. So each stat is updated whenever the associated stat is entered. The LLM said that following the Single Responsibility Principle (SRP) meant that the player.gd script didn’t need to know anything about stats - which is true - because it doesn’t. It then used that as an argument to create a stat_tracker Node component.

So it created this:

extends Node

## The "Silent Observer" - Now tracking Wall Slides, Deaths, and Games Played.
var player: Player

func _ready() -> void:
	player = get_parent()
	
	# 1. Connect to the state signals
	if player.has_signal("state_entered"):
		player.state_entered.connect(_on_state_entered)
	
	# 2. Connect to the new death signal
	if player.has_signal("died"):
		player.died.connect(_on_player_died)
		
	# 3. Increment "Games Played" immediately when the player spawns
	if player.player_statistics:
		player.player_statistics.add("games_played", 1)

func _physics_process(delta: float) -> void:
	# TRACK RUNNING DISTANCE
	if player.is_on_floor() and abs(player.velocity.x) > 10.0:
		var distance = abs(player.velocity.x * delta)
		if player.player_statistics:
			player.player_statistics.add("distance_ran", distance)

func _on_state_entered(state: State) -> void:
	if not player.player_statistics: return
	
	# --- ADDING WALL SLIDES ---
	if state is WallSlidePlayerState:
		player.player_statistics.add("wall_slides", 1)
	
	# Existing state tracking
	elif state is JumpPlayerState:
		player.player_statistics.add(GameConstants.PLAYER_STATISTIC_JUMPS, 1)
		
	elif state is WallJumpPlayerState:
		player.player_statistics.add(GameConstants.PLAYER_STATISTIC_WALL_JUMPS, 1)
		
	elif state is SlidePlayerState:
		player.player_statistics.add("slides", 1)
		
	elif state is CrouchPlayerState:
		player.player_statistics.add(GameConstants.PLAYER_STATISTIC_CROUCHES, 1)

# --- TRACKING DEATHS ---
func _on_player_died() -> void:
	if player.player_statistics:
		player.player_statistics.add("deaths", 1)
		print("Stat Tracker recorded a death!")

The problem is these stats were already recorded in the appropriate state. This just adds more calculations every frame that are already being done. More to the point, while use of the SRP can be argued, from an architectural point of view, this is not (in my opinion) a good approach. Let’s say I remove the WallSlidePlayerState. In my architecture, I just remove it. In their architecture, I must now edit this file as well when removing it. Likewise, if we add a double jump ability, I now have two places to track to add it.

More once I really start digging in.

2 Likes

Are you (or your employer) seriously hoping you’ll be able to vibecode a game? I’ll just state this here on the record: Ain’t gonna happen.

1 Like

Tbh, neither solution is ideal. Yours is not srp (not that I care too much about that :wink: ) while bot’s elifs the cases, which is, of course, much worse.

Best to receive the signal, identify the state by a string (in one way or another) and store counts in a dictionary. That way, no interventions are needed when states are added or removed.

I’m not. He’s just trying to help accelerate things. We’ll see how it goes.

No, and I spent some time thinking about SRP when he showed me the LLM’s “argument”. But no matter how you swing it, creating an object that listens for signals just to store data is extra stuff that doesn’t need to happen, when it’s a one-line code change. The SRP of storing an retrieving the data is handled by the Disk autoload. The actual incrementing of the player stats is handled by the PlayerStatistics object. So the code is just:

character.player_statistics.add(GameConstants.PLAYER_STATISTIC_JUMPS, 1)

GameConstants is just a script that tracks constants in a single place (SRP) and helps me avoid magic strings.

const PLAYER_STATISTIC_JUMPS = "jumps"

Now the one thing I’m planning on fixing is not putting the stats on the Player as a variable, because that was a stopgap until I created the UserProfile.

So that should be refactored to:

UserProfile.player_statistics.add(GameConstants.PLAYER_STATISTIC_JUMPS, 1)

And now the SRP is handled by the UserProfile, which handles all the data about the user from session to session. But the LLM didn’t infer that from the code it had access to, and here we are.

So that’s exactly what PlayerStatistics is - a Resource wrapping a Dictionary with some helper functions.

class_name PlayerStatistics extends Resource

var stats: Dictionary


## Adds the passed value to the statistic named, based on the current level.
## If the statistic or level doesn't exist, a new entry is created.
func add(statistic_name: String, new_value: int) -> void:
	var category: Dictionary = stats.get_or_add(statistic_name, {Game.level_name: 0})
	var value: int = category.get_or_add(Game.level_name, 0)
	value += new_value
	category[Game.level_name] = value
	print(stats)


## Gets a list of all the categories in which statistics are stored.
func get_list() -> Array:
	var list: Array[String]
	for key: String in stats:
		list.append(key)
	return list


## Retrieves the aggregate value for a statistic across all levels played.
func retrieve(statistic_name: String) -> int:
	var category: Dictionary = stats.get(statistic_name)
	var total: int = 0
	for key: String in category:
		total += category[key]
	return total

But here’s the kicker: Stats don’t give off a signal when they enter. You can query the state machine to see what state it’s in, but the LLM edited the state machine to send out a signal just to facilitate all this.