Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108005 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74811 invoked from network); 6 Jan 2020 12:52:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2020 12:52:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2186C1804D1 for ; Mon, 6 Jan 2020 02:57:20 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.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 ; Mon, 6 Jan 2020 02:57:13 -0800 (PST) Received: by mail-ot1-f41.google.com with SMTP id b18so49455479otp.0 for ; Mon, 06 Jan 2020 02:57:13 -0800 (PST) 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=ofaAOxXYcj6wkIZ4zgkgR4y5tCAdlw4O2wyZOGdm0Kg=; b=i7Io8eufjSrIu3Q5Q2fmBklfC3UNxIXRW8RfULIWrSLxgVGBM8Ie7cy0WIoJoVwekf /VRY69GpjfYlkkmw6u6EUf4nG/CBRV+KZCEAzV4FC8QB+t/4lYkxXKNqKx6wWhuQfE80 8YZW40nXYyopqvsU23mXkaXqzJux4Y9rK/rkErQGFHrM8HnNG9dNZ643wRs9jS6gN9a3 MOQwF8C6BzDSjq1JbBSY2avXACXKeduY16vWSYNK5CK13+ehfISXlmAey9svrBtPpguv 0nOcNLXE+2S4ap627FllSfhekBqhQ3xhTlzHcc0eKp4q1Ds6Lz688xxjpdVjjWyKKCVX cIPQ== 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=ofaAOxXYcj6wkIZ4zgkgR4y5tCAdlw4O2wyZOGdm0Kg=; b=U9AYFrKQ0ClQr5xMlXfO6svrYRiIKtvzfqxuYqfIBNzSlLEEpq7ibyEdovQ6qDI8gj f/7TfzzbluxwDazF1lzg5jRFNjr4dVNAXR0JXcWztTSNQdsRCQgEJJo96x2RhUl+8YDg vf5Ojybz0W6ZGMbhJXVnXu6FmrFVEKYSpTIYtm22Jq6Dlz4hBaxKyQNc1l7PQvdGhwoi UsNiy2UO3S76I4/e6ly8jIfEIvfF2cj3Q5NPOeVEgzsLL8k6rP+iL3SE1TzKJ67xDTDG jLTEKGsW99lgcFst5TE8c5XbnRd6Wpm0vJOqN0Peb+4PHDG+2vbuJguxTNDrmk5ffVy4 cFdw== X-Gm-Message-State: APjAAAUKG8PF4ueqbbeU+nuwKD1J2nuY5ypPFQ2ymaEekk/WPePMzep5 WD7YS+aYeMOlbH/8ASVrcsGSBtxjczwhuEC83jurwg== X-Google-Smtp-Source: APXvYqwoQ8wvYufjd/J5NKnPwik6ilwxXnwgU58R/gBvVdKJQzlXaoaQEiALpUctUmGZe/mVxA+RPLuikGP1eZGjcPU= X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr115522828otp.306.1578308230662; Mon, 06 Jan 2020 02:57:10 -0800 (PST) MIME-Version: 1.0 References: <5e0d723f.1c69fb81.e2ae8.24e2SMTPIN_ADDED_MISSING@mx.google.com> <74F2DBFC-E63C-428C-A37F-2D0CEE15AD0F@newclarity.net> In-Reply-To: Date: Mon, 6 Jan 2020 10:56:58 +0000 Message-ID: To: tyson andre Cc: Mike Schinkel , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Initializing constants once, with code? From: robehickman@gmail.com (Robert Hickman) 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.