ChatGPT - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: ChatGPT (/showthread.php?tid=1494) |
ChatGPT - TerryRitchie - 02-21-2023 I've been playing with ChatGPT. I asked it this question: "write qb64 code that converts 3d coordinates to 2d screen coordinates" This is what it produced: Code: (Select All) SCREEN 12 'Set the screen mode to 640x480 16-color mode Any thoughts? RE: ChatGPT - Sprezzo - 02-22-2023 ------ RE: ChatGPT - bplus - 02-22-2023 Well all we need is to _underline PI and move the near not so much and it makes sense: Code: (Select All) Screen 12 'Set the screen mode to 640x480 16-color mode A more interesting question might be the reverse. RE: ChatGPT - TerryRitchie - 02-22-2023 (02-22-2023, 12:38 AM)Sprezzo Wrote: Does this program make anything but a black screen on anyone else's machine? Yep, it makes a few mistakes here and there but it's quite interesting that it can do this. I also asked it to generate a subroutine to rotate an image and another function to perform a rotozoom. Each needed slight modifications that needed to be made but the answers were otherwise solid. Here is the image rotation it came up with: Code: (Select All) ' Subroutine to rotate an image in QB64 And its explanation: To use this subroutine, you would pass in a pointer to the image buffer, as well as the width and height of the image and the number of degrees to rotate the image by. The subroutine would create a new temporary image buffer, loop through each pixel in the original image, calculate its new position after rotation, and set the color of the corresponding pixel in the new image buffer. Finally, the subroutine would copy the rotated image back into the original image buffer and free the temporary image buffer. Do you see "AI" models like this a threat or enhancement for programmers? I can see both sides. For an experienced programmer this may generate new ideas. For a beginner this could become a crutch and a path that never leads to actually mastering a language. RE: ChatGPT - TerryRitchie - 02-22-2023 (02-22-2023, 01:27 AM)bplus Wrote: A more interesting question might be the reverse. Well, I did that per your suggestion and crashed it! LOL, a chicken and egg scenario perhaps or divide by 0 type of question. RE: ChatGPT - mnrvovrfc - 02-22-2023 Need to create an account to use the blamed thing. Nope. Somebody is using it as "alternative psychologist" in another forum I belong to. Make it stop! I hope it keeps failing to produce useful replies and it just bumps back down to oblivion where it came from. Either it could be a threat, or it could be yet another technological fad. I'm an enemy of this, it's not chat it's garbage. RE: ChatGPT - bplus - 02-22-2023 Yeah I balked too at signing up having paranoid thoughts about the powers of AI. Just don't ask if it can make a better copy of itself. RE: ChatGPT - TerryRitchie - 02-22-2023 (02-22-2023, 02:57 AM)mnrvovrfc Wrote: Need to create an account to use the blamed thing. Nope. Just make a throw away email address, that's all it needs to create an account. (the only reason an account is needed is because it remembers your past conversations and builds off of them, such as Eliza did back in the 80's) It's really interesting to play with. One of the example code it created for me included a library made for FreeBASIC. When I pointed this out it apologized, acknowledged I was correct, and then proceeded to produce the code I requested using only native QB64 commands. I can see this as a useful tool to throw ideas around and maybe in the future it can be fed code to analyze for suggestions. In fact, ChatGPT told me that the plus versions (ChatGPT+) can be tailored to specific tasks, such as programming (it told me that was the reason it was making programming mistakes, because the general public version is just general knowledge). It's not "AI", I get that, it's just a very cleverly written relational database, but something that given time might be a helpful tool. I don't know, time will tell I suppose. RE: ChatGPT - mnrvovrfc - 02-22-2023 Despite what I said earlier, I was a bit amused with how a couple of other members of this forum interacted with it. Like the first thread by madscijr that I read about it, to build some text-only adventure LOL. But it should be only for entertainment, not to be taken more seriously so people begin to fear losing their employments and/or looking dumb writing things on a forum such as this one. RE: ChatGPT - Dimster - 02-22-2023 I understand ChapGPT's knowledge data base is limited to data up to the year 2021. If QB64PE expands commands and syntax (as most computer languages will do) will the plus version of ChapGPT keep updating it's knowledge base? |