Re: Is syntax a dead issue?

2022-07-25 Thread Geoff Canyon via use-livecode
On Mon, Jul 25, 2022 at 12:08 AM Jacques Clavel via use-livecode < use-livecode@lists.runrev.com> wrote: > just curious : what about using LCB for the repeat loop ? > > jc > I confess I haven't touched LCB ___ use-livecode mailing list

Re: Is syntax a dead issue?

2022-07-25 Thread Geoff Canyon via use-livecode
On Mon, Jul 25, 2022 at 12:00 AM jbv via use-livecode < use-livecode@lists.runrev.com> wrote: > Just curious : why do you use "read from file F for 1 line" ? > Instead, why don't you read the file in one go, load the content > into a variable and then use "for each line j in myVar" ? > Wouldn't

Re: Is syntax a dead issue?

2022-07-25 Thread Jacques Clavel via use-livecode
just curious : what about using LCB for the repeat loop ? jc Le lun. 25 juil. 2022 à 08:44, Geoff Canyon via use-livecode < use-livecode@lists.runrev.com> a écrit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line

Re: Is syntax a dead issue?

2022-07-25 Thread jbv via use-livecode
Just curious : why do you use "read from file F for 1 line" ? Instead, why don't you read the file in one go, load the content into a variable and then use "for each line j in myVar" ? Wouldn't that run faster ? Best, jbv Le 2022-07-25 02:42, Geoff Canyon via use-livecode a écrit : As a meta

Re: Is syntax a dead issue?

2022-07-25 Thread Geoff Canyon via use-livecode
As a meta point, I wrote a version closer to the actual requirements -- lowercase everything, process an external input line by line to allow for arbitrary input size. The result is about 8-10x slower than most other languages -- not as bad as I feared, not as good as I hoped. Here's the code for

Is syntax a dead issue?

2022-07-25 Thread Geoff Canyon via use-livecode
On this Hacker News thread , I read this programming interview question . Roughly, the challenge is to count the frequency of words in input, and return a list with counts, sorted from most to least frequent.