One way to do it would be running python "service" executable, and you send
it the code via socket to execute.
In python the "do" equivalent is "exec()" ... although obviously the
service will need access to the data that is involved with the code.
Then you return the result to lc in whatever way w
> On 22 Jul 2023, at 18:13, Geoff Canyon via use-livecode
> wrote:
>
> Both are turing complete, so there's technically nothing one can do that
> the other can't, but some examples:
>
Technically, that’s not correct. Simply being Turing complete doesn’t mean it
can do everything you might
:-) For example, interfacing to machine learning (& associated) libraries for
creating + running ML models (in my test case).
> On 23 Jul 2023, at 1:30 am, use-livecode-requ...@lists.runrev.com wrote:
>
> Probably not much, but there are a lot of libraries that exist for python
> that you might
Both are turing complete, so there's technically nothing one can do that
the other can't, but some examples:
Suppose you want to generate prime numbers. In LiveCode you might write
this algorithm: https://github.com/gcanyon/primelist
Generating the primes up to 1,000,000 takes over 1.3 seconds on
Matthias,
I'll try it.
Thanks so much for your help.
Bill
William A. Prothero, PhD
Prof Emeritus, Dept of Earth Science
University of California, Santa Barbara
> On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode
> wrote:
>
> Hello Bill,
>
> since V8 or so tsNET external is include
Probably not much, but there are a lot of libraries that exist for python that
you might want to use to save time.
> 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode
> :
>
> Out of curiosity, what can be done in in Python that cannot be done in LC
> Script?
>
> Sent from my iPhone
On 22/07/2023 04:29, Bob Sneidar via use-livecode wrote:
Use sockets to test the connection.
Open socket to
If the result is not empty then…
Close socket
Hmmm - I have tried it but not got reliable results.
According to the dictionary that won't work reliably. Dictionary says:
(4.5) The
Hello Bill,
since V8 or so tsNET external is included in any commercial/business license.
Even put URL "ftp: or http: will be executed with tsNET by liburl.
So in case you did not manually disabletsNET for your app, you could use
tsNetSetTimeouts to set timeout values.
By default tsNET does n