Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121088 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37019 invoked from network); 18 Sep 2023 06:49:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Sep 2023 06:49:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 592E31804FF for ; Sun, 17 Sep 2023 23:49:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 17 Sep 2023 23:49:23 -0700 (PDT) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-52a5c0d949eso4931724a12.0 for ; Sun, 17 Sep 2023 23:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695019762; x=1695624562; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hpIKgcOKP3G0yE/MeHGAubaZbi8xJBx7ZmmbZf3IETE=; b=jTZEhNbQ334FjRpy8GiCimkbP/1uVcZ30RpFWcu/LDtQ1sUUUgqGO3L3jP6r0awPTN iLuXtdzhL1Q5+F/3x6G0VY8ECtiI2aK3Lzpf6edHwkbMc4XXRIJKZfiIMlstGUDy/Wr8 7zG7V4sB8eOnzjacNEIAZtTUalHnV4RH6snhsNz3F3ccaIRvrenzf8JEx/0FKdfLNrKv sRynzcHPN27OdyWqlgnvONNM4tqtE2dEfcpWawLgh/PvHnI1+3enNcmkWeAyK8rTAQk2 qhwwbHHsW2FhRAfCHc+rLKh824NMwojC4bbfXjl0/5Ej4lLe9c2iBjQHmvxdAWawHRKC Iqwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695019762; x=1695624562; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hpIKgcOKP3G0yE/MeHGAubaZbi8xJBx7ZmmbZf3IETE=; b=MW7tz2zW3iNyPHhO5wV9EeMFmnfA5/dqCfNKiqsL6rqajdXEg5gx12fpyYnLNkNFmS 00WuyWvVFfUS8yeO0BBK0QUvRBmiVHWRLTfn73ThAWJ5/Bl6wSokNiDO3GDQFvUogAfq 9HJvBB8ffT6ODD3cFejKnsY3Rbvp8LaXhC9HRmKLrtko4+OehLxzEVg8sImOjcGKzcgL FVrxMkpsvPkRRt39QZHFHX0+gkicWB4YpNQZa6yWPPYGusPy2Hhszj9ysTzVVyT4ha/z +GjMaryHlQjXkKddl+LRK1vzSy8YoiUiOaXnvOWndrIipay/mn/Rf5k5AApryoGnLoTj zNIA== X-Gm-Message-State: AOJu0YzHls+yORk1edwmDZStagnZlItdPqT0CSzzn3y7RZ/whqK1Xdx5 0J2S+0i579O14ditHR7FbRMF66RTF3JcXxLzUVI= X-Google-Smtp-Source: AGHT+IERupmq1+vLnKpCHOr96zcV2itFBlHuNrPq3GitS0CwIEq4+z4ooJl3CS6MSeQhB/qloesH6P+zzbXwLAVMx8M= X-Received: by 2002:aa7:d3c4:0:b0:530:8897:f0e9 with SMTP id o4-20020aa7d3c4000000b005308897f0e9mr6718329edr.21.1695019762330; Sun, 17 Sep 2023 23:49:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 18 Sep 2023 09:49:11 +0300 Message-ID: To: Pierre Joye Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000d22f1106059c8ab9" Subject: Re: [PHP-DEV] A new JIT engine for PHP-8.4/9 From: dmitrystogov@gmail.com (Dmitry Stogov) --000000000000d22f1106059c8ab9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 18, 2023 at 8:01=E2=80=AFAM Pierre Joye = wrote: > Great work! This is a massive jump for PHP. Thank you :) > > I don't have much concerns about the license etc as the ZE is already > under Zend the ZE license (never updated since Perforce acquired them, > tho'): > > https://github.com/php/php-src/blob/master/Zend/LICENSE > > I do really like the IR addition. This opens huge new opportunity, not > only for optimization and JIT but to move forward into bringing new > technology support to PHP (WASM f.e.). There are big challenges and I > am not sure yet it can be ever be fully possible to target WASM. > Creating a new back-end for IR is significantly simpler than for old PHP-JIT implementation. However, I'm not sure if this will work for WASM, because PHP-JIT calls a lot of functions from PHP itself. I'm not sure how this should work with WASM. I just didn't research in this area. > however, having the ability to do it with a subset of PHP, f.e. some > business logic classes etc., would already be amazing. I can't imagine > a php9 without taking this into account tbh. That would be kill php in > any way but that would definitively puts it in less competitive area > than others (JS, go, rust, ocaml f.e.), for another few years. > > I have a simple php function working (just a small go app to parse the > IR text output and convert it. But that's not remotely a POC :). Really? You already use the IR Framework? :) > I discussed with Dmitry and the idea would be to add a WASM target to > libIR (partial support or whatever is possible). > > This is the part I would like to see more discussions or feedback as > it will define what could become possible or not. A certain level of > similarity or compatibility could make other targets much easier. > > > The old JIT implementation is going to be kept for a while. > > I like the idea too. The sooner this work can be available as > experimental, the sooner it will get stable. > Yes. I hope it's already quite stable. It passes all the nightly CI tests, including Amp, Symfony, Laravel and Wordpress uit tests. But it definitely will cause problems. The sooner we start the more time we will have to release. And keeping the old version for a while, we have a plan B. Thanks. Dmitry. --000000000000d22f1106059c8ab9--