Re: Threading or similar in LiveCode

2012-07-20 Thread Bob Sneidar
Thanks for that! BTW, might I suggest brightening up the background color of the web page? Contrast is your friend when putting text on color. It kind of hurt to read that. Just a suggestion. Bob On Jul 20, 2012, at 3:31 PM, Alex Tweedly wrote: > That's similar to what I did with "taskRunne

Re: Threading or similar in LiveCode

2012-07-20 Thread Colin Holgate
Similar work is being done in Flash Player. They call the feature "concurrency workers". Here's the one paragraph description: "Concurrency (ActionScript Workers) — This feature enable developers to off-load certain tasks like high-latency operations and long-running computations to “workers”.

Re: Threading or similar in LiveCode

2012-07-20 Thread Alex Tweedly
That's similar to what I did with "taskRunner" - a (could be headless) server which would accept commands, including - load stack - dispatch command to stack and would return the results of those commands - a client library to find and send commands to any such servers avai

Re: Threading or similar in LiveCode

2012-07-20 Thread Dar Scott
As others have mentioned you can use an event style or use 'open process'. Unfortunately, the later does not (yet) have callbacks. But, it has gotten a recent overhaul. You can do timing and polling with 'send'. I encourage trying the event style. Your contiguous script without a 'wait wi

Re: Threading or similar in LiveCode

2012-07-20 Thread Alejandro Tejada
you could animate smoothly 8 or more different figures in a single card, I would like to see the stack. :-D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Threading-or-similar-in-LiveCode-tp4652468p4652508.html Sent from the Revolution - User mai

Re: Threading or similar in LiveCode

2012-07-20 Thread Dr. Hawkins
On Fri, Jul 20, 2012 at 8:49 AM, Bob Sneidar wrote: > What I came up with is a standalone that accepted Applescript commands. I > could show, > hide, launch, quit, relocate the "window" and set the message, all through > Applescript. I've been toying with the idea of some kind of "headless" sta

Re: Threading or similar in LiveCode

2012-07-20 Thread Mike Kerner
Bob, Your "poor man's MT is exactly the way many single-threading environments work. You can also, if you are up for it, have several iterations of LC Server that are spawnable - come to think of it, didn't someone write a LC web server that does just that? While I like being able to multi-thread

Re: Threading or similar in LiveCode

2012-07-20 Thread Peter Haworth
I've never tried it but I think the open process/read from process/write to process commands do that. Pete lcSQL Software On Fri, Jul 20, 2012 at 8:49 AM, Bob Sneidar wrote: > I will say that LC could definitely use some native method that would > allow communications fr

Re: Threading or similar in LiveCode

2012-07-20 Thread Bob Sneidar
I am not sure this will help, but I came up with the idea of having a separate standalone do certain tasks for me. For instance, I noticed that an animated GIF would stutter and stall while Livecode was executing script. I wanted it to be smooth. I wanted some kind of progress indicator while I

Re: Threading or similar in LiveCode

2012-07-20 Thread Rod McCall
Dear Scott and Ken, Thanks for your replies. I will try out the solutions suggested. Right now the control console will only really be used to send/receive events as there is another simulation server and actual graphical environment - the AI for the cars will be handled elsewhere not in LiveCode.

Re: Threading or similar in LiveCode

2012-07-20 Thread Scott Rossi
Hi Rod: I'm don't use Python but if you're referring to threading as in multithreading -- running multiple threads simultaneously -- LiveCode doesn't have this. One way you can *kind of* simulate threading is using the send command: send "xyz" to button 5 in 20 millisecs . This doesn't accompli

Re: Threading or similar in LiveCode

2012-07-20 Thread Ken Corey
Send can mimic this behaviour. You wouldn't want each car in its own 'thread', to be sure, as send has a certain amount of overhead...but it's a simple matter to set up recurring events: on animate --do some animation stuff here -- if your drawing loop can take a variable amount of time

Threading or similar in LiveCode

2012-07-20 Thread Rod McCall
Dear LiveCoders, As I said in a previous email I am returning to LiveCode after a few years (well seven to be exact) so am a little rusty. Anyway right now we are implementing a car simulator environment of which we will use LiveCode as the control console for the simulation - at least that is the