Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116319 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40767 invoked from network); 11 Nov 2021 06:26:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Nov 2021 06:26:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EE3A5180211 for ; Wed, 10 Nov 2021 23:20:33 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 10 Nov 2021 23:20:33 -0800 (PST) Received: by mail-pf1-f177.google.com with SMTP id x64so4886952pfd.6 for ; Wed, 10 Nov 2021 23:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wikimedia.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=g5BYTUPJbCGI2ndt0GSoV/Hsgromc50RQMtVgk+u60Y=; b=Oi5uGMWq4mk7peK3z89y0+46y4ZY85vYe886MheuDp5d5g2RcUfLd8ZhRXyrfCiSzU St2tjHAa+bk2sG8WoJ3dampydcDSPNSrvI8mgtZdLOyMIBaryN57noZwMe2XqB3MzcqM tqH6GOgQw0I/PBHSdo0EPYqKC/ixkHOF2tMyA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=g5BYTUPJbCGI2ndt0GSoV/Hsgromc50RQMtVgk+u60Y=; b=ZXp2O+AZuKdvZ8q4enYrwQWh+TCPf1c/FaFYY6tSlzBluOXPcWHgdp7FLRX4AYXQb/ +RVnMfFm0o0ql7vCMQXN/c8ezxAX0Vfzd1GX9UcRl33v6+1HPCJZEYZMR3jHHCWFxVMW I0VXlGAVVjAGCKAiofLQcTCgc8tJWiZMEH8JM2S84uMng1k78yJ+ftBqNGFr9/CEXr1e 2iKMeuzr+U50feh8LEi5asqgi1b/kID7gJo1H4XiKYqodda2FsXRahoN6/Lp/Hgwr3mb HnnpNAB0judwzeMXbEj0d6scRB3D0AOqmdBrk4ZhUEL41dyG9zBFyFLG30OJcCIccp/r JteQ== X-Gm-Message-State: AOAM531+GD2oTD0sqYo+0B/ihEOnYP/SP/mgtD3rk+5+tftHN3zUQgav Dpbzc7iftsZ3R1NSDvQpE9k1PROe8Cb/xQ== X-Google-Smtp-Source: ABdhPJwCDetaZhhwH6TBkAFXUeexzuO4LBNufxmKf3Ofd0TMnBaGJ7Ih2uSaul/Oqxlv1koHBaS8OA== X-Received: by 2002:a63:2a8d:: with SMTP id q135mr3244488pgq.167.1636615226542; Wed, 10 Nov 2021 23:20:26 -0800 (PST) Received: from [10.1.1.45] (124-168-155-31.dyn.iinet.net.au. [124.168.155.31]) by smtp.gmail.com with ESMTPSA id g9sm1992495pfc.182.2021.11.10.23.20.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Nov 2021 23:20:25 -0800 (PST) To: Dmitry Stogov , Nikita Popov Cc: Dmitry Stogov , PHP internals References: Message-ID: <902ee83d-1cc6-4969-c2ee-ddcaad1eb0c5@wikimedia.org> Date: Thu, 11 Nov 2021 18:20:21 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------D0075332620779CA15A4BE36" Content-Language: en-US Subject: Re: [PHP-DEV] VM kinds From: tstarling@wikimedia.org (Tim Starling) --------------D0075332620779CA15A4BE36 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit OK, thanks for the answer. My PR is up now, with a fixme comment for the GOTO and SWITCH VMs. I'm still not sure how to make them work. https://github.com/php/php-src/pull/7642 -- Tim Starling On 10/11/21 8:10 pm, Dmitry Stogov wrote: > I prefer to keep GOTO and SWITCH VMs. It's easy to drop something, > but it's going to be much more complex to reimplement it again. > > Note that HYBRID VM (based on CALL and GOTO VMs) was introduced only > in PHP-7.2, because GOTO was already implemented a long time ago. In > the future, it's possible to extend HYBRID VM, to make it work with > GCC-incompatible compilers through SWITCH. We might also like to > move from direct-threaded to indirect-threaded dispatch. > > Thanks. Dmitry. > > On Wed, Nov 10, 2021 at 11:35 AM Nikita Popov > wrote: > > On Wed, Nov 10, 2021 at 8:13 AM Tim Starling > > > wrote: > > > What are VM kinds for? Are they just a prototyping tool to allow > > different implementation strategies to be benchmarked? Or are they > > permanent? Does anyone use them? > > > > I ask because I'm working on a VM bug, and non-default VM > kinds make > > already complex code even more complex and harder to edit. > > > > -- Tim Starling > > > > I don't think anyone uses them, and the GOTO/SWITCH VMs receive > little > testing in practice (we don't use them in CI), and I believe > they're not > supported by the JIT either. Personally, I would be fine with simply > dropping them, as they do add additional maintenance burden > without any > apparent benefit. Maybe Dmitry has some thoughts on this. > > Regards, > Nikita > --------------D0075332620779CA15A4BE36--