ChatGPT examples

2023-01-19 Thread Geoff Canyon via use-livecode
I tested three use cases, with variations, using ChatGPT for (live)code generation. There was a lot of back and forth. In the end, I solved all the problems I set, but in some cases I had to hold ChatGPT's hand pretty tightly. That said, I learned some things as well -- about LiveCode. ChatGPT's

Re: Maximum field size

2023-01-19 Thread Bob Sneidar via use-livecode
... ok. But first, can you provide an example of ANY application that displays that much text or that many lines in a field? A-Whaaay back when, Microsoft ran into this problem with large Word and Excel files. They got around it by developing a paging system that only kept in memory a

Re: Maximum field size

2023-01-19 Thread Niggemann, Bernd via use-livecode
I tried to put text into a field on an arm MacBook Pro 32 GB memory, LC 9.6.9 rc2 running natively. I realise that this is 64 bit. I took a couple of lines of Lorem Ipsum and put it into a field. Then I put the formattedText of that field into the field to force lineFeeds at every visible

Re: Maximum field size

2023-01-19 Thread Paul Dupuis via use-livecode
All the responses about crashing - because lines are too long (exceeding 65K chars or 32K x in line length) or there are too many lines (and so 32,767px of scrollable height is not enough) - strongly indicated that an overhaul of the standard field object is needed in LC 10, or, more likely,

RE: Maximum field size

2023-01-19 Thread Ralph DiMola via use-livecode
Craig, You are probably exceeding the 32k pixel limit of the field height. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Craig Newman via use-livecode

Re: Maximum field size

2023-01-19 Thread Craig Newman via use-livecode
Richard. As I mentioned, I wanted to make sure the field had scroll capabilities. ;-) > On Jan 19, 2023, at 12:54 PM, Richard Gaskin via use-livecode > wrote: > > David Epstein wrote: > > > How many rows or columns or characters can reasonably be displayed > > in a LiveCode field? A 1.39 GB

Re: Maximum field size

2023-01-19 Thread Craig Newman via use-livecode
Guys, (and Jacque) I made my test with lines of 14 chars. Lots of lines. LC crashes. Craig > On Jan 19, 2023, at 10:10 AM, Craig Newman wrote: > > The stack I made to test this became corrupted after a couple of runs. I > guess the way to do this is to increase the length until a crash,

Re: Maximum field size

2023-01-19 Thread Richard Gaskin via use-livecode
David Epstein wrote: > How many rows or columns or characters can reasonably be displayed > in a LiveCode field? A 1.39 GB text file seems pretty clearly to > surpass the limit, but how much do I need to subdivide it? Jacque noted the machine limits, but I'm curious about a human question: At

Re: Maximum field size

2023-01-19 Thread J. Landman Gay via use-livecode
The theoretical field text limit is about 4 GB but the practical limit depends on available RAM. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On January 19, 2023 9:12:31 AM Craig Newman via use-livecode wrote: The stack I made to

Re: Maximum field size

2023-01-19 Thread Mark Wieder via use-livecode
On 1/19/23 07:26, Niggemann, Bernd via use-livecode wrote: From the User Guide: Maximum length of a line in a field: 65,536 characters storage No more than 32,786 pixels wide for display If you put lines longer above limits then LC will hang/crash The amount of lines a field can hold is a

Re: Maximum field size

2023-01-19 Thread David Epstein via use-livecode
Thanks to Bernd for this: > Maximum length of a line in a field: > 65,536 characters storage > No more than 32,786 pixels wide for display This seems to mean we can have a 65k long line only if each character’s width is around half a pixel. And that if the character width is 10 pixels the

Re: Maximum field size

2023-01-19 Thread Niggemann, Bernd via use-livecode
>> But when I tried to put that variable into a field, LC crashed. When I tried >> to put 140 MB into a field, same crash. I did not continue to reduce the >> length of that variable until the field could be loaded. Craig, >From the User Guide: Maximum length of a line in a field: 65,536

RE: Maximum field size

2023-01-19 Thread Ralph DiMola via use-livecode
David, I believe the field limit for X and Y is 32767 pixels. Or is it 65535? 32767 sticks in my head. I have run into this limit a few times and had to chunk the data in/out the field as the user scrolls. As Craig noted variables don't have this limit. Ralph DiMola IT Director Evergreen

Re: Maximum field size

2023-01-19 Thread Craig Newman via use-livecode
The stack I made to test this became corrupted after a couple of runs. I guess the way to do this is to increase the length until a crash, not decrease. > On Jan 19, 2023, at 10:09 AM, Craig Newman wrote: > > But I assume that there is a value where a field can be loaded and display a > large

Re: Maximum field size

2023-01-19 Thread Craig Newman via use-livecode
But I assume that there is a value where a field can be loaded and display a large amount of text. It would be simple to find that value if LC didn’t crash each time it was attempted along the way. Craig > On Jan 19, 2023, at 10:06 AM, Craig Newman wrote: > > David. > > You want to display

Re: Maximum field size

2023-01-19 Thread Craig Newman via use-livecode
David. You want to display 1.39 GB in a field? Will it scroll? I made a quick test stack that created a variable with a length of 1.4 GB. No problem. But when I tried to put that variable into a field, LC crashed. When I tried to put 140 MB into a field, same crash. I did not continue to

Re: ChatGPT conversation

2023-01-19 Thread Mark Smith via use-livecode
I suppose like a love affair, it can get addicting… I tried a few more queries in different programming languages to see how it would do. My queries were not very challenging, but it scored 10 out of 10 for both SAS and SQL (ie. both worked the first time). For python, when I asked it to write