Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129418 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 4E99C1A00BF for ; Sun, 23 Nov 2025 19:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763926092; bh=26TJMgD0AH5oacwP0fccs07sTW6T1SxtsaMKsZBYAP8=; h=References:In-Reply-To:From:Date:Subject:To:From; b=G8bWEVgd/aBzqeOY0OtUeSVqFr8Sl3wDL0FkaiB0GdsMpwco9dvhmUH/286CK/sZx WSoamkT6jPJbTRIkVeWSqfhIArP4aeEP31CwIEuB6XaN3NVQVSEgx/qb2FOCb/1RDC yWm5m4FbabuaEoRw+Tc1kDT5V+ziDXqCTQ6rTy0NJKZlygexNVuWxfSI5dNha0ab+k iCmu+0qdHd0zBjelUxhwXXmEsTPescOQRtCHxz69JBYrZgEb1LeC1IVUizOxHrBvfZ HQYXVriM0wJ9Vf7VMtKB5LqBo1XjlZm9aejOtSkqSt9s70w94+wMkV7jAqhb7TQg1y jpeyfSvOhDkHQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DAA171801D8 for ; Sun, 23 Nov 2025 19:28:10 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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: No X-Envelope-From: Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (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 ; Sun, 23 Nov 2025 19:28:08 +0000 (UTC) Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-93516cbe2bbso986152241.2 for ; Sun, 23 Nov 2025 11:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763926082; x=1764530882; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=26TJMgD0AH5oacwP0fccs07sTW6T1SxtsaMKsZBYAP8=; b=jK7Capq2G/U4PKANxK1aNld047VFBiGB+nf8ajmRGczBQpKv1Ec7oaB//HTCg/mZoc F2H2Zl5Et7DseApzPfJSm9Hkkxa+drVdGGEV931o1fXu3gkdGsn3MnY4utE26wrIbnSH Ia5e6KVSO4sm2duDB8RkanyKXhXN/Mo4mq57ZB3w5ISihtdcDtrt3rMgEiHkvk4Xf91P wXvj5CbVjf+3l2H+MUE7QoSgwRT5UALuFyxYJsF1KDK2J5WZh4eBMKbW2SHHk4SY/zK1 hX2q2oBdxE3w5JQhlNDX06HS5t36eU5dGdCAlvE46HLkvHxLgqBM8OaUwSDxOR1xJDIY MUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763926082; x=1764530882; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=26TJMgD0AH5oacwP0fccs07sTW6T1SxtsaMKsZBYAP8=; b=BaK9R1m8SdyZvIS93dZ5q9QoJ/kF5fEnz149hB0dhvrlpgdP8FpOm+gkVfWYDyooUt j56QPOA0oZY8YO46uwJ2JEWcQ9N1Td/EIfUTkbrnNCaQAkxXiZmAaIymVKUKji0MQLAk S4cNIb1dmHGuc+tWhf0OdV9M6Y56eTiYXq8L1YXmJvhIcMEjERhXIV5UIRKjpHS9xeu8 blFoz8hjBM7L9N/hfqXu12sSySTRTCNw5N3lSStZiJsDLJpMGcaVhMlGGiFTwNbqDmsP pRhxlhentqcs4NjvvJ7BFzq2RFFyo8PaFczbZZxwSOF3NFVmMNGqKHQah3zGbrPanZ40 nV7Q== X-Gm-Message-State: AOJu0Yy9+9c3rXDDjf79lolsNlerYVhDdCWihMkCHgV+le8CaKLkFEEe p1EtQ/Vp+Zu5z1AMNZf4O0VN7Hp/KrmfnrC3yL6QfL3XWKm1g5Yj5i1Qrc2GXswNZ6b7/AViTa3 p1KsW0Qz6vNl/RfzOQKAk61Z3woTaPN2rAzoGbBM= X-Gm-Gg: ASbGnctn7dTZ8JqhNO8hBDXt/tDWkNIJ+R7cTSrCl4FSHnXOhx9FYTjlOKnYeQDxPjE klSxEnTiKlRH5mb5oCTZmqkn0WuNfyQ5XwTN1OHGlzMNx1725dPorE6t8/K9DBDTWNgz6UhaoGB IzD4qWetV9F2Yevs2V4cc8CoBexZZGHrYDkLDgYvXxxZzzpMwsHj+bYqGR+R0kskOroOIE8uhH2 YtjYqOJ69zZ08EoW/73FrbrGKoWQmMDIy882ss1ZBBUh+aijsHNQgtxltubqxXZ2og/txmFVrbX PrPGdHxy/LT3kr/CECyG0lEEmcY= X-Google-Smtp-Source: AGHT+IGAEuE9Z+kBdReyw+9SVdBYkqAQld1h5VRpwIygt8lD+xF12GoncyLjScCiHWdAwtb+B/Nq3s2WJc2KBAw2sJ4= X-Received: by 2002:a05:6102:598e:b0:5db:f031:84ce with SMTP id ada2fe7eead31-5e1de35f809mr2862577137.29.1763926082530; Sun, 23 Nov 2025 11:28:02 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 23 Nov 2025 21:27:51 +0200 X-Gm-Features: AWmQ_blcBMspHI4E1RdbQ3Lz3-aypAY3TVI--xVmawm94UIRvfZ8ULVVs7gBu2Q Message-ID: Subject: [PHP-DEV] Re: [VOTE] True Async RFC 1.6 To: php internals Content-Type: text/plain; charset="UTF-8" From: edmond.ht@gmail.com (Edmond Dantes) Hello. Bob Weinand shared an excellent idea about how Fiber can be used together with coroutines without breaking backward compatibility. It is enough to automatically assign a coroutine to a fiber, and then the code inside the fiber will be normalized relative to the Scheduler. Fiber receives the same properties as a coroutine and can be used as a stackful generator. This change makes it possible not to block Fiber, but instead allow it to work together with TrueAsync and be used in cases where stackful generators are needed. A Fiber blocks the execution of the coroutine from which it was started, meaning its symmetric behavior is preserved. Respect to Bob Weinand --- Ed