Тёмный

Chat GPT4: How good is it really? 

Kaze Emanuar
Подписаться 269 тыс.
Просмотров 37 тыс.
50% 1

This videos thumbnail was designed by ChatGPT as well.
Patreon: / kazestuff
🎥 / kazesm64
🐦 / kazeemanuar
MERCH: kazemerch.mysp...

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 265   
@abandoned_green
@abandoned_green Год назад
Truly the correct usage for AI, developing for Mario 64
@gamesthatiplay9083
@gamesthatiplay9083 Год назад
Apocalypse via leaping endo-skeletons hopping on people.
@alext3811
@alext3811 Год назад
Welcome to Mario Code.... Wait, wrong game.
@LauWo
@LauWo Год назад
​​@@gamesthatiplay9083 That is actually the best comment. Screw this... Abondoned Green. So stupid.
@alec_almartson
@alec_almartson Год назад
👍🏻
@GeniyYineg2000_1337
@GeniyYineg2000_1337 Год назад
@@gamesthatiplay9083 endoskeletons bljing on people the true nightmare
@Isaac________
@Isaac________ Год назад
Rather than using GPT-4 to micro-optimize these already hyper-optimized functions that get called hundreds of times per frame, have you tried getting it to optimize at a larger scope? E.g., providing suggestions for some bigger frame main loops, or how data in RAM is structured (just random ideas)? It will be a lot harder to form good prompts, but the potential improvements are also much bigger.
@alec_almartson
@alec_almartson Год назад
This is a good suggestion. 👍🏻Because you'd asking ChatGPT to do a diagnostic about the Overall Performance of the game, and provide you with Tips about the most important issues first. Then, after profiling, you could ask ChatGPT again, module by module, issue by issue: What's wrong, and how to improve it?
@mirek190
@mirek190 Год назад
gpt4 is able to handle up to 25.000 words ... so you could just put the whole file and check is will be able to optimize better as the whole ....
@orangy57
@orangy57 Год назад
yeah idk why he expects chatGPT to pick up on these specific hardware quirks to optimize one function at a time, lots of stuff that he does to optimize for N64 hardware makes things run slower on regular hardware because of the differences in RAMBUS speed and all that. Even in the last video about this he says something like, "well this would be better but not for the N64's hardware because of XYZ," like computers are good but chat GPT would have to have some absolute magic under the hood to figure that out on its own without just reading off of forum pages. It would be cool to see if chatgpt can look at the entire data structure from a different angle tho, maybe there's something way outside of the box that he could feed it
@JD-mz1rl
@JD-mz1rl Год назад
​@@alec_almartson the output would be shit
@angeldude101
@angeldude101 Год назад
`restrict` is a great feature and it being so uncommon is the biggest reason why Rust code can sometimes be faster than C. Rust has extremely strict aliasing checks and it uses them to insert `restrict` pretty much everywhere in the code, letting the compiler know that the memory locations won't change unexpectedly and saving memory loads. It can cause undefined behavior though if the parameters alias anyways, so you have to be careful without an automated alias checker.
@weddieddy
@weddieddy Год назад
ChatGPT doesn't remember things beyond a certain limit. I had it helping me to come up with ideas for a story. It was really good with remembering bits about the story until it wasn't. I once also asked it to help with writing a report using other reports as a sample. I told it, "Do not write the report without me asking for it." "Okay cool!" After several prompts, it started writing the report without me asking. It still does take a lot of the bulk work out of things.
@ZintomV1
@ZintomV1 Год назад
To stop it forgetting bits, you can edit a message to the bot with a new query and it will "erase" all the responses after that query and begin writing a new response. You could put all your requirements in at the start, then just keep editing your second message to the bot with new functions to optimize and it would not forget your requirements.
@MrBlaygor
@MrBlaygor Год назад
Mate I could watch videos like this for hours! Highly entertaining
@Piggieyt75
@Piggieyt75 Год назад
I wonder if an AI like this could help decompile and/or optimize other SM64 romhacks or other games. Would love to see fully optimized versions of Last Impact and SM64 Land running on hardware.
@BackForwardPunch
@BackForwardPunch Год назад
Would be interesting to have it look at the full codebase and see maybe if the main structure could be optimized?
@NovusDundus
@NovusDundus Год назад
I'm a Game Designer and this is pretty close to how I've been using it too. I'll give it detailed messages about the intent and work with it with the code it creates to refine and change it as I go The message round limits and memory retention are a pain though. Wish there was a way to permanently give it goals and rules for the conversation. And the code cutting off is annoying. I always have to tell it to retry from the last line or function and continue onwards.
@timeismichael
@timeismichael Год назад
I haven't downloaded anything from this man not since the Doki Doki literature club memes But I love watching his videos,in the hope of one day he'll perfect Super Mario 64 and add another multiplayer mod alongside of it, And he's kind of an entertaining fella
@ZebraOnYourNose
@ZebraOnYourNose Год назад
It completed flew over my head that AI could be involved with making Mario 64 rom hacks. Can't wait to see what more of this will do in the future
@tree_alone
@tree_alone Год назад
waluigi's dragon dildo revenge
@piclemaniscool
@piclemaniscool Год назад
As someone who doesn't code I didn't expect to watch nearly as much as I did. ChatGPT was trained to be as inoffensive as possible in its verbiage, so it takes many pages out of the customer service book. Using this wishy-washy soft language is incredibly frustrating for technical tasks, but the average end user NEEDS the stupid pandering and coddling or else they won't continue to engage with the chatbot. Hopefully in future iterations, when models can branch off into their own self contained systems, we won't have to deal with coding modules with the same speech patterns as WikiHow guides
@seronymus
@seronymus Год назад
I just realized, I wonder if chatgpt could optimize and fix the absolute mess that is TF2's spaghetti code
@CreeperShorts
@CreeperShorts Год назад
Kaze you are a psychic. I legit today thought that maybe I should message you and tell you to make a new video with ChatGPT, but using the latest version, since last one didnt go so well. And then I see you uploaded this..
@guiAI
@guiAI Год назад
very entertaining video, wouldn't mind more 👍
@Mobius14
@Mobius14 Год назад
RE: the mfix mulmul thing is a real bug on a few retail N64 hardware revisions (early ones). If you do 2 muls in a row, the 2nd mul could have an incorrect result if the former mul uses an 0, inf, or NaN. The nop is added as a fix.
@KazeN64
@KazeN64 Год назад
i'm aware that it's a real bug - but the mfix flag adds way more NOPs than requires and it doesn't schedule instructions efficiently any more. that's why reordering the instructions can help GCC here. usually GCC is smarter, but mfix kinda makes it dumb with multiplication
@lFunGuyl
@lFunGuyl Год назад
Pretty soon we will have an AI that will read your entire source code and always have ALL the relevant info. Then none of the problems Kaze was having will exist.
@snigwithasword1284
@snigwithasword1284 Год назад
For a tool seemingly designed to replace interns I'd say it did very well. Interesting times ahead if email jobs start going the way of the Appalachian coal belt...
@fungo6631
@fungo6631 6 месяцев назад
I wonder what would Terry Davis think about ChatGPT.
@devilette
@devilette Год назад
You can type "Continue" if it stops writing code and it will usually finish.
@nighteule
@nighteule 4 месяца назад
I don't use chatGPT for programming, but when I was playing around with it I asked it about Rust. It does NOT understand Rust at all, just confidently lied multiple times until I made it admit it was wrong. One of the problems I asked it about, it gave me an empty function with a comment basically saying "solve the problem here...", multiple times until it gave up lmao Not sure if GPT4 is better, but chatGPT doesn't understand soundness of code at all, just roughly how it looks
@selfaware7617
@selfaware7617 Год назад
Only channel I watch someone program and code. And it's enjoyable too despite me being very lost
@SullySadface
@SullySadface 9 месяцев назад
You should ask ChatGPT4 to explain the half A press
@AlpineTheHusky
@AlpineTheHusky Год назад
Chat GPT. Turning Spaghetticode into cryptic as hell shit
@wannacry6586
@wannacry6586 Год назад
It taught me how to make fentanyl and C4 so id say pretty good
@rareosts5752
@rareosts5752 Год назад
This is a great video, not even considering the interesting subject matter, just as a video about AI. There should be so much more content like this; there's a lot of videos about AI news or about its implications, but not nearly enough actually showing the process of working with it on specific things, with commentary.
@EddieBurke
@EddieBurke Год назад
The fact this doesn’t have more views is weird, this AI can program for the fucking N64 (given the person using it knows how to as well). It’s clearly not great at optimizing, but it’s p good for making it more readable. This’ll definitely be useful for adding new shit to a rom hack. Edit: ok 22:06 wtffffff it’s a miracle that even works
@Anthony-ku2bb
@Anthony-ku2bb Год назад
It seems like Kaze is smarter than the chat AI. This is a good example video that human intelligence is better than chat AI.
@thomas-ux8co
@thomas-ux8co Год назад
this guy is cool
@truegamer_007
@truegamer_007 Год назад
I just noticed your name is Kaze Emanuar and not Kaze emulator 😂
@hmmm7744
@hmmm7744 Год назад
Link?
@frogz
@frogz Год назад
you know you're a nerd when you watch a nerd nerd out over an ai while writing code.... and you notice their typing speed and wonder if going flat out if they would beat you into the ground doing your best
@hhectorlector
@hhectorlector Год назад
wow I was actually talking to chat gpt4 about N64 and how games are coded the other day. I was asking if a larger capacity expansion pak (I think it theoretically has a potential max of 16MB) would allow for increased framerates and/or higher resolution textures, and how simple adjusting code for games would be so they take advantage of that extra RAM (answer: it would not be simple and each game's code would require it's own personal attention.. but chat gpt4 could explain how the coding works in regards to RAM usage and rewrite accordingly). just sayin- weird coincidence!
@Mynestrone
@Mynestrone Год назад
I want Kaze working on AI
@ShiftSad
@ShiftSad Год назад
Wow, the video was released 35 seconds ago
@coek.
@coek. Год назад
crazy
@nnickplays9713
@nnickplays9713 Год назад
Do you need a subscription to work with chatgpt4?
@godlyvex5543
@godlyvex5543 Год назад
Right now, yes. It's in kind of a paid early access. Eventually it will be usable by anyone, though.
@jumhig
@jumhig Год назад
Readability is important - if you can't read your code you can't see where your bugs are :)
@dinkleberg1585
@dinkleberg1585 Год назад
egg
@arciks11
@arciks11 Год назад
ChatGPT does eventually "forget" the chat history even in an active conversation. So while I don't believe it can help much, re-prompting it with first prompt every like 8 lines may be helpful.
@stefanrabenstein3753
@stefanrabenstein3753 Год назад
I haven't tried/paid for gpt4, so I can't guarantee this still applies, but that's exactly what I would have suggested. You could even copy paste part of the promt for every optimization (optimize the following function for minimum possible memory size on a N64)
@deedoubs
@deedoubs Год назад
GPT4 is supposed to have a *lot* more conversational memory than GPT3.5. Something like 65000 words worth (a typical novel is 70,000-120000)
@SkaveRat
@SkaveRat Год назад
GPT4 is a LOOOOT better with this. I have stories and chats that are super long and it will recall details from the beginning without any problem
@cube2fox
@cube2fox Год назад
I think ChatGPT with GPT-4 has something like a 8000 token context window, where one token is a few characters. Theoretically GPT-4 allows for a 32k context window, but I think that is not available yet.
@rm_steele
@rm_steele Год назад
know this comment is old, but as I understand, GPT4 has a token limit of 8192 compared to 3.5's 4096. On average 1 token is about 0.75 words so GPT4 can only parse about 7,000 - 7,500 words. The model doesn't actually remember anything, the ChatGPT interface re-sends the entire conversation history with your message. When the token limit is reached on the website, it asks ChatGPT to summarize and shorten the conversation history to make room.
@jonasg5898
@jonasg5898 Год назад
Looking at your code, it seems to be quite efficient. I don't see much room for further optimization.
@lucbloom
@lucbloom Год назад
“Don’t see much room for” is polite English for “not a chance”
@xXFoiXx
@xXFoiXx Год назад
Kaze bullying the AI into admitting it doesn't know how to optimize sometimes and the AI bullying Kaze into having readable code is fun to watch Also as a programmer with zero experience of this particular field I kinda like your style of writing. Its like a puzzle sometimes.
@clouds-rb9xt
@clouds-rb9xt Год назад
@@Rihcterwilker Is that criticism?
@Rihcterwilker
@Rihcterwilker Год назад
@@clouds-rb9xt i guess it can be understood as such, as criticism is a way to improve and get better, which wouldn't take away from his achievements and abilities. You can be a very good programmer and implement hard systems easily, yet have messy code that is hard to read.
@realdragon
@realdragon 8 месяцев назад
Who need readability
@btarg1
@btarg1 Год назад
I love that this video is just Kaze shouting at a sophisticated artificial intelligence like "TELL ME MY CODE IS PERFECT" lmao
@jamesclark2663
@jamesclark2663 Год назад
Does anyone else find the role reversal here hilarious? Like the human is complaining that the computer isn't being exactly specific with its language use and just kind of being hand-wavey. 😂
@TheIrisCZ
@TheIrisCZ Год назад
You should try using the original code and optimise it using the GPT4 with a bit of input from your side and see, how close to your result you'll get. If it is even halfway as good as your optimalisations, it would be awesome.
@SuperSmashDolls
@SuperSmashDolls Год назад
ChatGPT is so advanced and smart it picked up several misconceptions about how compilers work (e.g. "unroll everything", "ternary is faster", "I can remove repeated calls to this state-altering function because I'm a Haskell programmer")
@seronymus
@seronymus Год назад
"I like your funny words, magic man "
@NBDbingo5
@NBDbingo5 Год назад
Wait "ternary is faster" is a misconception?
@SuperSmashDolls
@SuperSmashDolls Год назад
@@NBDbingo5 It's because it makes your code more visually compact, so people might confuse it for being faster. As you go up to higher and higher level languages there's all sorts of little things that look beneficial but aren't. Always measure your performance changes. Of course, ternary isn't faster or slower, it's going to compile down to the exact same branch instructions that an if/else block would.
@saniancreations
@saniancreations Год назад
I don't know for certain but I think that it may make a difference with compiler optimizations off (like with a debug build), a ternary could actually be faster because in some cases it can generate a single conditional move instruction rather than two branches with different move instructions. But if you turn on any kind of optimization, which kaze clearly does, then the compiler will just realize that they are the same thing and generate the same assembly.
@bb010g
@bb010g Год назад
​@@SuperSmashDolls Ternary if being expression-oriented instead of statement-oriented is a bigger than than visual compactness IMO. I'm also a filthy Haskell & Rust programmer though.
@BGP00
@BGP00 Год назад
If the ai gets cut off, you can say "please continue" and it will continue (although sometimes its a bit buggy)
@AlpineTheHusky
@AlpineTheHusky Год назад
The "There is not much to optimize" is basically a "I cant remember enough to deal with this snippet"
@LauWo
@LauWo Год назад
You sound once again like a human being. So dumb. Why are being so ignorent and stupid?
@chikato7106
@chikato7106 Год назад
Or you can't reduce it further... 2+2=4 no matter the shorthand or speed.
@LauWo
@LauWo Год назад
@@chikato7106 And you sound like an Autistic person. Why being so ignorant? It is about all the info. And that is not 2+2=4. I mean, I get your point. But AI can come with smarter conclusion if it says: "NOT MUCH to optimize".
@AlpineTheHusky
@AlpineTheHusky Год назад
@@chikato7106 Well giving GPT the whole code would probably find some funky as hell optimizations
@LauWo
@LauWo Год назад
@@AlpineTheHusky Exactly.
@leihau
@leihau Год назад
This video was quite entertaining, there isn't much room for improvement
@tigerfir3
@tigerfir3 Год назад
Kaze getting mad at ChatGPT is the funniest thing I've seen in a while
@wavebend1474
@wavebend1474 Год назад
dude you're asking chatgpt absurdly specific, near impossible questions lol. the fact that it can even answer in a reasonable way is already so impressive
@Gooooms
@Gooooms Год назад
This is a great video. I was unsure how improved gpt 4 was. I don’t even know much about programming but the difference is the immediately noticeable. Can’t wait to load this rom hack onto my steam deck.
@gamesthatiplay9083
@gamesthatiplay9083 Год назад
My programmer friends tell me when they use it, it gives some awful results, like it trained on tutorials for beginners taught by beginners. Then, then they try to train it to be otherwise, it still yields the same results. Perhaps that's why I see all kinds of articles about Chat GPT isn't AI, because it doesn't know anything past 2020 - 2021, and can't learn past that.
@Rubbe87
@Rubbe87 Год назад
Probably because the question was on a beginners level.
@AmaroqStarwind
@AmaroqStarwind Год назад
Its knowledge cutoff is September 2021. However, plugins are coming out which will improve its capabilities even further.
@godlyvex5543
@godlyvex5543 Год назад
Are they using gpt 3? Cause that one is notorious for being wrong a lot.
@unraveledcape6414
@unraveledcape6414 Год назад
Chat GPT is so weird to me with all the ethics junk around it. It seems great for things like this where you obviously understand the code and are trying to optimize /debug the code further but I've overheard several of my college classmates just using it to write their coding assignments. Great video though I really enjoyed it!
@harrisonfackrell
@harrisonfackrell Год назад
I'd say ChatGPT is essentially the next stage in high-level intermediaries when it comes to programming ethics. Universities are just going to have to adapt.
@hoyhoy852
@hoyhoy852 Год назад
There's so much junk around AI discussion in general. Tools are obviously incredibly useful and you can incorporate them to optimize a lot of things, but the discussion around it got so toxic that we have delusional "AI truthers" - basically same people that fell for NFT scams and are raving about random useless "brand new insane ChatGPT tools", on other hands we have "AI denialists" - people that seem to want to enforce copyright to ban AI completely but at the same time act like AI can't produce of anything remotely of value when it's obviously untrue. It's really a headache.
@unraveledcape6414
@unraveledcape6414 Год назад
@@hoyhoy852 very well put that's pretty much exactly how I feel too
@anjoliebarrios8906
@anjoliebarrios8906 4 месяца назад
​@@hoyhoy852couldn't have said it better myself.
@diegog1853
@diegog1853 Год назад
Yeah that is one thing I don't like about chatgpt, it doesn't say that it doesn't know, because it is programmed to talk like the people that do know. So it would rather make something up than not saying anything at all, the product is talking to the machine afterall. Which is one of the reasons it just doesn't work as a replacement for a search engine or stuff like that. The main priority is not give you accurate information, the main priority is give you an answer emulating convincingly human speech.
@AmaroqStarwind
@AmaroqStarwind Год назад
There are plugins that help it get up-to-date information.
@diegog1853
@diegog1853 Год назад
@@AmaroqStarwind Yeah but when there is no information available or very little information available, it will just make stuff up. That is not something you can simply fix with giving the A.I more accurate information, because sometimes that accurate information doesn't exist. The A.I would need to make a judgement call regarding what it knows... But it can't, it doesn't actually understand what it is talking about, it is simply emulating how people talk about it.
@AmaroqStarwind
@AmaroqStarwind Год назад
@@diegog1853 We’ll eventually get there.
@seronymus
@seronymus Год назад
This, I've asked ChatGPT for sources on historical claims and it will endlessly just make up fake references, books that don't exist, etc
@javierflores09
@javierflores09 Год назад
@@diegog1853 I mean, that's pretty much the internet. Take stackoverflow for example, it isn't like it is bullshit-proof, but rather that there's a community that often calls up on people's bullshit when the posts are sufficiently recognized but this is only because stackoverflow has very strict rules regarding ratings and answers, but when it comes to articles or discord conversations, people throw bullshit left and right without anyone bating an eye. I would say ChatGPT is almost human in that regard, it'd rather give a nonsense answer rather than admitting it is wrong, which is something very common but since it is a machine, we just expect it to be perfect. If you have this in mind, it isn't as bafffling that it'll allucinate with some answers
@kola86
@kola86 Год назад
I'm afraid, even GPT-4 can't remember all of your history. I think that you need your pre-conditions to add for all your optimization commands. (it might know the history of the last 10 cmds/resp. but I wouldn't trust it)
@harrisonfackrell
@harrisonfackrell Год назад
Its "memory" is limited by tokens, as it takes your most recent chat history as context.
@nononono
@nononono Год назад
approach_angle is not optimal static int32_t ap1(int16_t a, int16_t b) { int32_t diff = abs(b - a); if(diff >= 0x1F00) return b; int32_t k = a + b >> 1; if(diff < abs(b - a + 0x10000) && diff < abs(b - a - 0x10000)) return k; return k + 0x8000; } static int32_t ap2(int16_t a, int16_t b) { int32_t diff = abs(b - a); if(diff >= 0x1F00) return b; int32_t k = a + b >> 1; return k + (diff & 0x8000); //
@Syogren
@Syogren Год назад
The fact that Chat GPT can do any of this at all is absurd to me. I can get it figuring out how to write basic English sentences, but I never would have imagined it would know how to write code. Like it's obviously not perfect, but even the fact that it could optimize your code at all is fascinating. Once this tool becomes more advanced it'll become even more helpful, I imagine.
@isaac10231
@isaac10231 Год назад
"It's doing some weird shit to my function." _Me who can only write loops in python_ "Yeah you tell him Kaze"
@jcrosenkreuz5213
@jcrosenkreuz5213 Год назад
It even has a simulation of epistemic humility, "maybe this could be better, but I'm not seeing it"
@1gnore_me.
@1gnore_me. Год назад
honestly I just think it's really, really impressive that the majority of the code didn't break the game, even if it wasn't actually any faster.
@sagebondcast8115
@sagebondcast8115 Год назад
Please recreate Super Mario RPG: Legend of the Seven Stars on the super mario 64 engine. That will be something truly great.
@Zwiebelgian
@Zwiebelgian Год назад
Don't know if it would actually improved code speed/size, but about the loop going to 6 instead of 3, you can actually do that. i / 3 gives out 0, 0, 0, 1, 1, 1 and i % 3 gives out 0, 1, 2, 0, 1, 2. I think it just did some array assignments wrong.
@aesth1cc
@aesth1cc Год назад
I think your code looks quite optimized but I know about a couple improvements that could be made, although I won’t tell you about them 🤫
@n64glennplant
@n64glennplant Год назад
How about using the turok source code from the leak years ago and sticking what you can through CGPT to see what it can do with that? 😊
@Swnkmstr
@Swnkmstr Год назад
I love how Kaze is talking about GPT like it's a person. GPT makes a recommendation and Kaze calls it a nerd due to the obscurity of the recommendation lmao
@mattmmilli8287
@mattmmilli8287 9 месяцев назад
You work with it long enough, definitely starts to happen. GPT started hitting me with jokes and emojis when we were stuck on a function for a long time once. Pretty wild 😂
@MrBrax
@MrBrax Год назад
Maybe the new copilot will be more useful with full codebase knowledge
@b00marrows
@b00marrows Год назад
I think when it says "there isn't much room for improvement" its literally means, within the constraints its using it cant do anything. Its silly but its kinda like saying "i cant fit anymore water in this cup". It might seem annoying due to the repetition and post limit but explaining why something it said didn't help *should* push it a step further to what you want from it. AFAIK this version of chat GPT actually remembers things its told, especially when repeated a couple of times to overwrite old wrong perimeters. While I'm not that into AI/chat GPT, these videos are really entertaining.
@legoboy7107
@legoboy7107 Год назад
18:20 Darn, I wanted to watch a Kaze shoe-eating stream.
@DanteWolfwood
@DanteWolfwood Год назад
This video actually shows why using chat-gpt, even version 4, would actually be detrimental. Sure it gave less errors and yes it might provide some optimizations but you had to correct/ignore WAYY more suggestions than you decided to use. Only way you knew to do that was because you're not only an expert at coding, you're an expert at this specific niche. If a junior or new programmer used this, not only would it likely stunt their growth, it will often slow down production or the code would be way worse.
@Droidsky17
@Droidsky17 Год назад
Growth is completely dependent on the user. I think that a level of understanding can be reached by viewing the possibilities, but anyone that chooses to use this tool and take it as perfect fact isn't the problem of the tool itself.
@DanteWolfwood
@DanteWolfwood Год назад
@Droidsky it is not, it is dependent on how dependent the tool makes the user. This is the truth for all technology, it's just more detrimental in some cases. I'd argue it's pretty detrimental here.
@Droidsky17
@Droidsky17 Год назад
@Coolidge well I can't control other people, it's availability and ease of access is scary considering what it can do; but I don't think that this technology shouldn't exist just because some people will be able to spend more time with their feet on their desk, or publish some half-assed project written 90% by a bot.
@isaac10231
@isaac10231 Год назад
Idk. I'm a noob programmer and I found Chatgpt very helpful for helping me understand some of the basics - like a friendlier stack overflow almost. But for really expert niche content I can see how it's an issue.
@jurakarok3343
@jurakarok3343 Год назад
At the end of a chat GPT session, you should ask it if it can optimize the code but, show it the entire file. If there is no limit to how large your query is that should be interesting.
@fuyukaidesu1641
@fuyukaidesu1641 Год назад
restrict gives information about pointer aliasing to the compiler, it means that no other pointer will touch memory pointed by a restricted pointer, so you should already be able to tell when restrict will actually do something. Also there are aliasing rules in C that states that two pointers of different types cannot point to the same memory area, so restrict won't do anything either in case you're passing multiple pointers of different types to a function (and all memory accesses are through those pointers) Also if you're prompting multiple functions to optimize for, then instead of appending, you should edit your prompts to ask it to optimize another function, else you're polluting the 8K tokens of context you're allowed and it will forget about what you said earlier in the conversation (that you're targeting a N64, etc...)
@KazeN64
@KazeN64 Год назад
i've disabled all the aliasing rules that the compiler flags would let me, so im usually unsure whether restrict will provide any additional benefits.
@cubedude8690
@cubedude8690 Год назад
chatgpt now has an option to continue the response if it got cutnoff due to the character limit.
@DoctorMandible
@DoctorMandible Год назад
I use gpt4 for professional financial analytics coding. Best trick I can give you is to have a set of contexts ready to copy/paste into your prompt. Always - always - remind it of the most important context for your prompt. Even if that means a simple questions ends up being hundreds of words. Also you can tell it "only reply with code" to get back less useless explanation.
@minerharry
@minerharry Год назад
“Some people say pointer I say number” what a chad
@ChristopherGray00
@ChristopherGray00 Год назад
Is it just me or is the video quality low?
@CoreyWeistuch
@CoreyWeistuch Год назад
How many of you were shocked that Kaze didn't just do Mario 64 full time
@lucbloom
@lucbloom Год назад
“There isn’t much room for” is English for “zero chance” not “there is some room, if you ask me about it” This is due to the indirectness baked into their language. “Politeness” they call it. “Inefficiency” I call it.
@marcelofrau8818
@marcelofrau8818 Год назад
now try that with copilot.
@MattIsTheCat
@MattIsTheCat Год назад
Are you going to be recreating Mario Kart Double dash for the N64? You could probably optimize it enough to look just as good as on the GameCube.
@Julianmario
@Julianmario Год назад
Nice man. Glad this ai is getting better
@Back-Air
@Back-Air Год назад
Meanwhile I'm coding extremely bad C# code that probably uses way too much memory for what it's doing and is waaaaay too slow for what it's doing too.
@sch1nken
@sch1nken Год назад
Hey Kaze. You're only looking at the size of the code... but wouldn't it make sense to also see which instruction it uses? e.g. modulus operation is clearly slower. So if you can avoid using this but have more code... that would be a good trade off, right?
@KazeN64
@KazeN64 Год назад
what really matters here is the RAM. each instruction takes 8 cycles on average to load into RAM and it will hold up the RDP while rendering. running the whole game's code right now takes around 9ms in course 1, so we could easily render it at 100fps from that perspective. but because the memory is shared, every time we load an instruction on the CPU, the RDP is hung up until that's done. this will cause rendering to slow down.
@sch1nken
@sch1nken Год назад
Thanks for your reply :) that explains it!
@hc3d
@hc3d Год назад
Oh no, don't scold the AI 😮. It forgives but it won't forget. (as they could retrain the AI will the chat history I think) 😂
@Jdbye
@Jdbye Год назад
How do you get a ChatGPT4 trial? I thought you had to pay.
@moomba0
@moomba0 Год назад
you probably wont see this or maybe you already know this. but when it cuts off a response, just type in continue and it’ll start where it left off.
@Maric18
@Maric18 Год назад
"i don't see much room for improvement" is polite english if it was more literal it would answer "yes" or "no" to "can you improve this code for me?"
@tomsoya
@tomsoya Год назад
If it wasn't wrong, you could pretend you said you'd "eat a choux"
@CandiedC
@CandiedC Год назад
You kinda look like 2014 jacksepticeye
@HutchesApprentice
@HutchesApprentice Год назад
"readability is secondary"
@minerharry
@minerharry Год назад
22:00 was so cool
@RealRedRabbit
@RealRedRabbit Год назад
When it stops the code it's because it's at a character limit. You can say "please continue the code where you left off" and it will
@mirek190
@mirek190 Год назад
gpt4 is able to handle up to 25.000 words at once ...(gpt 3.5 limit is 3000 words ) I do not think he reach limit in the answer ...
@RealRedRabbit
@RealRedRabbit Год назад
@@mirek190 well either way, it continues the code if you ask it to
@mirek190
@mirek190 Год назад
@@RealRedRabbit yes after continue it should .
@kristian4805
@kristian4805 Год назад
I use it for writing some regex.
@jansenart0
@jansenart0 Год назад
32:20 Yo, shoutouts to me!!
@Edgewoodblake
@Edgewoodblake Год назад
At this point, base Mario 64 is going to be so optimized that it's going to run 60+ fps without dropping frames.
@tree_alone
@tree_alone Год назад
Super Mario 64FPS
@KSATica
@KSATica Год назад
It’s GREAT!!!! For me I’d ask ChatGPT to provide me a code to have my robotic hand to play guitar hero 3 devil went down to Georgia…
@GraniteValleyDave
@GraniteValleyDave Год назад
Really enjoying these AI videos Kaze. Not sure I understand all of it but it's fascinating to see.
@Margen67
@Margen67 Год назад
Penguins need HUGS
@trapexit
@trapexit Год назад
It has to be remembered that at the end of the day GPT is a generative LLM and therefore a token predictor. A glorified phone keyboard word prediction app. It doesn't "learn" but prompt engineering provides additional context to the model to predict against. It's useful for sure but context and understanding its limitations are key.
@homer3189
@homer3189 Год назад
inaccurate
@trapexit
@trapexit Год назад
@@homer3189 How's that?
@BradenBest
@BradenBest Год назад
huh, I never thought about it that way, though I don't know if I fully agree that having a tool to analyze and explain code means you can just start writing horrible complex disorganized and deeply-nested code. You should be able to come back to your own code a year down the road and not say "...what the fuck?". Though to be honest, your code doesn't look half bad. The worst thing I saw was probably that do-while-if-if-if structure in geo_process_node_and_siblings, but even with that, although you nested 5 indentation levels, you still wrote it in such a way that it's not hard to read. if-else structures get hard to read when they are deeply nested and there's a lot of else-if clauses. Maybe your industry peers are less competent than I (especially if you're calling them human-shaped monkeys on typewriters).
@Jdbye
@Jdbye Год назад
There's a max length to ChatGPT's responses, so that long function it didn't complete was probably just too long. You can ask it to continue where it left off, but it doesn't always work, it can kind of forget part of the context and give you the wrong result. Keeping more context in short term memory is extremely computationally expensive, so that's a limitation of current AI.
Далее
The Problem with the Grass in Mario 64
35:04
Просмотров 383 тыс.
pumpkins #shorts
00:39
Просмотров 10 млн
Самая сложная маска…
00:32
Просмотров 1,3 млн
Is Computer Science still worth it?
20:08
Просмотров 335 тыс.
Can Mario 64 be beaten if it was covered in lava?
18:51
Real Programmers Write Machine Code
26:25
Просмотров 112 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 715 тыс.
Cryptic Stars in Mario 64 EXPLAINED
9:10
Просмотров 87 тыс.