Re: A question about the compiler to come

2022-03-03 Thread Tom Glod via use-livecode
I meant to include link to this: https://livecode.com/script-compiler-project-page/ On Thu, Mar 3, 2022 at 8:13 PM Tom Glod wrote: > Hi Sean, one the page for the compiler project and Kevin talks about the > nature of Livecode being interpreted . currently the script in memory > is just

Re: A question about the compiler to come

2022-03-03 Thread Tom Glod via use-livecode
Hi Sean, one the page for the compiler project and Kevin talks about the nature of Livecode being interpreted . currently the script in memory is just obfuscated, and a sufficiently motivated person or group of people could eventually find what they want to find. script passwords are useful

Re: Have we lost the Oracle driver?

2022-03-03 Thread matthias rebbe via use-livecode
LC with licensed pro features has native Oracle support. So Oracle should be the correct keyword. And as Ben already stated he has pro feature licenesed and want to use the built in Oracle drivers. > Am 03.03.2022 um 23:45 schrieb Bob Sneidar via use-livecode > : > > ODBC is the driver

Re: Speed up a slow loop

2022-03-03 Thread Bob Sneidar via use-livecode
I am not sure if Android or MacOS can use sqLite memory databases, but when I need to iterate through a large array, I first convert the array to an sqLite memory database, then query it, which is a gazillion times faster than iterating through an array. I have functions which create an

Re: Have we lost the Oracle driver?

2022-03-03 Thread Bob Sneidar via use-livecode
ODBC is the driver type. Are you trying to use Oracle as the driver type? Bob S > On Mar 3, 2022, at 09:14 , Ben Rubinstein via use-livecode > wrote: > > Hi Panos, > > Alas, that's made no difference. > > Does this error message "revdberr,invalid database type" actually indicate a >

Re: A question about the compiler to come

2022-03-03 Thread Sean Cole via use-livecode
Tom What security imp[lications do you perceive it to overcome? Sean On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > Pardon my lingo but this is f#%%ing huge Just last week, I was > thinking about the nature of livecode and that it comes

Re: Speed up a slow loop

2022-03-03 Thread Ken Ray via use-livecode
BTW you an also use this "split" trick to remove dupes (although you lose the order of the word list): function stripDupes pWordList split pWordList by cr and tab return (the keys of pWordList) end stripDupes on mouseUp put stripDupes("test" & cr & "ball" & cr & "test" & cr & "orange")

Re: Speed up a slow loop

2022-03-03 Thread Ken Ray via use-livecode
Jacque, How about using the 'difference' command? Here's a simple example: on mouseUp put "true" into tDict["test"] put "true" into tDict["word"] put "true" into tDict["ball"] put "test" & cr & "ball" & cr & "boat" & cr & "unicorn" into tUserWords split tUserWords by cr and

Re: A question about the compiler to come

2022-03-03 Thread Tom Glod via use-livecode
Pardon my lingo but this is f#%%ing huge Just last week, I was thinking about the nature of livecode and that it comes with some pretty profound security implications. I'm sSuper happy to see this machine code compiler coming to livecode. This is likely to directly influence the amount of

Re: Speed up a slow loop

2022-03-03 Thread J. Landman Gay via use-livecode
On 3/3/22 2:00 PM, Tom Glod via use-livecode wrote: But what prevents you from loading all your data into an array? and just iterating over the keys or index of an array? vs the lines of a long list.? That will yield the fastest performance. Right, it's an array, and I don't iterate. I just

Re: Speed up a slow loop

2022-03-03 Thread J. Landman Gay via use-livecode
On 3/3/22 12:53 AM, Mark Waddingham via use-livecode wrote: If the difference between `the milliseconds` before the loop, and then after is 0 or 1 millisecond - then that is how long it is taking. This means the issue is somewhere else. Are you sure there isn't anything you are doing either

Re: A question about the compiler to come

2022-03-03 Thread Tom Glod via use-livecode
Interesting. I cannot find this email from Kevin, can someone please forward it to me or direct me to where I can read it? Thanks, Tom On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < use-livecode@lists.runrev.com> wrote: > According to Kevin’s email: > > Would this script

Re: Speed up a slow loop

2022-03-03 Thread Tom Glod via use-livecode
This is a long thread and I can't read it at the moement,, and maybe you have answered this. But what prevents you from loading all your data into an array? and just iterating over the keys or index of an array? vs the lines of a long list.? That will yield the fastest performance. I should

Re: Have we lost the Oracle driver?

2022-03-03 Thread Ben Rubinstein via use-livecode
Hi Panos, Alas, that's made no difference. Does this error message "revdberr,invalid database type" actually indicate a failure to load the driver, or can it also occur if the driver was loaded but there were issues initialising it, or some other issues connecting to the given server and

Re: Have we lost the Oracle driver?

2022-03-03 Thread panagiotis m via use-livecode
Hello Ben, I _think_ you just have to create a symlink to this version of the libclntsh: 1. Open a Terminal 2. Navigate to the instant client directory, e.g. suppose it is in your Downloads: cd ~/Downloads/instantclient_11_2 3. Create the symlink: ln -s libclntsh.dylib.11.1 libclntsh.dylib

Re: A question about the compiler to come

2022-03-03 Thread Rick Harrison via use-livecode
According to Kevin’s email: Would this script compiler work on all platforms? All platforms will benefit. Code will run faster and readable scripts will be removed whatever platform you are targeting. Rick > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode > wrote: > > Dear

A question about the compiler to come

2022-03-03 Thread francois.chaplais via use-livecode
Dear all You probably have received some mail asking for funding concerning a compiler to come. I would like to know if this compiler can target MacOS/ARM processor on the desktop. Best regards, François ___ use-livecode mailing list

Re: Speed up a slow loop

2022-03-03 Thread Pi Digital via use-livecode
I usually test this by using put the milliseconds into tMs …loop code… put the milliseconds - tMs This shows me a record of how long that loop took and helps me narrow down where the slow downs are occurring. You can do it within the loop too and keep a record for each iteration and see if it

Re: Have we lost the Oracle driver?

2022-03-03 Thread Ben Rubinstein via use-livecode
Hi Panos, LiveCode 9.6.6 on macOS 10.15.7 (Catalina). I've downloaded the Oracle stuff but it doesn't seem to have an install script - where should I put "libclntsh.dylib.11.1"? thanks for your help, Ben On 02/03/2022 12:58, panagiotis m via use-livecode wrote: Hello Ben, I take it you

can I filter lines with a list of alternative OR strings?

2022-03-03 Thread David V Glasgow via use-livecode
Hi Folks, I can filter text using a single term plus a numerical range s eg: *re 1[0-5]* matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 But is there a form where the alternatives are also text? eg something like: *big [“dog”, “cat”, “fish”]* The above searches