Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127695 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 044581A00BC for ; Mon, 16 Jun 2025 20:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750105973; bh=6aeEzKs+6ES3a/RgtGFlzlawC9XAcV//j8Ofh1TycgY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XZhdUQacXRAGPE5+M9Y8LnLWhsy8U6vjkgg8IOTz1znlVw08ZUD1+aP47x+TAifx9 aSjfjVypXgnk8focpZFJjw7lq1cIsMh61T+/od/Y5nMMyoQhh5DUzcITz1yqWw7C68 EbP/o44CG/8AZOARLmKZIkVWhOIudO4SH1x/OY6t9GeFlSjg1KJZJZi0kt/XgcDDRC RjnBPYt+cqU+WB+3qZCrt6Gwc4RGVukpfuCX1FTvyHVe4hvmnw4SV5Fiwg4FiMlnWN Ud5CajPma4rp9VT7qWLGqFDR0dmAQZ8a2qXMFEwpvPirCeZ9mdX5nw2u/milm5QkbZ Io5ozOcCxl3CA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 09D16180053 for ; Mon, 16 Jun 2025 20:32:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Jun 2025 20:32:52 +0000 (UTC) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-711751e2d9fso1965407b3.0 for ; Mon, 16 Jun 2025 13:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750106091; x=1750710891; 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=6aeEzKs+6ES3a/RgtGFlzlawC9XAcV//j8Ofh1TycgY=; b=D+aMU52MyVihYHIUOqmrrXmZ7n473OvgIdEo16RVTRKjJe1U6U7760Pz/rs5S1chA6 yk2IaMbCeQim9lH1c06XG4jaZCEX2j0aT/adiCUPGsWPVuSL+mciTO5Xi9bnJ2Aacobv GttzbNOL7wbNvaRfoNuV4S+RLLcBEcnmLB024S84ECX5EO7bk54Kk2BaNSkgPX2BxYz7 3PwKSJk44pgfS7ca7ieZtHcMlpIYrEx6mtiBFNadMkJ91xaRUs2978tFmLv+yaaqK0fs TeDKDqqF4tGGXpq34LXLuT26rETsklpQedrZ/0snECxU0x3SQ5x5Z0rmSmV/jqGx1w7S gp4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750106091; x=1750710891; 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=6aeEzKs+6ES3a/RgtGFlzlawC9XAcV//j8Ofh1TycgY=; b=E4kSHq0z1IDgwizZsCOAsM4UMFDWlCAO67Y1IQqevuHCaB1k6GDY3jRo6EILtqGg0G 2WRAx5VMwIuEW2kWjJOH30wQobTwhECmE+HuyIyroxTzBJLJvAOOZ8asLGX4BDAeQ8Cb rJ7io7+3ZlTERB6lWvu/PyAYfrov5SAPBFDT7WBQY5zq1xpO3Hb386SXkSyzRNPSjcKu keiGONWf5yZNnmyTWWOJTEZ+pofI7dzNn0mqHDOFznPdoxLXx62Vs8Ha47Aqze701pcZ MmmpLSP1rpB8hClcVbk25Au5DCVwHg9HtBMkR1m5EL9Ztcxv/HbGrEqg/ipSOkklePph sSVg== X-Gm-Message-State: AOJu0YzCQQU45+aVT7vicJAY06ZJgvGimizTOHs4t5yyQ5Ax/+4mL/9C SM9WVW1YFF75mqLDRZ4z1N0BkvwxdfOtm5HuLS62UhtCUYxjgJIU425TS7eZ57Djj8hf+l6MB7X oEBl4vvwXpbP//yECEdns5RoWsSqfoO4BeaEe X-Gm-Gg: ASbGncvpsK8zf/fGEz6o48X/Mxe1PrQ6LTBYqrtjUJYrTMIIzOrwJGCzRkIeP/LepCj +5bYr9auPYRWZmErmjLF+38wGMLM6UnNzJQ6VwKWTYoQ1z431yQqJxO1WUJsZ3lFdB81AXl0KkQ ZnoZcqQxxfW2FwFSumiy3cy9M4tcrsLwkVyeAl2PQdQ4YC0HFY7qqYJWaswXCgbx5VJqJTg2m2u tKC X-Google-Smtp-Source: AGHT+IGuAbsGX7s2ENU8u3C5yv/gFnynyiGxVQuetCL1sO+Z8D4nHY3/1IzcL3ijfqcjwPVv6WB4vfPDZ1MjtsGdn9U= X-Received: by 2002:a05:690c:ed6:b0:70e:7613:e365 with SMTP id 00721157ae682-7117538be15mr66230737b3.3.1750106090755; Mon, 16 Jun 2025 13:34:50 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 16 Jun 2025 17:34:15 -0300 X-Gm-Features: AX0GCFvLu7yQonFhJ9CFw_cONzVzCMQnPW294uPrizKj1Z0whCBhGoxFu4EMNLw Message-ID: Subject: Re: [PHP-DEV] [RFC] RFC Discussion - CLI-Only Development Mode and AOT Compilation Architecture To: Rob Landers Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000dbdbcb0637b65365" From: deleugyn@gmail.com (Deleu) --000000000000dbdbcb0637b65365 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi! > I=E2=80=99m sorry; you=E2=80=99ve lost me here. > > How does "short-lived" execution fail in serverless or event-driven > environments? Isn=E2=80=99t that the entire point? Serverless is basicall= y a > reinvention of CGI, which PHP excels at. However, the people who built > these runtimes didn=E2=80=99t realise what they were reinventing to run l= ong-lived > applications and didn=E2=80=99t include PHP because "PHP is dying" for th= e last 20 > years. This is a failure of the people who built the runtimes, not PHP=E2= =80=99s > execution model. It is a political issue, not a technical one. > I just wanted to sprinkle some different perspectives into this statement. AWS Lambda came out in preview in November 2014 and was GA by April 2015. While the "PHP is dying" mantra didn't help PHP, it also isn't 100% the context. Back then, PHP was in the middle of PHP 5.4 / PHP 6, no predictable release cadence and to top it off it has a hard module-based system where the PHP binary on its own: 1) doesn't handle HTTP requests 2) doesn't have Request/Response object 3) requires a collection of PHP Extensions to reach its level of usefulness (think php-mbstring, php-session, php-xml, php-dom, php-tokenizer, php-pdo-mysql, php-pdo-pgsql, php-mysqli, php-curl, php-openssl, etc, etc). Building an opinionated platform that provides the flavour of PHP you need is no easy feat and by the time AWS started paying attention to PHP on Lambda, https://bref.sh was already delivering an amazing developer-experience for free. Nowadays, you're more likely to find an AWS Account Manager recommending Bref to customers that want to run PHP on Lambda and even sharing content around Bref than trying to reinvent anything. It's almost like if PHP wanted to reinvent Composer: high cost, low (or even negative) reward. As the author of more than 123 commits that lead to the release of Bref 2.0, I tried and failed to build the onboarding experience that languages like Node and Python have: write a hello world straight into AWS Console and it just works in your browser. Bref requires you to use Composer to do the same Hello World, not so much as Bref's shortcomings, but more because PHP, the language that we (myself included!) love to say that powers 70% of the internet, is unable to handle HTTP Request / Response without external tooling, like most web languages can. --=20 Marco Deleu --000000000000dbdbcb0637b65365 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!


<= div>I=E2=80=99m sorry; you=E2=80=99ve lost me here.

How does "short-lived" execution fail in serverless or event-d= riven environments? Isn=E2=80=99t that the entire point? Serverless is basi= cally a reinvention of CGI, which PHP excels at. However, the people who bu= ilt these runtimes didn=E2=80=99t realise what they were reinventing to run= long-lived applications and didn=E2=80=99t include PHP because "PHP i= s dying" for the last 20 years. This is a failure of the people who bu= ilt the runtimes, not PHP=E2=80=99s execution model. It is a political issu= e, not a technical one.

I just wanted= to sprinkle some different perspectives into this statement. AWS Lambda ca= me out in preview in November 2014 and was GA by April 2015. While the &quo= t;PHP is dying" mantra didn't help PHP, it also isn't 100% the= context. Back then, PHP was in the middle of PHP 5.4 / PHP 6, no predictab= le release cadence and to top it off it has a hard module-based system wher= e the PHP binary on its own: 1) doesn't handle HTTP requests 2) doesn&#= 39;t have Request/Response object 3) requires a collection of PHP Extension= s to reach its level of usefulness (think php-mbstring, php-session, php-xm= l, php-dom, php-tokenizer, php-pdo-mysql, php-pdo-pgsql, php-mysqli, php-cu= rl, php-openssl, etc, etc). Building an opinionated platform that provides = the flavour of PHP you need is no easy feat and by the time AWS started pay= ing attention to PHP on Lambda, https://bref.sh= was already delivering an amazing developer-experience for free. Nowad= ays, you're more likely to find an AWS Account Manager recommending Bre= f to customers that want to run PHP on Lambda and even sharing content arou= nd Bref than trying to reinvent anything. It's almost like if PHP wante= d to reinvent Composer: high cost, low (or even negative) reward.

As the author of more than 123 commits that lead to the rel= ease of Bref 2.0, I tried and failed to build the onboarding experience tha= t languages like Node and Python have: write a hello world straight into AW= S Console and it just works in your browser. Bref requires you to use Compo= ser to do the same Hello World, not so much as Bref's shortcomings, but= more because PHP, the language that we (myself included!) love to say that= powers 70% of the internet, is unable to handle HTTP Request / Response wi= thout external tooling, like most web languages can.

--
Marco = Deleu
--000000000000dbdbcb0637b65365--