Recent

Author Topic: Which AI Model is the Best for Assisting in Lazarus/Free Pascal Code Development  (Read 6816 times)

schuler

  • Sr. Member
  • ****
  • Posts: 272
I’m a heavy A.I. user myself. I pay for a number of A.I. services including ChatGPT and POE. I use these services for brainstorming, code review, code documentation and sometimes actual coding. Sometimes, bugs introduced by language models are hard to fix. Will I stop using? Not now.
At this precise moment in the evolution of A.I., language models won’t create working final solutions for you. But they can help you.

You may try the following:
* Hello super-intelligence! Do you find opportunities for improvement in the following code please?
* Hello super-intelligence! Do you see any obvious bug in the following code? Is there anything that I should care about please?
* Hello super-intelligence! Can you write a readme file for the following code please?
* Hello super-intelligence! Can you explain to me this source code please?
* Hello super-intelligence! Can you explain to me please the algorithm called … ? I’m particularly interested in the aspect about… . This portion of the algorithm doesn’t make sense to me because … Can you help me understanding it please?
* Hello super-intelligence! I typed this readme file for that source code. Can you format it to me please? Can it be improved further?

This is an example:
* https://poe.com/s/ELl4xkluKjNpEE1h6vuZ

When I am respectful, motivational and thankful, the AI replies look better.
The readme file https://github.com/joaopauloschuler/neural-api/blob/master/README.md was greatly improved by https://poe.com/CAI-NEURAL-API. My most recent release notes ( https://github.com/joaopauloschuler/neural-api/releases ) were also reformatted by https://poe.com/CAI-NEURAL-API .

In reply to the original post, these are my preferred tools at this moment:
* ChatGPT o1-preview.
* My own flavored Sonnet 3.5 200k context: https://poe.com/CAI-NEURAL-API .
* My own flavored ChatGPT-4o-Latest: https://poe.com/CAI-NEURAL-API-FREE .
* My own flavored ChatGPT-4o: https://chatgpt.com/g/g-6BrAwhTQ9-free-pascal-developer-neural-api

The one that I use the most is https://poe.com/CAI-NEURAL-API . Don’t expect miracles. Once you have some understanding of the current A.I. limits, then you can push A.I. tools to their limits.
 

VisualLab

  • Hero Member
  • *****
  • Posts: 693
<cut/>
...
When I am respectful, motivational and thankful, the AI replies look better.
...
<cut/>

Just remember, don't overdo it with politeness. If you sugarcoat your questions too much (using the suck-up mode), the super-intelligence will get angry. It certainly works just like INTERCAL :D

axel18

  • Newbie
  • Posts: 6

* My own flavored ChatGPT-4o: https://chatgpt.com/g/g-6BrAwhTQ9-free-pascal-developer-neural-api
[/quote]


This one is the better  for  free pascal with raylib library !

ad1mt

  • Sr. Member
  • ****
  • Posts: 465
    • Mark Taylor's Home Page
Its the one inside your own head.

Igor

  • Sr. Member
  • ****
  • Posts: 384
Hi,

I use ChatGPT Plus to write PHP code because I don't know this language well. Also ChatGPT helped me fix incompatibility for old PHP scripts for version 8.0+

Note, that o1 model works much better for AI code writing than 4o.
o1 model is available only in ChatGPT Plus.

Also earlier I used ChatGPT 4o (free version) to convert small parts of C++ code to FreePascal code.
And ChatGPT helped me to write code for external DLLs.

Important point. I discovered that ChatGPT produced better code firstly I asked him to write C++ code and THEN convert the code to FPC. Because it seems that ChatGPT has limited base for FPC code.
For example, when I was writing support code for one external DLL, ChatGPT suggested me to use deprecated functions. But when I asked him to write C++ code, he suggested actual functions. The next step was to convert C++ to FPC. Here's a trick.

RayoGlauco

  • Full Member
  • ***
  • Posts: 220
  • Beers: 1567
I have used ChatGPT to ask for examples of how to generate Word documents using OLE automation. The examples had some errors, but they have saved me several hours of searching for documentation on the subject.
To err is human, but to really mess things up, you need a computer.

Zvoni

  • Hero Member
  • *****
  • Posts: 3140
Quote
Which AI Model is the Best for Assisting in Lazarus/Free Pascal Code Development
My Brain and the FPC/Lazarus-Documentation....
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018