Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108013 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79568 invoked from network); 6 Jan 2020 22:56:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2020 22:56:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5ED851804F6 for ; Mon, 6 Jan 2020 13:01:43 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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-yw1-f52.google.com (mail-yw1-f52.google.com [209.85.161.52]) (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 ; Mon, 6 Jan 2020 13:01:42 -0800 (PST) Received: by mail-yw1-f52.google.com with SMTP id h126so22470374ywc.6 for ; Mon, 06 Jan 2020 13:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xvD1V5krusyzmcpA4fS/U6zQM76FXQTBRNBLcC+Nux8=; b=Ez/hdMsqNdfeLwVwWha3ce/UGt79mxwABuoViA8d33V5Axtqyk0CSPGEjctCwWQbF8 LsaJQ6+KFo3qoPxOcCaL76Ld9Hy+En3/Nxfj2VXs+8njLXV0Z6mc3/cxOOAGST0g3N1e 3vaA/QnFsBUxlSI5G7sMJ8VtFbv8imhk71Xg9ZrzG2VGllvrYB0OxW9SmG0KKEH2aDDV 1WSYXugHfq4WLd+R9tHE7X/iRsfKCdIcF3Y0TtlU1phmDf0ge+lyJwRflUUlibpA7ixA ukgPhnLM/+mnCEjjZuXmgezyiekMO0stz9m4oDYg3IvingoeVsPXAgjw9PuwUR0Ws1wc s9Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xvD1V5krusyzmcpA4fS/U6zQM76FXQTBRNBLcC+Nux8=; b=gkcAUEmmVU8rKXGtA/223FaTzkJbYNStDZR01EogI9flVysEMYEMK3C0vXrM6457aT 4yqHBMnOrZHQl+yQPjLa7mNcdXsfu5Z8szRI39Zxe58Axy8sjGj62M7jagmmSTcYeok+ ymolQQUU91utpBjfIXuQ70vWM6P5pvSywqaUrR2SmHoCxxILezAKbFccT7A352QpnyOW n1e5qQLrxWoR09mRBzqrAAJ0JnSwzP6a7rdQjgJwn2eKL7QCpr6lKTthAKeniXFEfkkY 1CuQEX2QLm7Vei9yL87/VkObkwjE4Karxu5PAxXaOlJfdJugz5OqAjHdlJN23yTEcsKl bNGQ== X-Gm-Message-State: APjAAAWSVUfprUbuat7Scs03up7ZDrr1F0TDW4+JGcibshTVoy3oWQE/ IL+Kd2WvJLeAXrMa9Hujjs4JdQ== X-Google-Smtp-Source: APXvYqycz7ZbstZqKkm07vqdHryBqS27TSPKjxiATSXsyLRM/mTPwBx6ADE+rJj/NNHarV2jODFdIw== X-Received: by 2002:a81:89c4:: with SMTP id z187mr78886712ywf.83.1578344500785; Mon, 06 Jan 2020 13:01:40 -0800 (PST) Received: from ?IPv6:2601:c0:c680:5cc0:d059:ddab:12ae:4ac7? ([2601:c0:c680:5cc0:d059:ddab:12ae:4ac7]) by smtp.gmail.com with ESMTPSA id s68sm28235672ywg.69.2020.01.06.13.01.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jan 2020 13:01:39 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Mon, 6 Jan 2020 16:01:38 -0500 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <8D8F3E7E-137E-459B-B13A-9C7940731243@newclarity.net> References: <5e0d723f.1c69fb81.e2ae8.24e2SMTPIN_ADDED_MISSING@mx.google.com> <74F2DBFC-E63C-428C-A37F-2D0CEE15AD0F@newclarity.net> To: Robert Hickman X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] Initializing constants once, with code? From: mike@newclarity.net (Mike Schinkel) > On Jan 6, 2020, at 5:56 AM, Robert Hickman = wrote: >=20 > Would it be worth expanding the ideas of programmatic constant > definition into a more general compile-time code execution approach? > It would work well with preloading introduced in 7.4, and could allow > some of the things frameworks are currently doing at runtime to be > done once at compile time (opcode generation time). The > work-in-progress language JAI has a very interesting compile time > execution system which could possibly be a source of inspiration. That would certainly be interesting. I do not know enough what is = possible there to opine. It it were possible that might be the best of all worlds. =20 Anyone with experience in that area able to comment? -Mike=