Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8235
| From | crankypuss <noemail@noemail.invalid> |
|---|---|
| Newsgroups | alt.os.linux, alt.os.linux.ubuntu, comp.lang.php |
| Subject | Re: anyone else writing Linux (or cross-system) applications in PHP? |
| Date | 2013-02-04 02:49 -0700 |
| Organization | NewsGuy - Unlimited Usenet $23.95 |
| Message-ID | <keo07s0203i@news6.newsguy.com> (permalink) |
| References | <kejss302gi7@news6.newsguy.com> <kek0b3$tel$1@dont-email.me> <kelfbp01crq@news4.newsguy.com> <510F65D4.4010602@arnowelzel.de> |
Cross-posted to 3 groups.
On 02/04/2013 12:40 AM, Arno Welzel wrote: > crankypuss, 2013-02-03 11:49: > >> On 02/02/2013 02:27 PM, Jonathan N. Little wrote: > [...] >>> Because for the web is where PHP originated. Get data, do something, >>> done. Not really suited for event driven apps. >> >> I have code that says you're mistaken. > > In which way? How does your PHP code handle events without polling in an > endless loop? > > There's only two ways to handle repetitive events, interrupts and polling. No modern operating system polls by using a hard spin-loop, and no application that isn't a total piece of crap ever implements a hard spin-loop without some kind of system-call that allows it to be set aside while the processor services another thread. Whether your application contains a loop that has a system-call in it, or is rescheduled when an interrupt comes in, it's the same loop with its top rolled around and a different subroutine used to put it to sleep. Hell, even if your application is so stupid that it's just branching to here, any modern operating system will time-swap it out and let somebody else have a shot at the processor. So the answer depends somewhat on how one interprets "even driven". All applications are event driven unless they are just doing hard computation, in/grind/out. The techniques one uses to make the application do what's intended vary depending on details. In other words it depends on what you want to do. Polling is not bad if done properly, neither are interrupt-based mechanisms, look close enough and they're basically the same thing. As for PHP being "not really suited for event driven apps" that seems kind of silly to me, but then most people think that calling ncurses to get a character means their application will have to sit there waiting until the ENTER key is pressed. Sure, the ncurses call is blocking, but that doesn't mean you can't write a non-blocking subroutine that does something that's blocking; only threads get blocked, big deal.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-02 13:27 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2013-02-02 14:57 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 03:45 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2013-02-03 06:00 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-02 16:27 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 03:49 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 11:00 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-03 10:17 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 11:40 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-03 14:00 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Yates <richard@yatesguitar.com> - 2013-02-03 13:56 -0800
Re: anyone else writing Linux (or cross-system) applications in PHP? Martin <no@spam.invalid> - 2013-02-04 01:53 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-04 02:40 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-04 09:14 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 02:32 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-04 11:06 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 09:15 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-04 16:24 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "Jonathan N. Little" <lws4art@gmail.com> - 2013-02-04 11:35 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 02:22 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 12:16 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 11:49 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 21:22 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-04 16:38 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-04 17:41 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-04 16:58 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 02:21 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 12:15 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 11:52 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 21:23 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-05 06:00 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 13:49 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? Jerry Stuckle <jstucklex@attglobal.net> - 2013-02-05 08:22 -0500
Re: anyone else writing Linux (or cross-system) applications in PHP? "Cybe R. Wizard" <cybe_r_wizard@wizardstower> - 2013-02-05 08:50 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-04 08:40 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 02:49 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Robert Heller <heller@deepsoft.com> - 2013-02-02 15:43 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 03:57 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? "Keith D. Lee" <keithdlee2012@gmail.com> - 2013-02-02 22:20 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 04:13 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-04 12:23 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 08:57 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 14:04 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 13:59 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-03 10:58 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 04:20 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? "J.O. Aho" <user@example.net> - 2013-02-03 12:44 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 11:50 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "J.O. Aho" <user@example.net> - 2013-02-03 13:47 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 13:23 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-04 11:32 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-03 11:43 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-03 13:08 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-03 14:49 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? John Hasler <jhasler@newsguy.com> - 2013-02-03 08:16 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-03 15:28 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? John Hasler <jhasler@newsguy.com> - 2013-02-03 09:39 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-03 17:50 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? John Hasler <jhasler@newsguy.com> - 2013-02-03 11:24 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-03 19:25 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-03 20:25 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-03 21:47 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? John Hasler <jhasler@newsguy.com> - 2013-02-03 16:32 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-03 22:59 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-04 00:21 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-04 11:46 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-03 23:13 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-04 17:21 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-04 16:28 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? John Hasler <jhasler@newsguy.com> - 2013-02-03 14:26 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-04 11:37 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-03 13:17 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-04 08:38 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-04 09:04 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-04 10:29 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-04 09:34 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 03:06 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 03:01 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 09:08 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-02-04 17:34 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-04 16:44 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 02:36 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Michael Vilain <vilain@NOspamcop.net> - 2013-02-05 01:49 -0800
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-05 15:03 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 12:07 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-05 20:22 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-05 22:27 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-06 00:06 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-06 04:32 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-06 11:50 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-06 04:22 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-06 15:37 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-05 22:13 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-05 23:38 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 02:26 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-05 10:31 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 13:41 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? Tim Streater <timstreater@greenbee.net> - 2013-02-05 12:56 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 14:08 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 12:24 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? J G Miller <miller@yoyo.ORG> - 2013-02-05 20:14 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Aragorn <stryder@telenet.be.invalid> - 2013-02-06 06:27 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2013-02-06 19:48 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? "Cybe R. Wizard" <cybe_r_wizard@wizardstower> - 2013-02-06 22:44 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? GooseMan <TheGoose@gonnagiveittothegander.org> - 2013-02-06 21:38 -0800
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-07 15:13 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? DanS <t.h.i.s.n.t.h.a.t@r.o.a.d.r.u.n.n.e.r.c.o.m> - 2013-02-10 08:09 -0600
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 12:10 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Jasen Betts <jasen@xnet.co.nz> - 2013-02-05 21:51 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-05 22:32 +0000
Re: anyone else writing Linux (or cross-system) applications in PHP? Meeh <meeh@i2pmail.org> - 2013-02-05 17:51 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-04 02:55 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-05 13:42 +0100
Re: anyone else writing Linux (or cross-system) applications in PHP? crankypuss <noemail@noemail.invalid> - 2013-02-05 12:28 -0700
Re: anyone else writing Linux (or cross-system) applications in PHP? Arno Welzel <usenet@arnowelzel.de> - 2013-02-09 20:58 +0100
csiph-web