Thoughts on answering/fixing AI LLM-created garbage code?

… and massive scale data theft. Too many people gloss over that fact when praising “ai”.

2 Likes

Let me ask you this @mrkpl125. If “ai” is so great for learning, why do we have so many learners getting utterly stuck while using it, then seeking help from assembly-boomer-luddites who need a whole hour to write a function?

6 Likes

I learned how to code in GDScript as my first language, and relied on AI heavily in the beginning. Pattern recognition is a strong suit of mine, so I started seeing the logic and patterns. As I got more familiar with Godot and the code, I started writing things myself and only falling back to AI for troubleshooting and debugging. Honestly, AI helped me escape tutorial hell and got me to be somewhat competent with this language.

I can explain the function of every line of code in my remake of the old PS1 game Dragon Seeds. Still need models and artwork, but all systems are functioning as intended.

I learned a ton figuring out how to parse a csv table into a resource file.

4 Likes

You can tell them to stay away from AI editors so their work is more personalized.

2 Likes

Oh yes. Lets never forget that. They scraped the entire internet and stole it all.

And on that point, I have never understood why social networks are not held to the same standards as print publications. If a book publisher published porn or blatant lies etc they would be in court and fined and in jail in the blink of an eye. But if you are a digital publisher, thats all fine, its not your fault, poor facebook, facebook is the victim, it’s the users fault. Poor ex-twitter x, they are just giving freedom to racists and nazis to speak their mind. Well I believe that if they allow illegal stuff to be published on their networks, then they should be directly accountable, just like a newspaper or a magazine would. I bet they would clean up their acts overnight. And AI should too. If I can get AI to say something illegal or defamatory or create child pornography, they should be accountable for it.

We need just one country to start holding these platforms to the same standards as we do for everything else, tv, radio, newspapers etc. At first their reaction will be just to pull out of that country, but then if more countries followed suit, we could possible pull back power to where it should be, out of the hands or tech billionaires and back into the democratically elected governments.

And Spain is hinting at doing just that.

1 Like

Section 230

Basically in 1996, at the time the Internet was new, Internet companies said “If you hold us to this standard we will all go out of business.” Which, was true at the time. It’s not anymore, but the law has never been amended and tech companies point to the US law when they are in other countries and say, “If you don’t like this, we’ll just leave your country.”

There have been cases where Facebook did this to small dictatorships, and effectively killed any free speech outlet in those countries.

There’s a reason China has Chinese companies make all their apps, and they are all beholden to the government.

It’ll be interesting to see what happens with that then.

2 Likes

You have to love Wikipedia. That article was fascinating. Thank you for that link.

1 Like

How is if use binary???:grin:

section .data
    msg db 'Hello, World!', 0Ah
    len equ $ - msg

section .text
    global _start

The funny thing is, that’s not even assembly code. Not a single CPU instruction is shown here. It’s just some assembler directives. They just copied first few lines from some hello world example, probably not understanding what they represent. Someone who has a smidgen of clue about assembly would have at least put some MOVs and JMPs and ADCs in there when showing how oh so cryptic assembly is :smiley:

But CPU assembly is not that big of a deal to understand. If you really want to get your brain fried - take a look as some SPIR code.

4 Likes

I had to take Assembly class in college, and I loved it. I never used it much after that, but I really enjoyed using it. But it’s like a whole mindest you’ve gotta get into. I think the next time someone posts about how they want to optimize their Godot code before they write anything in Godot, I’m gonna recommend they go for Assembly. Or maybe that they just use the Rust implementation.

1 Like

Any serious coder should aim to learn some assembly. What’s the use, you ask. Certainly not to write complete programs as some here are trying to strawman it. Once you know your assembly, even cursory, the computers will become completely demystified for you. You’ll know exactly how they do their “magic” and what they are capable and not capable of. No altmans or musks will be able to sell you on some “intelligence” or “self driving” bullshit.

4 Likes

I was just thinking I’ve never gotten to pull out my knowledge of Big Endian vs Little Endian encoding on this forum. Or bit shifting.

1 Like

Lol I want to know what that is! Teach me your ways Endian master

1 Like

It’s the order in which bits are stored inside a byte. Internet protocols typically expect the most significant bit first (Big Endian), while modern processors expect the most significant bit last (Little Endian). So let’s say you want to encode a byte with the value 3. In big endian it would be:

1248...etc
||||||||
11000000

It little endian it would be:

etc 8421
||||||||
00000011

It makes no difference in higher level languages like GDSCript. It really only matters if you’re doing math with bit shifting. Bit shifting is where you move a bit over to multiply or divide it by 2 typically using little endian values.

4 Likes

I’m gonna mute this thread after I post this, but I wanted to let readers know that AI is actively destroying things, it’s not just a few “old heads disliking the new tools / the future”. It is genuinely damaging to more things than an average person just starting out with programming might realize. curl is no longer offering bug bounties. A massive deal, since this will essentially make the prospect of finding security vulnerabilities a lot less appealing to many people. This WILL make software more vulnerable, and it’s all because of AI bros generating fake/nonsense bug reports, hoping they might be “real” and get a payout, and in the process completely crippling moderation.

5 Likes

Next time you go game jamming, think of a game mechanic whose implementation would depend on excessive usage of bit shifting :smile:

I typically use bit shift when assigning values to enumerated bit flags.

2 Likes

My friends are losing their jobs to AI slop, you can’t say it all loud or often enough.
Cheers, in solidarity! :victory_hand:t5::oncoming_fist:t5::index_pointing_at_the_viewer:t5::victory_hand:t5:

3 Likes

Holy crap, I didn’t realize you could bit shift in GDScript. Nice.

2 Likes

So is Godot Big Endian or Little Endian ?

It is agnostic. So let’s say you have this value, which conveniently is 60 either way:

00111100

var my_value: int = 00111100
var shift_left_value = my_value << 2 # Becomes 11110000
var shift_right_value = my_value >> 2 # Becomes 00001111

What matters is who is reading them. On a modern 64-bit processor (most anything made in the last ~14 years) it’s going to be read as Little Endian. So shift_left_value is going to equal 240 and shift_right_value is going to equal 15.

1 Like