Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111348 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64075 invoked from network); 6 Aug 2020 07:52:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Aug 2020 07:52:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 354321804DB for ; Wed, 5 Aug 2020 23:50:48 -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 autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (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, 5 Aug 2020 23:50:47 -0700 (PDT) Received: by mail-vs1-f41.google.com with SMTP id y8so17445393vsq.8 for ; Wed, 05 Aug 2020 23:50:47 -0700 (PDT) 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=gL8tEAms6Cx5qYIL+/fhamlN9ao74Fwb0h43fKg5eIE=; b=F4aAMb/lwVIwa8eGLabdtMceuT7OCIdkRNUT7o2ByeRxFEMu1lde0+LgebWSjgv7I1 Md26EXs3Szuq5nJlE+Fyr1X3Ojod/8Po3W7x+83mVDU88SC2hfMJMrm6hWZ+LPOrlVXK kIiv/KRyaWO8P2+TOGbai1zbH8+VLib9kpLUOjOatqvNp9Un5prYEUM7vXL8ka6yVr/y HBg80XJwgzS3t32fhHGzpEGUbZ5NMNmUhi6yXB9XipC9Br7imTXiwJ8aGuAEY5j8EPFO 5cqLfjIK9FV6K9sBxDxPtLfwB9YM6WGXZbe9QgRMDWkhrK9jftZm/zUay3hrqeIZO05y USsw== 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=gL8tEAms6Cx5qYIL+/fhamlN9ao74Fwb0h43fKg5eIE=; b=PYXIYrMzRCITLOLinjSvH6n6T3nU5t38x8zHM5Ppi54HvYaQgmIUHs0URub5fbxxQn WPOMxjk3cfgl7UrzLBrK7CzWTS+hU3gcS8EdbfgN5i7PLdr6ctlHagTzn4zan4PCNkZD P3dqBW2y6vDIOzN/6Q0munhU+cTQAqYI8mxZxvKIqtblbqgTZ38rydoNq+k84parXFwY J7MOdAVyYQLSs/VdBn71AXmYg4L1Z5HGq7y95zF+rY5tYEc/PXdhH3fThvr9cEZteoPS oYhLe8sjxVPhu4fJcZA3m+lw/tK0fIGcMYCxCGJpI9iPCnqa+iq4qdmg4yywFu1lXofm mj8Q== X-Gm-Message-State: AOAM531L09o9znanZFd+tNwhdpxDQ39Er1mOCb1kHd1vNDVg+PgIRJ+6 yIY0EMndAKf5GPA06C0fJSRQxY2ok5KCKXovf9c= X-Google-Smtp-Source: ABdhPJws7w2r2P84PYEYs7t4vlaAN5O8tDWOg96ODgbq7N4B9UTSWfh1TrhlByfvX6+2EDFhrnS4TwFV8qvCl6Q0Yrg= X-Received: by 2002:a67:6305:: with SMTP id x5mr5098524vsb.35.1596696646811; Wed, 05 Aug 2020 23:50:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 6 Aug 2020 09:50:35 +0300 Message-ID: To: Benjamin Eberlei Cc: PHP Internals , Dmitry Stogov , Nikita Popov Content-Type: multipart/alternative; boundary="00000000000072829605ac2fe8ee" Subject: Re: [PHP-DEV] Re: @@Jit Attribute Considerations From: dmitrystogov@gmail.com (Dmitry Stogov) --00000000000072829605ac2fe8ee Content-Type: text/plain; charset="UTF-8" My solution: - remove doc-comment trigger. It doesn't make sense. - add @@Jit("off") only. Later we may extend this. On Tue, Aug 4, 2020 at 11:11 AM Benjamin Eberlei wrote: > On Mon, Aug 3, 2020 at 7:44 PM Benjamin Eberlei > wrote: > > > Hi, > > > > I am going to pick up a discussion from > > https://github.com/php/php-src/pull/5915 about the @@Jit attribute. > > > > Nikita mentioned he is still not 100% clear what the usecase is for @@Jit > > attribute and asked to discuss here. > > > > The reason is that the default tracing JIT is clever to decide itself > when > > to JIT or not, better not interfere with that. In case you run the > tracing > > JIT, only @@Jit("off") has an effect the others @@Jit("tracing") and > > @@Jit("function") get ignored. > > > > Only the trigger mode 4 (attributes) is actually using @@Jit("tracing") > > and "function". This trigger mode feels like micro-management for > > developers and since it has virtually no spotlight in discussions and > blog > > posts about the JIT at the moment, we don't know if it brings benefits. > > > > Maybe for now it would be better to remove docblock / attribute support > > for the JIT, and take a new attempt at it in 8.1? That prevents us from > > rolling something we regret having to maintain later. > > > > I updated the PR https://github.com/php/php-src/pull/5915 with the > following things: > > - Removed attribute trigger mode for now. > - Removed obsolete doc comment trigger mode > - Add @@Jit("off") to disable JIT for an op_array or script > > Open questions: > - Are we ok with removing @Jit("on"), @@Jit("tracing") and > @@Jit("function") for now to thoroughly discuss best approach for 8.1? > - Rename @@Jit to something more specific like @@JitOptions or @@JitHint? > - Remove the attribute trigger constant 4, and move tracing JIT to use 4 > instead of 5? > > Outlook: > > We need to think about what the @@Jit attribute should actually mean in > context of the function or tracing JIT. Personally it probably means > "Always Jit this function regardless of hot counter or tracing results". > I believe we don't need the attributes trigger mode, as everything happens > either in context of function or tracing JIT. > > > > greetings > > Benjamin > > > --00000000000072829605ac2fe8ee--