Re: Code translation anyone ?
I think its a great task for an AI with a greater context window. Don't give up yet. CHat GPT can be prompted to be less verbose. You can also use the openai playground, upload your php, and use the model with the bigger context window. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Code translation anyone ?
Le 2024-03-15 12:28, Christer Pyyhtiä via use-livecode a écrit : Have you tried OpenAi or Gemini? Once just for fun tried asking OpenAI to create a structure for a problem using LiveCode, and the result was acceptable giving a coarse structure for the solving the problem. Yes, I have tried ChatGPT, but my problem is that my php weights 500 Kb, so I started to proceed chunk by chunk, and each time ChatGPT adds lengthy comments and explanations from the php manual... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Code translation anyone ?
Just an ideal hacker problem. Have you tried OpenAi or Gemini? Once just for fun tried asking OpenAI to create a structure for a problem using LiveCode, and the result was acceptable giving a coarse structure for the solving the problem. Maybe those generative tools would recognise FoxPro as well. Please tell what you’ll find out. Reds Christer Pyyhtiä christe...@gmail.com > On 15. Mar 2024, at 17.15, Bob Sneidar via use-livecode > wrote: > > I tried to write a code converter from dBase (Foxpro) to what is now called > Livecode. I ran into at least one insurmountable issue. I forget exactly what > it was, but it was along the lines of certain conventions used in Foxpro that > had no parallel in Livecode or meant something totally different in Livecode. > For instance, Foxpro uses a convention called Macro Substitution, where > preceding a variable with an ampersand would at runtime replace the variable > with its contents. For instance: > > x = "Fox" > ? "” > > Would produce FoxPro. The trouble was that ampersand is *ALSO* used for > concatenation! How can I tell? Periods inside quotes are just periods > *unless* they are used in Macro Substitution. > > There were a couple others, like using $ for certain things. I came to the > conclusion that the process would be more complex than I wanted, if at all > possible, and in the end it would be easier to simple reproduce the > application from scratch. > > > Bob S > > > >> On Mar 15, 2024, at 7:39 AM, jbv via use-livecode >> wrote: >> >> One detail I forgot in my question : code translation using >> ChatGPT or any other AI. >> >> Thanks, >> jbv >> >> >> Le 2024-03-15 10:36, jbv via use-livecode a écrit : >>> Hi list, >>> Has anyone tried to translate code from 1 version to >>> another, or from 1 language to another ? >>> Like from php 5 to php 8, or from php to LC ? >>> My question concerns mainly server scripts. >>> Thanks, >>> jbv >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Code translation anyone ?
I tried to write a code converter from dBase (Foxpro) to what is now called Livecode. I ran into at least one insurmountable issue. I forget exactly what it was, but it was along the lines of certain conventions used in Foxpro that had no parallel in Livecode or meant something totally different in Livecode. For instance, Foxpro uses a convention called Macro Substitution, where preceding a variable with an ampersand would at runtime replace the variable with its contents. For instance: x = "Fox" ? "” Would produce FoxPro. The trouble was that ampersand is *ALSO* used for concatenation! How can I tell? Periods inside quotes are just periods *unless* they are used in Macro Substitution. There were a couple others, like using $ for certain things. I came to the conclusion that the process would be more complex than I wanted, if at all possible, and in the end it would be easier to simple reproduce the application from scratch. Bob S > On Mar 15, 2024, at 7:39 AM, jbv via use-livecode > wrote: > > One detail I forgot in my question : code translation using > ChatGPT or any other AI. > > Thanks, > jbv > > > Le 2024-03-15 10:36, jbv via use-livecode a écrit : >> Hi list, >> Has anyone tried to translate code from 1 version to >> another, or from 1 language to another ? >> Like from php 5 to php 8, or from php to LC ? >> My question concerns mainly server scripts. >> Thanks, >> jbv >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Code translation anyone ?
One detail I forgot in my question : code translation using ChatGPT or any other AI. Thanks, jbv Le 2024-03-15 10:36, jbv via use-livecode a écrit : Hi list, Has anyone tried to translate code from 1 version to another, or from 1 language to another ? Like from php 5 to php 8, or from php to LC ? My question concerns mainly server scripts. Thanks, jbv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Code translation anyone ?
Hi list, Has anyone tried to translate code from 1 version to another, or from 1 language to another ? Like from php 5 to php 8, or from php to LC ? My question concerns mainly server scripts. Thanks, jbv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode