C language > Graphics programming

Squeezing some cool from Windows GDI

<< < (5/5)

John Z:

--- Quote from: MrBcx on August 23, 2023, 05:49:57 PM ---BCX is incapable of performing most forms of magic and miracles.

--- End quote ---

:) any sufficiently advanced technology will look like magic to the less advanced (paraphrasing)
i.e. magic to me ....  ;))

John Z

WiiLF23:

--- Quote from: MrBcx on August 23, 2023, 05:49:57 PM ---
--- Quote from: John Z on August 23, 2023, 02:45:28 PM ---
I recall many years ago I tried to dump my VB5 code straight into BCX

John Z

--- End quote ---

BCX is incapable of performing most forms of magic and miracles.

But it does a lot of other stuff really well.   ;)

--- End quote ---

Implement a AI library, and it will more than possible. At this time, you can simply paste VBx code into GPT for example, and convert it to pure C in a matter of seconds depending on the lines generated. Your application should utilize this to support advanced conversion supporting the entire pre-CLR days.

My application carries a conversion mixture of Python, C++ & BASIC (all converted to C). GPT 3.5 made this easily available. No need for the newer data set (GPT-4).

Search for a library in your language of choice, work the prompt parameters and parsing procedures, and you will be well on your way.

What I don't know is if you need to detect the code format, and trigger pre-defined prompts while including the code in question, because you need to establish the request on the basis of "Convert this <language> code to BASIC \n\n <code insert, from file, etc).

As you can see in the last statement, you can allow your application to easily convert most languages <--> back and forth. But since this to tailored to generate BASIC code, that is where the focus would be met when interacting with the library.

Just a thought.

John Z:
Thanks WiiLF23!

Hadn't thought of trying this.  I may give it a try with a few aged VB programs just to see.  I have some VB using WINSOCK so that will be interesting....

John Z

MrBcx:

--- Quote from: WiiLF23 on April 12, 2024, 04:45:14 AM ---
--- Quote from: MrBcx on August 23, 2023, 05:49:57 PM ---
--- Quote from: John Z on August 23, 2023, 02:45:28 PM ---
I recall many years ago I tried to dump my VB5 code straight into BCX

John Z

--- End quote ---

BCX is incapable of performing most forms of magic and miracles.

But it does a lot of other stuff really well.   ;)

--- End quote ---

Implement a AI library, and it will more than possible. At this time, you can simply paste VBx code into GPT for example, and convert it to pure C in a matter of seconds depending on the lines generated. Your application should utilize this to support advanced conversion supporting the entire pre-CLR days.

My application carries a conversion mixture of Python, C++ & BASIC (all converted to C). GPT 3.5 made this easily available. No need for the newer data set (GPT-4).

Search for a library in your language of choice, work the prompt parameters and parsing procedures, and you will be well on your way.

What I don't know is if you need to detect the code format, and trigger pre-defined prompts while including the code in question, because you need to establish the request on the basis of "Convert this <language> code to BASIC \n\n <code insert, from file, etc).

As you can see in the last statement, you can allow your application to easily convert most languages <--> back and forth. But since this to tailored to generate BASIC code, that is where the focus would be met when interacting with the library.

Just a thought.

--- End quote ---

I've used ChatGPT, Gemini, LLama, and even You.com to produce code directly or by conversion.  Because ChatGPT
allows for default custom instructions, it tends to generate better BCX code.  The other AI's do a worse job but still
fulfill useful purposes of cross-checking other AI's code.  Right now, these AI tools can be quite helpful at helping
to create prototypes but they are all still in their infancy, so caution must be exercised before relying on their outputs.


Vortex:
Hello,

I agree with MrBcx. We must be careful while intepreting the output of the artificail intelligence. One can receive tricky replies to questions related to assembly programming.

Navigation

[0] Message Index

[*] Previous page

Go to full version