On Thu, 31 May 2018, Steve G via Gambas-user wrote:
> If you really are so good, then prove me wrong and actually show it to me
> don't say oh it's here or it's there put it right out there and show it to
> me if you think I'm so stupid prove it by doing that. Otherwise shut up
> and just answer the questions.
>

Now that's a foul attitude if I have ever seen one.

In addition to what Jussi suggests, you also have select(2) at your
disposal. You can create however many sockets fit into your Gambas
process, have them do their work in the background and report results
via events. Gambas multiplexes file descriptor events, without
multithreading. While all of that happens, the GUI will be accessible
as well.

Finally, you should know that this mailing list has been deprecated
a while ago. The new one is at https://lists.gambas-basic.org/listinfo/user

About the underlying problem: Some people may know better than me,
but multithreading support in Gambas is pretty much out of the question
on a technical basis, if you ask me and unless _lots_ of work is put
into that feature. If you look into the interpreter's very core sometime,
you'll see quite some global variables -- at the very least those have
have to be refactored, not considering more subtle races. But the real
problems start with the components. Libraries which need special care when
being multithreaded aside, the way many native classes implement virtual
properties, for example, is just an endless supply of either data
corruption or deadlocks as soon as you multithread. Of course, user programs
will be affected as well. Quite some code relies on that fact that non-
native events are synchronous, that the Raise keyword acts like a function
call. And you can't blame the users for that. Gambas is a BASIC language
and it doesn't have any constructs/datatypes dedicated to concurrency.

PS: Notice how I'm not falling for your "I bet you can't prove me wrong!!"
trick.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to