CoeurdeLeon 8 Posted May 16 (edited) I have been using AI since it came out more than a year ago. In the beginning Delphi requests for code almost always had errors and fictitious information. Things have gotten better but I still find a lot of errors. The AI tools I am using currently are: Amazon Q Developer Blackbox AI ChatGPT Claude 3 Sonnet Google Gemini mistral.ai Paid-GitHub Copilot Paid-Replit AI Paid-Tabnine Of all of these as of 5/16/24 I find Claude the best but still frequently lacking. Please add your AI favorites and comment on their delphi coding skills. Dick Maley Edited May 16 by CoeurdeLeon 1 Share this post Link to post
dummzeuch 1505 Posted May 17 You have listed chatGPT. Which version(s) were you using? My own experience is that neither the free chatGPT nor Gemini are any good for producing Delphi code. I haven't tried any others. 2 Share this post Link to post
shineworld 73 Posted May 17 (edited) I usually ask my questions about the Delphi code to ChatGPT 4. It is very fast and enougth precise. You can use same chat session to teach it when is wrong and it learn for next responses. Recently I've played with local AI using "ollama" and "mixtral" model for programming. Example in pastebin : https://pastebin.com/wWaLsw1V Mixtral model requires a lot of memory, I've 48GB in my PC, but I don't have a compatible CUDA GPU so will take 4 minutes to get the pastebin result using only I7 CPU. Edited May 17 by shineworld Share this post Link to post
Brandon Staggs 278 Posted May 17 (edited) I've had some success with https://www.phind.com/search?home=true but lately just the built-in copilot in Windows has been sufficient. But I never rely on AI for copy-and-paste solutions. Edited May 17 by Brandon Staggs 1 Share this post Link to post
David Schwartz 426 Posted May 21 In ChatGPT4, have you tried setting the 'temperature' setting to zero? That's supposedly a setting to moderate how much / little it exercises its own "creativity". Share this post Link to post
Ali Dehban 38 Posted June 27 Another option where I had a better experience than with OpenAI and Gemini is YouChat 1 Share this post Link to post
hsauro 40 Posted July 20 I think Claude3.5 has improved a lot in the last few months. It will even request outputs from runs to analyze. Note I don’t have subscriptions but use the free time they offer. The other thing I do is ask the same question to ChatGPT 4o and claude3.5 and look at both answers. Sometimes I have to suggest alternative approaches in order to help them. Sometimes one will fail while the other succeeds. I also tried copilot and it doesn’t seem to know much. In general I use them to write mundane boiler plate code, like reading a json file. I could write the code but asking the AI to do it is such a time saver. It lets one focus on the more creative parts of the coding. It’s also much less stressful than asking questions on stackoverflow. Share this post Link to post
dormky 2 Posted July 22 Claude has multiple advantages for me : - You can give it a large amount of info (I've been pasting entire units into it) - Moderately better at Delphi (ie not making too much stuff up) - Won't give you entire paragraphs explaining why 1+1=2, it's way more concise and won't re-explain everything with every answer, mostly just show the code change. Not sure if this is a measure to not consume as much but it's great for since I always have to bang ChatGPT's head about giving only-code answers. Share this post Link to post
shineworld 73 Posted July 22 (edited) You can "teach" chatgpt with tags to avoid to repeat same things, eg: to chatgpt > When I use tag #DCODE you have to create a clean Delphi code as in followed text description adding short comments which does not use capital letter, eg: // sort the list, etc etc etc. So you can ask: > #DCODE create an alphabetical acending and descending sort of a TList<string> object. Edited July 22 by shineworld Share this post Link to post
corneliusdavid 214 Posted July 26 On 5/16/2024 at 2:58 PM, CoeurdeLeon said: The AI tools I am using currently are: ... Of all of these as of 5/16/24 I find Claude the best but still frequently lacking. It was interesting seeing this list and the responses as I've only used the free ChatGPT about a half dozen times--I haven't considered getting into it seriously. But I decided I should look through these tools listed here (didn't know there were so many geared for programming!) and get up to speed since AI is here and being used and talked about everywhere these days--I'm starting to see how this could be quite a time-saver for many things. Today, I was struggling with some untyped string parameters being passed into a function and it was failing to get the values properly after converting this old code from Delphi 5 to Delphi 12. I knew I had to add support for UnicodeCode types but I was struggling with how to get the value from the embedded pointer. I asked ChatGPT and it gave a pretty good answer--and it was correct but it only listed the new Unicode and WideString types. I wanted to be able to support ShortString as well. So, I posed the exact same question to Claude and it gave a nearly identical answer BUT included support for ShortString as well, noting the slightly different syntax (you have to dereference it while you don't with the new modern string types). I asked Claude about the difference and it gave a good answer about the history of string types and why ShortString has to be handled differently. I'm very impressed and am about ready to sign up for Claude! (I like what I'm reading about it's "project" feature as well.) Thanks all for your comments! 2 Share this post Link to post