Can current AI understand PureBasic and....

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
yoxola
Enthusiast
Enthusiast
Posts: 389
Joined: Sat Feb 25, 2006 4:23 pm

Can current AI understand PureBasic and....

Post by yoxola »

It might be a forbidden question, but recently I tested using Gemini3 to assist making programs, it seems understands the C++ syntax and can make a prototype app with prompts, oh and it does Python, too.

I don't know if it really understand the coding language, but it can generate some good enough results with proper prompt, so I'm wondering if it(insert your AI models) can really "learn" a programming language or is it just grabbed something from elsewhere.

And PureBasic syntax is relatively simple IMHO, if AI can undestand PB and coding some basic things itself, holiday coders like me would be useless anyway, I'm a bit afraid...

Well, I don't know when AI can go that far, but I think it's happening, at least AI will learn more and live longer in some degrees, and human life is so limited.
This field was left intentionally as signature.
jidelberger
New User
New User
Posts: 1
Joined: Tue Nov 18, 2025 7:42 pm
Contact:

Re: Can current AI understand PureBasic and....

Post by jidelberger »

Hi, I'm not very familiar with Gemini, but with ChatGPT you can build an own GPT especially for PureBasic, using the PureBasic Documentation.
User avatar
idle
Always Here
Always Here
Posts: 6163
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Can current AI understand PureBasic and....

Post by idle »

Claude and codestral are trained on purebasic. Gemini appears to be but says it's not.
I find Gemini good for research, it's quite capable
And I find Claude better at producing working code but it usually insane slop.
BarryG
Addict
Addict
Posts: 4308
Joined: Thu Apr 18, 2019 8:17 am

Re: Can current AI understand PureBasic and....

Post by BarryG »

It's been discussed here before. ChatGPT is pretty good with PureBasic, in my experience. It knows what I'm asking and 9 out of 10 times it gives a correct working example. I'm not a PureBasic newbie, though, so I can tell when it's giving incorrect info and I tell it what's wrong so it remembers for next time.
User avatar
TI-994A
Addict
Addict
Posts: 2791
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Can current AI understand PureBasic and....

Post by TI-994A »

Love it or hate it, it's here to stay. So, may as well get used to it.

It's ELIZA, forty years in the making. :lol:

But seriously, it's a machine, albeit with a plethora of ethical and real-world ramifications. Sentience may not be possible, but what is it, anyway?

Meanwhile, let's just enjoy the technology. So far, for me, it's been a programming partner, and the world's best search engine. And it's quite the muse as well. The ability for it dynamically pull data and answer questions or design code, for virtually any language, or even stimulate human conversations, also in almost any language, is nothing short of impressive.

Sure, it's not perfect, yet, but it really has that can-do attitude, even if it spews crap every now and then.

Let's just enjoy it! :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
tft
Enthusiast
Enthusiast
Posts: 101
Joined: Mon Dec 29, 2008 9:34 am

Re: Can current AI understand PureBasic and....

Post by tft »

Ich benutze ChatGPT als Unterstützung. Aber ganze Projekte ist nicht so einfach.
TFT seid 1989
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak :-)
User avatar
idle
Always Here
Always Here
Posts: 6163
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Can current AI understand PureBasic and....

Post by idle »

tft wrote: Sun Nov 30, 2025 5:18 pm Ich benutze ChatGPT als Unterstützung. Aber ganze Projekte ist nicht so einfach.
Translation
I use ChatGPT for support. But entire projects aren't that easy to implement.
User avatar
Piero
Addict
Addict
Posts: 1173
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Can current AI understand PureBasic and....

Post by Piero »

"AI understand PureBasic"
:lol: :lol: :lol:

PS: Che mai potrebbero sapere di nuovo le intelligenze artificiali? :?
After all the training, they cannot translate if it isn't a tiktok video…
Not good…
User avatar
idle
Always Here
Always Here
Posts: 6163
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Can current AI understand PureBasic and....

Post by idle »

Claude is pretty good at generating purebasic.
I used it in the animated vector graphics code to do the filler from a complete example. What would have taken an hour took seconds to do.
User avatar
DeanH
Enthusiast
Enthusiast
Posts: 284
Joined: Wed May 07, 2008 4:57 am
Location: Adelaide, South Australia
Contact:

Re: Can current AI understand PureBasic and....

Post by DeanH »

I've been using Claude for over a year. Although generally good, it has not yet generated 100% PB code for me. I frequently find functions that look as if they've come from other languages, particularly Python. But it is certainly better now than a year ago.

I mainly use it for research into specific things. Saves heaps of time and effort. It was a big help getting Postgres and MariaDB working in my complex school library management system. As an exercise, I asked Claude to build code to backup and restore a database from MariaDB that could be done from a workstation. Took over 20 retries until something worked. I then wrote my own version, which was about 10% the size and considerably faster. Have to say it is getting better.
BarryG
Addict
Addict
Posts: 4308
Joined: Thu Apr 18, 2019 8:17 am

Re: Can current AI understand PureBasic and....

Post by BarryG »

I looked at Claude but it wanted my phone number to sign up, so I didn't. ChatGPT is working well enough for me.
miso
Enthusiast
Enthusiast
Posts: 650
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Can current AI understand PureBasic and....

Post by miso »

I belive, that content generation is not really an ai feature. An untraind model generates nonsense, a trained ai generates outputs similar to the learning inputs, but deviates ( interpolates ) between them. A more trained NN will produce outputs more close to the original training data source with less deviation ( aka loses creativity ) This applies to image generation or code generation or text (literature) generation.
wro
User
User
Posts: 16
Joined: Tue Mar 23, 2021 1:19 pm

Re: Can current AI understand PureBasic and....

Post by wro »

I’ve thrown some old PureBasic scripts at a few AI tools, and most of them do an okay job as long as the code is clean and not full of custom libs. They won’t always catch the quirks of older PB versions, but for debugging or quick rewrites, it’s surprisingly useful.If you’re mixing PB with API calls or Windows-specific stuff, the AI usually needs more context but still helps speed things up. The word world shows up a lot in coding forums because everyone’s trying to make their own “hello world” tests. It fits here since AI is basically opening a new world for older languages too.
User avatar
Skipper
User
User
Posts: 71
Joined: Thu Dec 19, 2024 1:26 pm
Location: Europe

Re: Can current AI understand PureBasic and....

Post by Skipper »

Can current AI "understand"....

No, it's just like a weather forecast in that its responses are based on likelihoods of being correct. There is no real understanding involved, it's merely a text transformation based on probabilities...

Using PureBasic 6.21 on:
  • Win-11 on x64 XEON
  • Mint Linux on x64 i3 and on x64 i5
  • MacOS Monterey on x64 MacBook Pro
  • Various Raspberry Pi's

User avatar
tft
Enthusiast
Enthusiast
Posts: 101
Joined: Mon Dec 29, 2008 9:34 am

Re: Can current AI understand PureBasic and....

Post by tft »

##Deutsch
Ich habe jetzt mein erstes Tool zusammen mit ChatGPT gebaut.

Insgesamt etwa zwei Tage, rund 40 Stunden, umgesetzt in Python, weil einiges von dem, was ich machen wollte, in PureBasic so nicht sinnvoll oder sauber lösbar war.

Schon am ersten Abend habe ich gemerkt:
„Mach mal …“ funktioniert nicht.

Man muss sich die Arbeitsweise der KI aktiv zu eigen machen. Das bedeutet:

exakte Aufgabenbeschreibung

klare technische Vorgaben

vorher festgelegte Regeln, wie gearbeitet wird

Vor allem eine wichtige Erkenntnis:
Mitten im Projekt das Thema wechseln ist extrem schlecht, selbst wenn es nur eine scheinbar harmlose Frage zum Editor oder zur IDE ist. Ab diesem Moment wird der Workflow inkonsistent, und man verliert die Linie.

Am zweiten Tag habe ich das Ganze dann bewusst als Projekt behandelt.
Allerdings habe ich den Code konsequent von ChatGPT entwickeln lassen – und genau da liegt die nächste Falle:
Der Code ist plötzlich anders als zuvor, Funktionen fehlen, Dinge wurden implizit weggelassen. Und schon funktionieren Abhängigkeiten nicht mehr. Man verzettelt sich schneller, als man denkt.

Am dritten Tag habe ich deshalb komplett neu angesetzt:

klare, schriftlich festgelegte Vorgaben

andere Codebasis

feste Regeln (kein Themenwechsel, kein „nebenbei noch schnell“)

Heute, 12:00 Uhr, bin ich seit 07:00 Uhr dran – und:
👉 Das Tool macht genau das, was es soll.

Allerdings nicht ohne Preis.
Ich habe dafür gefühlt einige Gemüts-Stahlseile im Kopf geopfert.

Fazit für mich:
ChatGPT ist kein „Code-Automat“, sondern ein hochleistungsfähiger, aber extrem strukturabhängiger Projektpartner.
Wer das akzeptiert und entsprechend arbeitet, kann sehr schnell sehr weit kommen.
Wer es wie eine Suchmaschine behandelt, scheitert.

## Englisch
I have now built my first tool together with ChatGPT.

In total, about two days – roughly 40 hours, implemented in Python, because some of the things I wanted to do are not feasible or cleanly solvable in PureBasic.

Already on the first evening, I realized one thing very clearly:
“Just do it…” does not work.

You have to actively adapt to the working method of the AI. That means:

precise task descriptions

clear technical specifications

predefined rules for how the work is done

One especially important realization:
Changing the topic in the middle of a project is extremely harmful, even if it’s just a seemingly harmless question about the editor or the IDE. From that moment on, the workflow becomes inconsistent and you lose direction.

On the second day, I deliberately treated the whole thing as a project.
However, I let ChatGPT generate the code consistently – and that is where the next trap lies:
The code suddenly becomes different from before, functions are missing, things are implicitly omitted. Dependencies break, and you get tangled up faster than you expect.

On the third day, I started over completely:

clear, written specifications

a different code base

strict rules (no topic switching, no “just quickly doing something on the side”)

Today, at 12:00, I’ve been working since 07:00 – and:
👉 The tool does exactly what it is supposed to do.

However, not without a price.
I feel like I have sacrificed quite a few mental steel cables in my head.

My conclusion:
ChatGPT is not a “code automaton,” but a high-performance, highly structure-dependent project partner.
Those who accept this and work accordingly can get very far, very quickly.
Those who treat it like a search engine will fail.
TFT seid 1989
Aktuelles Projekte : Driving School Evergarden
YouTube : Pure Basic to go
FaceBook : Temuçin SourceMagic Games
DISCORD : SourceMagic
W10 , i9 9900K ,32 GB Ram , GTX Titan , 3 Monitore FHD
ARDUINO Freak :-)
Post Reply