Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126655 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 qa.php.net (Postfix) with ESMTPS id 6D0411A00BC for ; Sat, 8 Mar 2025 18:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741457632; bh=Ww9enNhWQSWVgb1FgmRTwQu1zH5ifN5ofnN0r33BylI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SOTJtSS2Gk2geYD6j6c3vFcyt5E6GBPY9Do73qDQ/bTPW7zk3DkEjn8B5mpFecrOM ue7su32NT3mLxTJketuEpp8OM+HS6m5iCNRznztiBZ5sl7I6exKAEf47nNXXagS3L4 oKO7tQFG8aEFVS29/tAL8eVGiEHRFWMQvOBQsS4+NIqbB8sApTFC+XKLZQ98pd7Y6/ mQO5fl6U/UjFbjKg9dJ7Cud3a2/ua/6ZieKvmB/2F5LMoifHm8TnF1EyPodJT67IVK LiXOyTwr8unaQIjLrwaslFpAkQ9iqP181hNeubo5assagpzUy83OcgXpPc4Ii/5pIh /WDKBkFvzobeQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 801E418004B for ; Sat, 8 Mar 2025 18:13:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 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.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 ; Sat, 8 Mar 2025 18:13:51 +0000 (UTC) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-e5372a2fbddso2483757276.3 for ; Sat, 08 Mar 2025 10:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741457785; x=1742062585; 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=AC/YxJENSNm3dkDeNYOOyh9gxJcflgnsiLfyvMrp7HQ=; b=iqhtftDEYCUhN4aNO9y9LtGFdYGPg71/AVD/H5DIhK2kROKc7KAjHVCpqwyquUToGE oz0iEgmsioHsItZMj3XcG4ZRiYUiN5ezrZxhGPABnCM16HK7oNMUktWrw4wuuLSkdoy8 P3vrqFt+83I6WmLq7tiilY1mXENGa2osvlvpMGEBvgCrWSI0eKCY6rOIZ7WRU3cFc3ll /XAt4JLutDxvKgfdge1B5BZcn0xpqL3tPt8qz0ywWnAGl55MwbPmI3mM+V19VzW+tahp MQR6kfo9mUKHAwrMgtgyjDVwYXDDNLcjUN9krlLEGvLqRoT/hgJt/xPkAih1xkfUzTHK 7KeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741457785; x=1742062585; 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=AC/YxJENSNm3dkDeNYOOyh9gxJcflgnsiLfyvMrp7HQ=; b=YFl7Ktobah1toPBCdc3hD7IRBV0AwZn5/9tCdZTjsqepahSfS/ipYFESzUq/5KvJU8 ptzOJZVWyd28LFJKHEzVUqXKhiwAegqe5K3EAuQroIR8RdwbK2hj9FMROLfV0JHknMnL tsaJgbYRtywKUTqkZb8eXAoE9fzpNGeTbg0PBfVaBVEIaxEOCMl/DwN+LNKOVDuq13L1 kVEVnA5sbo2Kydm3hV1I9HiID8eLY00h/X3sDFtti/6rTPcd93+MakcX++Plu2tpjc/h aqX4lHYHJPd7SsowS6mkeRHD3sXN6NLDY842Ghcp2OYxvWwBCNgLsz3J8LkII/O+ILkI aBlg== X-Gm-Message-State: AOJu0YzokR9pRWSPHrLES6g/hgWI7HdeLEJJX+a3uqfH1GVZdKnTuvxJ XA+iuiAVYh6HgDFhB+ALQ3xoDbWSPQAk2gibHp1wTeIfsZMbNeTT54FPFWhWzKWP81BRaHyZYUw hsV0yIYyMk0JeKd8ogjOG8MK/p4A= X-Gm-Gg: ASbGnctf+YtkIFf1ij9p4TWCphALPlukS4B34TrKROlxj56/tn9GRbZ8nXWRfGsd08X shnAED+u4U6aoJF+JNTek8lOYGs+LvfcsWWXxdRsVDQvKm2i10tYz2KzXtAWu4KcP9xK7XmY/qF VHOro4QK4oaTmiFALazAz142IMww== X-Google-Smtp-Source: AGHT+IERNudJxcUc+WL8v8lDfs4RDGYIEM5EBFYeacJjNBFsq/kD69n9KwAex2TBrOyg7HSgo61oZWfYQHyE8O8NwqU= X-Received: by 2002:a05:6902:1028:b0:e60:9ea8:d9b2 with SMTP id 3f1490d57ef6-e635c1d94bbmr10157774276.35.1741457785449; Sat, 08 Mar 2025 10:16:25 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <9964db8c-0ffe-43d5-8246-47fc76b07180@app.fastmail.com> <78a03dd0-fd4a-4f4a-ad8a-37e5704f06fc@app.fastmail.com> <08c8ad0b-e8f4-46e3-99f0-b80748d40b89@app.fastmail.com> <07973EAE-2D83-47A8-8FA0-84286C77C02B@rwec.co.uk> <48d66433-3ae9-4895-8361-7c81a0a3670d@app.fastmail.com> <8599eb8b-d4a3-4cb8-899a-25b134e0d64d@gmail.com> <74c4c726-63aa-44e0-84c9-840e13a65a4f@gmail.com> <9b7ab30f-5ed6-400d-b941-1291e9185286@app.fastmail.com> <9a2e81e8-3534-455b-879a-5a45c85b3ba7@gmail.com> In-Reply-To: <9a2e81e8-3534-455b-879a-5a45c85b3ba7@gmail.com> Date: Sat, 8 Mar 2025 20:16:14 +0200 X-Gm-Features: AQ5f1JoAGaATHU2L0j2ILVBnDp0Ajx_HFSkUvBRc58a0ZXszElUPQd_hg5DV8FM Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Daniil Gentili Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000b17512062fd8bcde" From: edmond.ht@gmail.com (Edmond Dantes) --000000000000b17512062fd8bcde Content-Type: text/plain; charset="UTF-8" > > This also seems like a very bad idea: there is no reason for the language hide concurrency behind an INI or even worse a compilation flag. > This is not because someone wants it that way. This situation is solely due to the fact that the Scheduler contradicts of Fiber. - The Scheduler expects to switch contexts as it sees fit. - Fiber expects context switching to occur only between the Fiber-parent and its child. Of course, the switching mechanism can be modified, and the logic of the main context can also be changed. The problem is that, at a logical level, these two approaches are mutually exclusive. For example, the Swow project introduced a separate coroutine library (libcat) and abandoned Fiber. But we cannot do the same. --- Ed. --000000000000b17512062fd8bcde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>
>=C2=A0 This also seems like a very bad idea: there is no reason for the language h= ide concurrency behind an INI or even worse a compilation flag.
>
This is not because someone wants it that way. This situati= on is solely due to the fact that the Scheduler contradicts of Fiber.
=
  • The Scheduler expects to switch contexts as it sees fit.
  • Fiber expects context switching to occur only between the Fiber-parent = and its child.

Of course, the switching mechanism can be modified, and the logic of the= main context can also be changed. The problem is that, at a logical level,= these two approaches are mutually exclusive.

For example, the Swow project introduced a separate coroutine library (l= ibcat) and abandoned Fiber. But we cannot do the same.=C2=A0

---

<= p>Ed.

--000000000000b17512062fd8bcde--