Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104435 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88190 invoked from network); 15 Feb 2019 13:31:21 -0000 Received: from unknown (HELO mail-wm1-f66.google.com) (209.85.128.66) by pb1.pair.com with SMTP; 15 Feb 2019 13:31:21 -0000 Received: by mail-wm1-f66.google.com with SMTP id b11so9368794wmj.1 for ; Fri, 15 Feb 2019 02:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vl6Un6OnFjeMcdZpm2CSSodWjBtWIPb7s5y+QY0CcFI=; b=tU6f/4Na/OzYVF3NfVkijwE6Cb3SH2kQwz5srkZCOP7Vm/cS/i0NFdcnjmDUgg9I5F /8SCvcz5eLOMOP4OXEfrciirnhmAHrOmbzHGrUlGRF1W5WWRbhljnJmeF08Y/PBpikW9 UiAn77+r+rHcyRnE6ZHlEqiGWyPdTsjW0aTvHZC5ALQFQkZEYbn6XoqlcODGDlAM5vP6 ELRccbEZplwFg5gMO4p04aHv4PP7XI1EmCnlvj8fWPmoQ6KNK0GtkIJyHzR3khitgkoO AcNK6V6i3Oji0y5n1X97noQgbw4Qs+6lSy6iwllhYxm5KAXsEg0wb60GS/OJRwhSQGYC p6GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vl6Un6OnFjeMcdZpm2CSSodWjBtWIPb7s5y+QY0CcFI=; b=jto0vXkwFkVse0tEybi7a/OA6NkrtkpYwdtnoTcy+F3ZGbM4O3Vks4MFK0+HOyP0gM +wFQWNfF+QvmgjtbBg3dls0gIsyrcSyqlv74sBZMnnIE4IrMvVoN4WzD4zzIjfuxAnX3 dmvzRezXSxTZXSdgaeS0R8LxmhKeZCeHIq+v2Eohyqxv4glwDRDVPfEnXRG712OJjV/W AIclkDLjbX4GaepZ3+00CFYtROVblT2YC7ubYZyjsBxh5lJ9rKyKLJlhOI3KFY6eYR39 QqRTARy1wyCohdEGlIPpMTuDQsDQVEpTlWenjfBbtNJGzDeqlsf0uBSLUNQLZX6a8LUL WIKA== X-Gm-Message-State: AHQUAuY8KwJ13MJUs+kuK8SYKlDTjzvHxaU+xYOjHRqf2eMUalVZuidq Mgaes+P1HsCElBWJEISgBzumapR97STwDw4sydo= X-Google-Smtp-Source: AHgI3IY49Fsxc3obIP452yA4nykASqId+Ttdht0IA5XdNxDS5fFGP1VCx2fyz6ABzkjrFUWaoIPJ2Mh03toQXxB5uq0= X-Received: by 2002:a1c:2985:: with SMTP id p127mr5718729wmp.63.1550225696902; Fri, 15 Feb 2019 02:14:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 15 Feb 2019 17:14:44 +0700 Message-ID: To: Benjamin Eberlei Cc: zeev@php.net, Levi Morrison , Joe Watkins , Rowan Collins , PHP internals Content-Type: multipart/alternative; boundary="000000000000fc55de0581ec0bec" Subject: Re: [PHP-DEV] Re: ZTS improvement idea From: pierre.php@gmail.com (Pierre Joye) --000000000000fc55de0581ec0bec Content-Type: text/plain; charset="UTF-8" Hi Benjamin, On Fri, Feb 15, 2019, 2:26 PM Benjamin Eberlei > Async.io is used for scalability In languages with entirely different > architectures than PHP. > > Node.js isn't well suited to monolithic applications such as Wordpress, > Magento and the fast amount of applicatoins that people are building in PHP > right now. > One needs some supporting microservices here and there (to do websockets, > high throughput work with lots of I/O, small daemons, ...) which right now > people are using Go or Node.js for next to PHP, swoole or react-php. > This is like the 80% use-case of threading, Multiple HTTP requests, > multiple long running SQL queries. An API like parallel would allow > each and everyone of us to make controllers faster today without a > large effort. > > Swoole is nice, but it will never be the 80% use-case for PHP users. All async I/O APIs heavily lean on node.js APIs, which is an entirely > different paradigm to program on and not PHP. Plus you have to rewrite > all libraries to support this, instead of being able to re-use the > libraries and style that PHP has championed for all this time. > I think you are right in your analysis. However I fail to see where you are heading to. It is the same as when couchbase or other Mongodb drivers were created, or OO features. 100% of the existing code base were not suited for them. Still, these features open new doors for php as a leading web language. The same applies to async io and to some extend parallelism (in different area than web servers tho'). And yes, async requires much more efforts (overall applications architecture) to port libraries or application to fully use them and benefit from async IO. I am convinced PHP will be able to have these features and remain a leader for a few more years. PS: I will still use node, go or Python as well as always ;-) best, Pierre > --000000000000fc55de0581ec0bec--