Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who uses Chen's product?
Message
From
25/07/2019 07:34:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/07/2019 16:14:51
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01663044
Message ID:
01669735
Views:
99
>>>>>>Actually VFP can sometimes surprise you in displaying some multithreaded behavior - when you call a function which is a wrapper over API calls to the OS (handling files mostly, e.g. renaming, moving etc), it may report that it's done while it actually isn't. The task is just offloaded to OS's thread.
>>>>>
>>>>>I would be happy to be surprised, but unfortunate.
>>>>>Here is a real world scenario:
>>>>>For a slow network, I cache some slow moving data from remote SQL Server, locally to an SQLite database. Initial download of data might be slow. Say:
>>>>>Table1 is downloaded in 1 sec, written locally in 0.8 sec
>>>>>Table2 is downloaded in 60 sec, written locally in 40 sec
>>>>>Table3 is downloaded in 50 sec, written locally in 30 sec
>>>>>Table4 is downloaded in 1 sec, written locally in 0.7 sec
>>>>>
>>>>>Total time is 180+ seconds. I could save at least 60 seconds if I could do this on multiple threads.
>>>>>(well this is done once, but you know, still I would like it to be fast)
>>>>
>>>>Hmm... how about launching any number of vfp.application objects and delegating the task to them - not sure whether they'd execute in the same thread. Wouldn't that be an out-of-process COM object?
>>>
>>>See my reply to Cetin - doable, but not even close to promises and even further away from asynch await.
>>
>>As you said, not even close :)
>>I wasn't seeking if it is doable, I can do it if I waste too much effort. I was asking if there was a support to do it like a piece of cake, say as in Go.
>
>True.
>Go implemented a smattering of ModulaII (or perhaps Oberon) concepts well before promises and asynch..await rescued Node.Js warriors from callback hell.
>
>Buuut.... a bit unfair to ask for such concepts in vfp, ended years earlier. The concepts, hooks and examples buried deeply inside vfp (mentioned in my direct post to you) are quite astonishing for a 4GL / database scripting language to have been implemented right inside without forcing users back onto C.
>
>Adding new keywords for such concepts perhaps too much to ask for in a vfp - clone / enhancement ;-)

Yes but I wasn't asking for them to exist in VFP, I was just asking "that new thing" had it or not (it is new enough to consider multi cores).
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform