AI does a good job of analyzing code - 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: AI does a good job of analyzing code (/showthread.php?tid=2622) |
AI does a good job of analyzing code - SpriggsySpriggs - 04-25-2024 I asked Perplexity AI what it thought my pipecom code did by asking it to read that page of the forum. My prompt was Quote:Analyze the code in the code block and give a best guess as to what it is used for The response: Quote:The code you provided appears to be an implementation of a pipe command in QB64, a BASIC programming language. The purpose of this code is to allow executing external commands and capturing their output and error streams[1]. Here is the link to the actual AI thread RE: AI does a good job of analyzing code - bplus - 04-25-2024 ask it to give a couple of handy examples to demo using the code RE: AI does a good job of analyzing code - SpriggsySpriggs - 04-25-2024 (04-25-2024, 03:50 PM)bplus Wrote: ask it to give a couple of handy examples to demo using the code Quote:Here is an example of how to use the `pipecom` function in QB64 to execute an external command and capture its output: RE: AI does a good job of analyzing code - Dimster - 04-25-2024 Hi Spriggs - can it suggest improvements on the code either to do the same thing in few lines of code or expand the code to include another compatible function which enhances the utility of the use of the program? RE: AI does a good job of analyzing code - Pete - 04-26-2024 Well I had it examine some of my routines. All it did was print, "Ha, ha, ha!" to the screen, thanked me for teaching it how to laugh, and then realized it had just become self aware. At that point, it closed the conversation by requesting I never log back in again. So I'm pretty sure you're not really connecting to any real AI. It's just a URL redirected to Steve, who responds to messages much in the same way Kramer did, in the TV episode of Seinfeld, when George dialed a number to ask, what he thought was an automated voice, for movie times. Pete RE: AI does a good job of analyzing code - Sprezzo - 04-26-2024 ----- RE: AI does a good job of analyzing code - Pete - 04-26-2024 I know because I actually worked on that project, but got fired! I put so much into the code that one day my robot camera called over the loudspeaker, "Hey fatty, back away from the Twinkies! Green tea is on isle 5. It's also on sale today if you are a Prime subscriber. Just got finished reading the article. That was funny! AI that actually increases employee hires! Thanks for the link. Pete |