gambas-user Mailing List for Gambas (Page 4)
Brought to you by:
gambas
This list is closed, nobody may subscribe to it.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(24) |
Aug
(23) |
Sep
(15) |
Oct
(6) |
Nov
(52) |
Dec
(48) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(169) |
Feb
(110) |
Mar
(90) |
Apr
(123) |
May
(254) |
Jun
(243) |
Jul
(190) |
Aug
(339) |
Sep
(142) |
Oct
(72) |
Nov
(300) |
Dec
(142) |
| 2004 |
Jan
(285) |
Feb
(548) |
Mar
(442) |
Apr
(424) |
May
(338) |
Jun
(324) |
Jul
(393) |
Aug
(442) |
Sep
(460) |
Oct
(249) |
Nov
(285) |
Dec
(370) |
| 2005 |
Jan
(520) |
Feb
(316) |
Mar
(524) |
Apr
(228) |
May
(217) |
Jun
(355) |
Jul
(300) |
Aug
(331) |
Sep
(264) |
Oct
(252) |
Nov
(264) |
Dec
(297) |
| 2006 |
Jan
(430) |
Feb
(288) |
Mar
(436) |
Apr
(248) |
May
(270) |
Jun
(188) |
Jul
(369) |
Aug
(574) |
Sep
(267) |
Oct
(353) |
Nov
(171) |
Dec
(127) |
| 2007 |
Jan
(144) |
Feb
(103) |
Mar
(172) |
Apr
(244) |
May
(299) |
Jun
(145) |
Jul
(237) |
Aug
(269) |
Sep
(232) |
Oct
(341) |
Nov
(314) |
Dec
(264) |
| 2008 |
Jan
(767) |
Feb
(369) |
Mar
(678) |
Apr
(403) |
May
(379) |
Jun
(334) |
Jul
(301) |
Aug
(258) |
Sep
(476) |
Oct
(345) |
Nov
(412) |
Dec
(381) |
| 2009 |
Jan
(365) |
Feb
(327) |
Mar
(331) |
Apr
(468) |
May
(389) |
Jun
(376) |
Jul
(441) |
Aug
(719) |
Sep
(456) |
Oct
(410) |
Nov
(621) |
Dec
(509) |
| 2010 |
Jan
(552) |
Feb
(306) |
Mar
(336) |
Apr
(389) |
May
(273) |
Jun
(172) |
Jul
(181) |
Aug
(225) |
Sep
(490) |
Oct
(219) |
Nov
(468) |
Dec
(470) |
| 2011 |
Jan
(513) |
Feb
(306) |
Mar
(404) |
Apr
(437) |
May
(357) |
Jun
(364) |
Jul
(350) |
Aug
(440) |
Sep
(466) |
Oct
(352) |
Nov
(284) |
Dec
(339) |
| 2012 |
Jan
(558) |
Feb
(406) |
Mar
(477) |
Apr
(488) |
May
(525) |
Jun
(457) |
Jul
(602) |
Aug
(722) |
Sep
(471) |
Oct
(502) |
Nov
(484) |
Dec
(338) |
| 2013 |
Jan
(286) |
Feb
(346) |
Mar
(222) |
Apr
(275) |
May
(277) |
Jun
(172) |
Jul
(325) |
Aug
(373) |
Sep
(295) |
Oct
(531) |
Nov
(437) |
Dec
(455) |
| 2014 |
Jan
(496) |
Feb
(383) |
Mar
(198) |
Apr
(213) |
May
(443) |
Jun
(417) |
Jul
(416) |
Aug
(226) |
Sep
(509) |
Oct
(476) |
Nov
(469) |
Dec
(412) |
| 2015 |
Jan
(465) |
Feb
(309) |
Mar
(430) |
Apr
(176) |
May
(224) |
Jun
(291) |
Jul
(224) |
Aug
(412) |
Sep
(1038) |
Oct
(621) |
Nov
(302) |
Dec
(526) |
| 2016 |
Jan
(196) |
Feb
(226) |
Mar
(238) |
Apr
(272) |
May
(309) |
Jun
(202) |
Jul
(210) |
Aug
(306) |
Sep
(272) |
Oct
(243) |
Nov
(232) |
Dec
(167) |
| 2017 |
Jan
(247) |
Feb
(185) |
Mar
(166) |
Apr
(127) |
May
(385) |
Jun
(356) |
Jul
(340) |
Aug
(485) |
Sep
(484) |
Oct
(85) |
Nov
(13) |
Dec
(13) |
| 2018 |
Jan
(16) |
Feb
(4) |
Mar
(9) |
Apr
(2) |
May
(38) |
Jun
(12) |
Jul
(17) |
Aug
|
Sep
(7) |
Oct
(11) |
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(5) |
Mar
|
Apr
(7) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
|
From: Tobias B. <ta...@gm...> - 2018-05-31 23:52:05
|
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 |
|
From: Steve G <sim...@ya...> - 2018-05-31 23:35:47
|
Or you could use terms that all peopleof all cultures understand and stop beating the dead horse. You used some kind of terminology specific to one culture that was your mistake I took it as an insult my mistake. Now the question is does this keep going or do we realize that we both spoke poorly. Sent from TypeApp On May 31, 2018, 15:04, at 15:04, Jussi Lahtinen <jus...@gm...> wrote: >Necromancing means act of rising very old thread back to life. It is >not >name calling, it is not insult. It was just stating the bad habit. And >the >old thread did contain the solution. You could have behaved and ask >elaboration to it. > > >Jussi > >On Fri, Jun 1, 2018 at 1:59 AM, Steve G <sim...@ya...> wrote: > >> You actually put an answer in earlier that makes sense something I >will >> look into. However your initial reply included name calling why don't >you >> take a look back at something called "necromancer". As you put it in >your >> reply it was very condescending and clearly meant to insult that is >why you >> got some teeth coming back at you. Otherwise thank you for the idea >on task >> now I can look up and learn about it. >> >> Sent from TypeApp <http://www.typeapp.com/r?b=13095> >> On May 31, 2018, at 14:54, Jussi Lahtinen <jus...@gm...> >> wrote: >>> >>> >>> It is amazing how programmers are so petty. I went through and >reread >>>> that thread and I don't see any answers in there to what I'm trying >to do. >>> >>> >>> "You can write two separated gambas applications that communicate to >each >>> other." >>> I explained it further with me second reply. >>> >>> >>> >>> >>>> By the way your insult was really not much of an insult. >>> >>> >>> What insult!?? >>> >>> >>> >>> >>>> You are a complete moron and socially inept. >>> >>> >>> OK... >>> >>> >>> >>>> Instead of name-calling why don't you attempt to use fats and >actually >>>> spell something out. >>>> >>> >>> What name calling!???? >>> >>> >>> >>> >>>> 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. although in your case I believe it >should >>>> just be shut up because clearly you have nothing useful to offer >anybody >>>> other than insults. >>>> >>> >>> What insult!?????? >>> What about instead of blaming me of something I never did, you would >>> politely ask what you did not get about my answer!?? >>> I helping you here for free. Do you want me to write your software >also >>> for free? >>> >>> >>> Jussi >>> >>> |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 23:04:09
|
Necromancing means act of rising very old thread back to life. It is not name calling, it is not insult. It was just stating the bad habit. And the old thread did contain the solution. You could have behaved and ask elaboration to it. Jussi On Fri, Jun 1, 2018 at 1:59 AM, Steve G <sim...@ya...> wrote: > You actually put an answer in earlier that makes sense something I will > look into. However your initial reply included name calling why don't you > take a look back at something called "necromancer". As you put it in your > reply it was very condescending and clearly meant to insult that is why you > got some teeth coming back at you. Otherwise thank you for the idea on task > now I can look up and learn about it. > > Sent from TypeApp <http://www.typeapp.com/r?b=13095> > On May 31, 2018, at 14:54, Jussi Lahtinen <jus...@gm...> > wrote: >> >> >> It is amazing how programmers are so petty. I went through and reread >>> that thread and I don't see any answers in there to what I'm trying to do. >> >> >> "You can write two separated gambas applications that communicate to each >> other." >> I explained it further with me second reply. >> >> >> >> >>> By the way your insult was really not much of an insult. >> >> >> What insult!?? >> >> >> >> >>> You are a complete moron and socially inept. >> >> >> OK... >> >> >> >>> Instead of name-calling why don't you attempt to use fats and actually >>> spell something out. >>> >> >> What name calling!???? >> >> >> >> >>> 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. although in your case I believe it should >>> just be shut up because clearly you have nothing useful to offer anybody >>> other than insults. >>> >> >> What insult!?????? >> What about instead of blaming me of something I never did, you would >> politely ask what you did not get about my answer!?? >> I helping you here for free. Do you want me to write your software also >> for free? >> >> >> Jussi >> >> |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 23:01:10
|
Btw, if you want to see practical example of one option what I explained (or at least tried to), then look how Task is used in Fractal named example. You can find it from software farm. And here you can find proper internet etiquette. https://www.youtube.com/user/commentiquette Jussi On Fri, Jun 1, 2018 at 1:53 AM, Jussi Lahtinen <jus...@gm...> wrote: > > It is amazing how programmers are so petty. I went through and reread that >> thread and I don't see any answers in there to what I'm trying to do. > > > "You can write two separated gambas applications that communicate to each > other." > I explained it further with me second reply. > > > > >> By the way your insult was really not much of an insult. > > > What insult!?? > > > > >> You are a complete moron and socially inept. > > > OK... > > > >> Instead of name-calling why don't you attempt to use fats and actually >> spell something out. >> > > What name calling!???? > > > > >> 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. although in your case I believe it should just >> be shut up because clearly you have nothing useful to offer anybody other >> than insults. >> > > What insult!?????? > What about instead of blaming me of something I never did, you would > politely ask what you did not get about my answer!?? > I helping you here for free. Do you want me to write your software also > for free? > > > Jussi > > |
|
From: Steve G <sim...@ya...> - 2018-05-31 23:00:10
|
You actually put an answer in earlier that makes sense something I will look into. However your initial reply included name calling why don't you take a look back at something called "necromancer". As you put it in your reply it was very condescending and clearly meant to insult that is why you got some teeth coming back at you. Otherwise thank you for the idea on task now I can look up and learn about it. Sent from TypeApp On May 31, 2018, 14:54, at 14:54, Jussi Lahtinen <jus...@gm...> wrote: >> It is amazing how programmers are so petty. I went through and reread >that >> thread and I don't see any answers in there to what I'm trying to do. > > >"You can write two separated gambas applications that communicate to >each >other." >I explained it further with me second reply. > > > > >> By the way your insult was really not much of an insult. > > >What insult!?? > > > > >> You are a complete moron and socially inept. > > >OK... > > > >> Instead of name-calling why don't you attempt to use fats and >actually >> spell something out. >> > >What name calling!???? > > > > >> 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. although in your case I believe it should >just >> be shut up because clearly you have nothing useful to offer anybody >other >> than insults. >> > >What insult!?????? >What about instead of blaming me of something I never did, you would >politely ask what you did not get about my answer!?? >I helping you here for free. Do you want me to write your software also >for >free? > > >Jussi |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 22:54:24
|
> It is amazing how programmers are so petty. I went through and reread that > thread and I don't see any answers in there to what I'm trying to do. "You can write two separated gambas applications that communicate to each other." I explained it further with me second reply. > By the way your insult was really not much of an insult. What insult!?? > You are a complete moron and socially inept. OK... > Instead of name-calling why don't you attempt to use fats and actually > spell something out. > What name calling!???? > 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. although in your case I believe it should just > be shut up because clearly you have nothing useful to offer anybody other > than insults. > What insult!?????? What about instead of blaming me of something I never did, you would politely ask what you did not get about my answer!?? I helping you here for free. Do you want me to write your software also for free? Jussi |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 22:48:19
|
No, I actually figured out how to explain it. Hopefully. Computer is state machine, means that it is always in one state at a time. Nothing in it happens simultaneously. Everything is processed in line, but order in the line can change. Even interruptions are processed in line, even when they are created by things outside of the computer. Jussi On Fri, Jun 1, 2018 at 1:37 AM, Jussi Lahtinen <jus...@gm...> wrote: > I don't know how to explain the issue shortly, if you are not familiar > with what state machine means. And if you do, I'm not sure what to explain > further. > > However, here is practical answer to your problem. Gambas itself doesn't > need to be multi-threaded to achieve such things. You can simply use > keyword Task to fork your program or write the program as two separated > programs and make them function as one via pipe. This gives you essentially > multi-threading. > > > > Jussi > > On Fri, Jun 1, 2018 at 1:12 AM, Steve G via Gambas-user < > gam...@li...> wrote: > >> I don't think I understood your reply or maybe there was no reply. If >> there was a reply then I'd love to hear your ideas on how to take care of >> this issue. Without threading. >> >> Sent from TypeApp >> >> On May 31, 2018, 13:37, at 13:37, "Benoît Minisini" <g4...@gm...> >> wrote: >> >Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit : >> >> I will give you a real life example of the need for multithreading. >> >> >> >> project to monitor status of computers on a network. this is done >> >with a >> >> ping to each system from a timer. the result is either online or >> >offline >> >> depending on ping results. The program is unresponsive to the user >> >while >> >> multiple pings are done in the background. multithreading would allow >> >the >> >> program to be responsive to users while other computer status is >> >checked in >> >> another thread. furthermore if for some reason a person had 100 >> >systems to >> >> monitor on the network, this will take time if many are in offline >> >status >> >> leaving the program unresponsive to users for quite some time. >> >creating 100 >> >> threads each pinging only one system then terminating after returning >> >the >> >> result would make it even faster as all pings are done >> >simultaneously. >> >> >> >> So there is but one real world application for multithreading. not to >> >> mention it would make gambas immensely more powerful. >> >> >> > >> >"A Computer is a state machine. Threads are for people who can't >> >program >> >state machines." - Alan Cox. >> > >> >:-) >> > >> >-- >> >Benoît Minisini >> > >> >----------------------------------------------------------- >> ------------------- >> >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 >> >Gam...@li... >> >https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------ >> ------------------ >> 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 >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > |
|
From: Steve G <sim...@ya...> - 2018-05-31 22:44:42
|
It is amazing how programmers are so petty. I went through and reread that thread and I don't see any answers in there to what I'm trying to do. By the way your insult was really not much of an insult. However I will give you a good one. You are a complete moron and socially inept. Instead of name-calling why don't you attempt to use fats and actually spell something out. 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. although in your case I believe it should just be shut up because clearly you have nothing useful to offer anybody other than insults. Sent from TypeApp On May 31, 2018, 14:14, at 14:14, Jussi Lahtinen <jus...@gm...> wrote: >Please read the whole thread you necromanced, you don't need Gambas to >support multi-threading for that. > > >Jussi > >On Fri, Jun 1, 2018 at 12:27 AM, MacGyver via Gambas-user < >gam...@li...> wrote: > >> I will give you a real life example of the need for multithreading. >> >> project to monitor status of computers on a network. this is done >with a >> ping to each system from a timer. the result is either online or >offline >> depending on ping results. The program is unresponsive to the user >while >> multiple pings are done in the background. multithreading would allow >the >> program to be responsive to users while other computer status is >checked in >> another thread. furthermore if for some reason a person had 100 >systems to >> monitor on the network, this will take time if many are in offline >status >> leaving the program unresponsive to users for quite some time. >creating 100 >> threads each pinging only one system then terminating after returning >the >> result would make it even faster as all pings are done >simultaneously. >> >> So there is but one real world application for multithreading. not to >> mention it would make gambas immensely more powerful. >> >> >> >> -- >> Sent from: http://gambas.8142.n7.nabble.com/gambas-user-f3.html >> >> ------------------------------------------------------------ >> ------------------ >> 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 >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >------------------------------------------------------------------------------ >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 >Gam...@li... >https://lists.sourceforge.net/lists/listinfo/gambas-user |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 22:37:36
|
I don't know how to explain the issue shortly, if you are not familiar with what state machine means. And if you do, I'm not sure what to explain further. However, here is practical answer to your problem. Gambas itself doesn't need to be multi-threaded to achieve such things. You can simply use keyword Task to fork your program or write the program as two separated programs and make them function as one via pipe. This gives you essentially multi-threading. Jussi On Fri, Jun 1, 2018 at 1:12 AM, Steve G via Gambas-user < gam...@li...> wrote: > I don't think I understood your reply or maybe there was no reply. If > there was a reply then I'd love to hear your ideas on how to take care of > this issue. Without threading. > > Sent from TypeApp > > On May 31, 2018, 13:37, at 13:37, "Benoît Minisini" <g4...@gm...> > wrote: > >Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit : > >> I will give you a real life example of the need for multithreading. > >> > >> project to monitor status of computers on a network. this is done > >with a > >> ping to each system from a timer. the result is either online or > >offline > >> depending on ping results. The program is unresponsive to the user > >while > >> multiple pings are done in the background. multithreading would allow > >the > >> program to be responsive to users while other computer status is > >checked in > >> another thread. furthermore if for some reason a person had 100 > >systems to > >> monitor on the network, this will take time if many are in offline > >status > >> leaving the program unresponsive to users for quite some time. > >creating 100 > >> threads each pinging only one system then terminating after returning > >the > >> result would make it even faster as all pings are done > >simultaneously. > >> > >> So there is but one real world application for multithreading. not to > >> mention it would make gambas immensely more powerful. > >> > > > >"A Computer is a state machine. Threads are for people who can't > >program > >state machines." - Alan Cox. > > > >:-) > > > >-- > >Benoît Minisini > > > >----------------------------------------------------------- > ------------------- > >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 > >Gam...@li... > >https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Jussi L. <jus...@gm...> - 2018-05-31 22:14:16
|
Please read the whole thread you necromanced, you don't need Gambas to support multi-threading for that. Jussi On Fri, Jun 1, 2018 at 12:27 AM, MacGyver via Gambas-user < gam...@li...> wrote: > I will give you a real life example of the need for multithreading. > > project to monitor status of computers on a network. this is done with a > ping to each system from a timer. the result is either online or offline > depending on ping results. The program is unresponsive to the user while > multiple pings are done in the background. multithreading would allow the > program to be responsive to users while other computer status is checked in > another thread. furthermore if for some reason a person had 100 systems to > monitor on the network, this will take time if many are in offline status > leaving the program unresponsive to users for quite some time. creating 100 > threads each pinging only one system then terminating after returning the > result would make it even faster as all pings are done simultaneously. > > So there is but one real world application for multithreading. not to > mention it would make gambas immensely more powerful. > > > > -- > Sent from: http://gambas.8142.n7.nabble.com/gambas-user-f3.html > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Steve G <sim...@ya...> - 2018-05-31 22:13:07
|
I don't think I understood your reply or maybe there was no reply. If there was a reply then I'd love to hear your ideas on how to take care of this issue. Without threading. Sent from TypeApp On May 31, 2018, 13:37, at 13:37, "Benoît Minisini" <g4...@gm...> wrote: >Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit : >> I will give you a real life example of the need for multithreading. >> >> project to monitor status of computers on a network. this is done >with a >> ping to each system from a timer. the result is either online or >offline >> depending on ping results. The program is unresponsive to the user >while >> multiple pings are done in the background. multithreading would allow >the >> program to be responsive to users while other computer status is >checked in >> another thread. furthermore if for some reason a person had 100 >systems to >> monitor on the network, this will take time if many are in offline >status >> leaving the program unresponsive to users for quite some time. >creating 100 >> threads each pinging only one system then terminating after returning >the >> result would make it even faster as all pings are done >simultaneously. >> >> So there is but one real world application for multithreading. not to >> mention it would make gambas immensely more powerful. >> > >"A Computer is a state machine. Threads are for people who can't >program >state machines." - Alan Cox. > >:-) > >-- >Benoît Minisini > >------------------------------------------------------------------------------ >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 >Gam...@li... >https://lists.sourceforge.net/lists/listinfo/gambas-user |
|
From: Benoît M. <g4...@gm...> - 2018-05-31 21:37:36
|
Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit : > I will give you a real life example of the need for multithreading. > > project to monitor status of computers on a network. this is done with a > ping to each system from a timer. the result is either online or offline > depending on ping results. The program is unresponsive to the user while > multiple pings are done in the background. multithreading would allow the > program to be responsive to users while other computer status is checked in > another thread. furthermore if for some reason a person had 100 systems to > monitor on the network, this will take time if many are in offline status > leaving the program unresponsive to users for quite some time. creating 100 > threads each pinging only one system then terminating after returning the > result would make it even faster as all pings are done simultaneously. > > So there is but one real world application for multithreading. not to > mention it would make gambas immensely more powerful. > "A Computer is a state machine. Threads are for people who can't program state machines." - Alan Cox. :-) -- Benoît Minisini |
|
From: MacGyver <sim...@ya...> - 2018-05-31 21:27:17
|
I will give you a real life example of the need for multithreading. project to monitor status of computers on a network. this is done with a ping to each system from a timer. the result is either online or offline depending on ping results. The program is unresponsive to the user while multiple pings are done in the background. multithreading would allow the program to be responsive to users while other computer status is checked in another thread. furthermore if for some reason a person had 100 systems to monitor on the network, this will take time if many are in offline status leaving the program unresponsive to users for quite some time. creating 100 threads each pinging only one system then terminating after returning the result would make it even faster as all pings are done simultaneously. So there is but one real world application for multithreading. not to mention it would make gambas immensely more powerful. -- Sent from: http://gambas.8142.n7.nabble.com/gambas-user-f3.html |
|
From: PICCORO M. L. <mck...@gm...> - 2018-05-26 16:31:24
|
2018-05-26 12:15 GMT-04:00 Gianluigi <bag...@gm...>: > 2018-05-26 18:00 GMT+02:00 PICCORO McKAY Lenz <mck...@gm...>: > > > 2018-05-26 11:44 GMT-04:00 Gianluigi <bag...@gm...>: > > > > > Hasta Ubuntu siempre! > > > > > it's "UXXXX HAsta siempre" and not "hasta" must be "por" > > > > puff another reason to not use winbuntu! > > > > > I'm sorry for you but math is not an opinion: > "Hasta la victoria siempre" > La victoria = Ubuntu then: > "Hasta Ubuntu siempre" is correct > oh! and then then "victory" it's done, what come ? sure nothing jajajaj a victory it's a simple target.. > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Gianluigi <bag...@gm...> - 2018-05-26 16:15:16
|
2018-05-26 18:00 GMT+02:00 PICCORO McKAY Lenz <mck...@gm...>: > 2018-05-26 11:44 GMT-04:00 Gianluigi <bag...@gm...>: > > > Hasta Ubuntu siempre! > > > it's "UXXXX HAsta siempre" and not "hasta" must be "por" > > puff another reason to not use winbuntu! > > I'm sorry for you but math is not an opinion: "Hasta la victoria siempre" La victoria = Ubuntu then: "Hasta Ubuntu siempre" is correct |
|
From: PICCORO M. L. <mck...@gm...> - 2018-05-26 16:01:06
|
2018-05-26 11:44 GMT-04:00 Gianluigi <bag...@gm...>: > Hasta Ubuntu siempre! > it's "UXXXX HAsta siempre" and not "hasta" must be "por" puff another reason to not use winbuntu! > > 2018-05-26 17:12 GMT+02:00 PICCORO McKAY Lenz <mck...@gm...>: > > > a winbutnu problem: > > https://www.google.com/search?q=Failed+to+load+module%27+ > > appmenu-gtk-module&ie=utf-8&oe=utf-8 > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2018-05-26 10:42 GMT-04:00 Carlos Valente <car...@gm...>: > > > > > Hi, > > > > > > I use ubuntu mate in version 18.04 and when I open the terminal and > > > load the gambas3, the message 'Gtk-Message: 11: 20: 47.762: Failed to > > load > > > module' appmenu-gtk-module '' appears, but the shrimp opens , > apparently > > > normal. But if I create or open a file to edit, I can not type anything > > as > > > if the file was locked. The lock is open, the file permissions are like > > > 777, but I can not type anything in the editor. > > > > > > > > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > 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 > > > Gam...@li... > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > 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 > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Gianluigi <bag...@gm...> - 2018-05-26 15:44:12
|
Hasta Ubuntu siempre! 2018-05-26 17:12 GMT+02:00 PICCORO McKAY Lenz <mck...@gm...>: > a winbutnu problem: > https://www.google.com/search?q=Failed+to+load+module%27+ > appmenu-gtk-module&ie=utf-8&oe=utf-8 > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-26 10:42 GMT-04:00 Carlos Valente <car...@gm...>: > > > Hi, > > > > I use ubuntu mate in version 18.04 and when I open the terminal and > > load the gambas3, the message 'Gtk-Message: 11: 20: 47.762: Failed to > load > > module' appmenu-gtk-module '' appears, but the shrimp opens , apparently > > normal. But if I create or open a file to edit, I can not type anything > as > > if the file was locked. The lock is open, the file permissions are like > > 777, but I can not type anything in the editor. > > > > > > > > > > ------------------------------------------------------------ > > ------------------ > > 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 > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Christof T. <ch...@de...> - 2018-05-26 15:37:04
|
Am 26.05.2018 um 17:12 schrieb PICCORO McKAY Lenz: > a winbutnu problem: > https://www.google.com/search?q=Failed+to+load+module%27+appmenu-gtk-module&ie=utf-8&oe=utf-8 Please talk in us...@li... This list is deprecated. Alles Gute Christof Thalhofer -- Dies ist keine Signatur |
|
From: Gianluigi <bag...@gm...> - 2018-05-26 15:35:38
|
Hi Carlos, This mailinglist is deprecated Here you can subscribe to the new one [0] You should also subscribe to the bugtraker [1] and in addition to the explanation paste in the space provided the System information you can get from the help menu (?) of Gambas Regards Gianluigi [0] https://lists.gambas-basic.org/listinfo/user [1] http://gambas.sourceforge.net/en/main.html# (click on Bugtraker) 2018-05-26 16:42 GMT+02:00 Carlos Valente <car...@gm...>: > Hi, > > I use ubuntu mate in version 18.04 and when I open the terminal and > load the gambas3, the message 'Gtk-Message: 11: 20: 47.762: Failed to load > module' appmenu-gtk-module '' appears, but the shrimp opens , apparently > normal. But if I create or open a file to edit, I can not type anything as > if the file was locked. The lock is open, the file permissions are like > 777, but I can not type anything in the editor. > > > > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: PICCORO M. L. <mck...@gm...> - 2018-05-26 15:12:53
|
a winbutnu problem: https://www.google.com/search?q=Failed+to+load+module%27+appmenu-gtk-module&ie=utf-8&oe=utf-8 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-26 10:42 GMT-04:00 Carlos Valente <car...@gm...>: > Hi, > > I use ubuntu mate in version 18.04 and when I open the terminal and > load the gambas3, the message 'Gtk-Message: 11: 20: 47.762: Failed to load > module' appmenu-gtk-module '' appears, but the shrimp opens , apparently > normal. But if I create or open a file to edit, I can not type anything as > if the file was locked. The lock is open, the file permissions are like > 777, but I can not type anything in the editor. > > > > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Carlos V. <car...@gm...> - 2018-05-26 14:42:28
|
Hi, I use ubuntu mate in version 18.04 and when I open the terminal and load the gambas3, the message 'Gtk-Message: 11: 20: 47.762: Failed to load module' appmenu-gtk-module '' appears, but the shrimp opens , apparently normal. But if I create or open a file to edit, I can not type anything as if the file was locked. The lock is open, the file permissions are like 777, but I can not type anything in the editor. |
|
From: George <ga...@ge...> - 2018-05-19 18:09:51
|
Tobi, Thanks for the pointer to that thread. I had tried searching the message archives, but I probably didn't find it since I was looking for bugs related to the Format function. I did try changing CDate(...) to Date(...), but it didn't change my results. I had also tried an implicit conversion, but again I get the same results. What's important for me to know is that the current behavior is considered correct, so I can allow for it in my code. I was initially hesitant to kludge a fix, only to have it broken again by a subsequent Gambas fix, but it doesn't appear that will be a problem. Thank you! -George On Sat, May 19, 2018 at 1:52 PM, Tobias Boege <ta...@gm...> wrote: > On Sat, 19 May 2018, George wrote: > > > CDate uses UTC and, without the time information in the string, it > would > > store midnight. Format uses local time. > > > > That is definitely part of the issue. My local time is GMT-04, and > here's > > what I get when specifying the time in my test: > > > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > > > However, if I look at time in the results, the difference isn't exactly > the > > offset: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > > 4:54:00 > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > > 3:55:00 > > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > > 3:55:00 > > > > The offset isn't an even number of hours. What's also odd is that this > was > > never a problem before about a week ago. This code is many years old, > and > > the problem suddenly began occurring with compiled code. > > > > This has been discussed multiple times recently, the last time was [1]. > So let me elaborate on T Lee's answer a bit. The official statement is > that the previous behaviour was a bug which was unfortunately not > discovered sooner. As of Gambas 3.11, you should remember that CStr() > and CDate(), being low-level conversions, assume UTC, i.e. they convert > the date "literally" (without any offset) to a date and a time integer, > which is the internal representation of a Date in Gambas. > > The higher-level Str(), Val(), Format() and Date() functions take the > current locale into account. Mixing CDate() with Format() is almost always > a bug, as one honours the local timezone and the other doesn't. CDate() > produces a Date object which is 05/04/18 00:00 UTC but when you format > it using Format$(), you get a string representing the same point in time > relative to your current timezone. I'm in GMT+0200 these days so I get: > > Test date: 5/4/2018 Formatted: 05/04/18 02:00 Fri > > Removing the "C" from the invocation of CDate(), you chain locale-aware > functions only and get the desired result: > > Test date: 5/4/2018 Formatted: 05/04/18 00:00 Fri > > That five minute offset you mention is indeed weird, though, and I have > no explanation for that. > > Regards, > Tobi > > [1] https://lists.gambas-basic.org/pipermail/user/2018-May/064153.html > > -- > "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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
|
From: Tobias B. <ta...@gm...> - 2018-05-19 17:47:05
|
On Sat, 19 May 2018, George wrote: > > CDate uses UTC and, without the time information in the string, it would > store midnight. Format uses local time. > > That is definitely part of the issue. My local time is GMT-04, and here's > what I get when specifying the time in my test: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > However, if I look at time in the results, the difference isn't exactly the > offset: > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > 4:54:00 > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > 3:55:00 > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > 3:55:00 > > The offset isn't an even number of hours. What's also odd is that this was > never a problem before about a week ago. This code is many years old, and > the problem suddenly began occurring with compiled code. > This has been discussed multiple times recently, the last time was [1]. So let me elaborate on T Lee's answer a bit. The official statement is that the previous behaviour was a bug which was unfortunately not discovered sooner. As of Gambas 3.11, you should remember that CStr() and CDate(), being low-level conversions, assume UTC, i.e. they convert the date "literally" (without any offset) to a date and a time integer, which is the internal representation of a Date in Gambas. The higher-level Str(), Val(), Format() and Date() functions take the current locale into account. Mixing CDate() with Format() is almost always a bug, as one honours the local timezone and the other doesn't. CDate() produces a Date object which is 05/04/18 00:00 UTC but when you format it using Format$(), you get a string representing the same point in time relative to your current timezone. I'm in GMT+0200 these days so I get: Test date: 5/4/2018 Formatted: 05/04/18 02:00 Fri Removing the "C" from the invocation of CDate(), you chain locale-aware functions only and get the desired result: Test date: 5/4/2018 Formatted: 05/04/18 00:00 Fri That five minute offset you mention is indeed weird, though, and I have no explanation for that. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2018-May/064153.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk |
|
From: George <ga...@ge...> - 2018-05-19 17:42:16
|
I noticed a post from Benoît in another thread that this mailing list has been deprecated, so I'm going to repost this in us...@li... On Sat, May 19, 2018 at 1:20 PM, George <ga...@ge...> wrote: > > CDate uses UTC and, without the time information in the string, it would > store midnight. Format uses local time. > > That is definitely part of the issue. My local time is GMT-04, and here's > what I get when specifying the time in my test: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > However, if I look at time in the results, the difference isn't exactly > the offset: > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > 4:54:00 > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > 3:55:00 > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > 3:55:00 > > The offset isn't an even number of hours. What's also odd is that this was > never a problem before about a week ago. This code is many years old, and > the problem suddenly began occurring with compiled code. > > > On Sat, May 19, 2018 at 10:15 AM, Gianluigi <bag...@gm...> wrote: > >> But Debug (Print) localizes! >> >> However, with the dates I always get lost :-( >> >> Regards >> Gianluigi >> >> >> 2018-05-19 16:00 GMT+02:00 T Lee Davidson <t.l...@gm...>: >> >> > CDate uses UTC and, without the time information in the string, it would >> > store midnight. Format uses local time. >> > >> > So, anyone in a time zone behind UTC will get the previous day printed. >> > Try this format string: >> > zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") >> > >> > Does the difference in hours match your timezone offset? >> > >> > >> > -- >> > Lee >> > >> > >> > On 05/19/2018 09:08 AM, Gianluigi wrote: >> > > I think it depends on your version of Gambas, I get the correct result >> > with >> > > the master: >> > > >> > > Dim zTestDate As String >> > > Dim zTestResult As String >> > > zTestDate = "5/4/2018" >> > > zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") >> > > Debug "Test date: " & zTestDate & " Formatted: " & zTestResult >> > > '' Result: Main.Main.9: Test date: 5/4/2018 Formatted: 05/04/18 ven >> > > >> > > Regards >> > > Gianluigi >> > >> > ------------------------------------------------------------ >> > ------------------ >> > 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 >> > Gam...@li... >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> 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 >> Gam...@li... >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > |
|
From: George <ga...@ge...> - 2018-05-19 17:20:50
|
> CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. That is definitely part of the issue. My local time is GMT-04, and here's what I get when specifying the time in my test: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri However, if I look at time in the results, the difference isn't exactly the offset: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: 4:54:00 Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: 3:55:00 Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: 3:55:00 The offset isn't an even number of hours. What's also odd is that this was never a problem before about a week ago. This code is many years old, and the problem suddenly began occurring with compiled code. On Sat, May 19, 2018 at 10:15 AM, Gianluigi <bag...@gm...> wrote: > But Debug (Print) localizes! > > However, with the dates I always get lost :-( > > Regards > Gianluigi > > > 2018-05-19 16:00 GMT+02:00 T Lee Davidson <t.l...@gm...>: > > > CDate uses UTC and, without the time information in the string, it would > > store midnight. Format uses local time. > > > > So, anyone in a time zone behind UTC will get the previous day printed. > > Try this format string: > > zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") > > > > Does the difference in hours match your timezone offset? > > > > > > -- > > Lee > > > > > > On 05/19/2018 09:08 AM, Gianluigi wrote: > > > I think it depends on your version of Gambas, I get the correct result > > with > > > the master: > > > > > > Dim zTestDate As String > > > Dim zTestResult As String > > > zTestDate = "5/4/2018" > > > zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") > > > Debug "Test date: " & zTestDate & " Formatted: " & zTestResult > > > '' Result: Main.Main.9: Test date: 5/4/2018 Formatted: 05/04/18 ven > > > > > > Regards > > > Gianluigi > > > > ------------------------------------------------------------ > > ------------------ > > 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 > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > 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 > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |