Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104124 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95017 invoked from network); 4 Feb 2019 18:04:27 -0000 Received: from unknown (HELO tbjjbihbhebb.turbo-smtp.net) (199.187.174.11) by pb1.pair.com with SMTP; 4 Feb 2019 18:04:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.net; s=turbo-smtp; x=1549896321; h=DomainKey-Signature:Received: Received:MIME-Version:References:In-Reply-To:From:Date: Message-ID:Subject:To:Cc:Content-Type; bh=apgFE9pfAG7DGAmKvYzYxj 25XLXYZ96WkXvnGkvYApk=; b=KGITkJsBuvk1syQZR1W0VJZnpp0EefqHw4W4BF RM4trjFm19SwQanXUniEoD8AEGp7EbCTLiD2AiOd8z7NA1OudCawZYBdxuFwDfVD HIzx0skK7UICmdZVJNx43agm2O3GsDQge8hVVrVhMyCointjm+42oAIAienUwAAs C+7Rw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=turbo-smtp; d=php.net; h=Received:Received:X-TurboSMTP-Tracking:X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version:References:In-Reply-To:From:Date:X-Gmail-Original-Message-Id:Message-ID:Subject:To:Cc:Content-Type; b=X5oLVRFxkKfNPW2NlQmX0rT9vUayP3qUU1bTiYmaScl4plGLa4BII5X6cZVMjL malyWYRA7B8I2YsiBNWbkPzAFL5MZCm5UdKmOLEstmd9d4eopy8VWMv4JyoduK/O qXlDrXFhZkw7l+uQCZb9hcHyV4rgSCnN4truUQjRgu20I=; Received: (qmail 12094 invoked from network); 4 Feb 2019 14:45:21 -0000 Received: X-TurboSMTP-Tracking: 4830527688 X-Gm-Message-State: AJcUukdqAEP5QPpsxla7rbb/WmxhUzI896DZ733iYXhEN0gbVRTv6hhQ Y/DIdbYX0RAK3JCZ0w5bwkAbfFFdQ6trZe2YpWA= X-Google-Smtp-Source: ALg8bN4/xuCahQ0HpsMewD+WyatydDhwR0hx4l0j79ARDDU9fUSvTdIiubofRX52q6aA1JDsvDL0nQsFxiCdzzbH48g= X-Received: by 2002:a0c:9659:: with SMTP id 25mr47153444qvy.3.1549291520900; Mon, 04 Feb 2019 06:45:20 -0800 (PST) MIME-Version: 1.0 References: <5c5814e2.1c69fb81.ba123.0510SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5c5814e2.1c69fb81.ba123.0510SMTPIN_ADDED_MISSING@mx.google.com> Date: Mon, 4 Feb 2019 16:45:09 +0200 X-Gmail-Original-Message-Id: Message-ID: To: Andrea Faulds Cc: Internals Content-Type: multipart/alternative; boundary="000000000000c1c7190581128a40" Subject: Re: [PHP-DEV] [RFC] JIT From: zeev@php.net (Zeev Suraski) --000000000000c1c7190581128a40 Content-Type: text/plain; charset="UTF-8" On Mon, Feb 4, 2019 at 12:33 PM Andrea Faulds wrote: > A concern I have with the current RFC is a lack of a good case for why > it should be necessary; While this is a subjective opinion, it's definitely a valid one. Unlike phpng (PHP 7) which was a slam dunk - JIT isn't - and whether or not the added value is worth the added complexity is very much up for debate. One our hopes in opening this up for comments, is that people would actually try the code themselves and experiment with it - well beyond what we can do ourselves. If & when we get feedback from folks on apps and use cases they tried this on with interesting results, we'll add them to the RFC. I'd love to hear from folks trying it on things like React. Then, there's also the possibility of writing builtin functions in PHP - although that would obviously require a much wider platform support than we presently have to be viable. > and not much else. Maybe PHP being able to be used for this kind of > software would be cool, but it wouldn't justify the added complexity > (and for that matter security headaches) of adding a JIT to PHP given C, > C++, FORTRAN and so on already exist and are better-suited to it. > This too is a subjective (& obviously completely valid) opinion. Of course, if the only point of JIT would be 'coolness' then it's probably not worth the trouble (although JIT is a huge selling point even if it doesn't bring huge gains, as we've seen in the past). But I don't think it'll end just there. For me, I would prefer using PHP over any of these if I can help it and if the performance is reasonable enough - and I doubt I'm the only person on the planet that feels that way. Again, we don't think it's a slam dunk (the RFC would have looked differently if we did), but it's not inconceivable that if we position PHP as a language where you can get the ease of development benefits of PHP, while getting near-native performance - it will open the door to new audiences. Zeev --000000000000c1c7190581128a40--