Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126446 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 D42C31A00BC for ; Tue, 18 Feb 2025 12:49:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739882786; bh=qGhIfnDBPP+JpeSuSIyQCmAjWrKJnrehWnCnvSdoTZI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aFtZVvPKRyL8hMR2ii1RAs2wRam3zUn569C5VTFqFKaySWlz0hy+fyrmgqZSc+/hr cjcLJkWRRWOAd6jsnYFoRH8nc5YKaNUVNiu41fmgPqvsijTfbt3eUFCdSyFfWW60bm DTtOGEmcZG4miix8jqKVhElp+DqvR9sLN3yJ/ZWu7eoOaL7DXjzFZDQakIGjC4Jo2S rt6EJcXVpvp+vx5kf+hwJ6f3rr16DCW+3HGm1KOJU4UbqA601H85Z0T1q3EH6YBxnH 6oFFkMQLfTqYSDS/ImRiIDeMAb+oRCPKcUb65X22tFPaKJ3vsumeteHC3XhRL28nV7 yM811rRAdym+g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9CEEE18060F for ; Tue, 18 Feb 2025 12:46:24 +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-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 ; Tue, 18 Feb 2025 12:46:22 +0000 (UTC) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-e5df8468d6eso1166306276.0 for ; Tue, 18 Feb 2025 04:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739882943; x=1740487743; 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=qGhIfnDBPP+JpeSuSIyQCmAjWrKJnrehWnCnvSdoTZI=; b=P03qTNAAAHgc8qrV/Z92HChH1OaboJnUbge1GI70xVoaYn/Eo1gQb+AoPSnu7y5HWV NsP2Dz8hr4i7e0ICSI0YsJOwWykwBZOuJRnQQnR5GnG2uB3p8hUcWyQe9sbN5f8dZTvu TqJHq9OVbY2H9gTmqiLxjPVHgsJCainF8F3Vq7h7NeOlAxDyXsdQNCPQ6vy3oC9Ykn8m gzU4E4EotRMAQqmGkUOZZ6tYpV2upqBxx0Kr9E3YMIsTrjoh4uYedVzgEUGExI+eCczQ ONeh5Yhs9LH4hM5S78Br3J2H3Hy3sSh64HBhH+mD27dbXTXpK4UkHE7vZSMygy2rkVie O1qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739882943; x=1740487743; 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=qGhIfnDBPP+JpeSuSIyQCmAjWrKJnrehWnCnvSdoTZI=; b=ZefKYVtz3mYpArpm7fumYrGZo+g9ylioXd1zJRk9SvVd43fcpCl2GXcvblDyOETxG6 VPulxkPmpBfNI7FMLb/xC9DVjXlkYMz339WCPCiefvBUBmhuaq8/KMwOPFL0gDUWy1XI NGtTWUG9tigJrEexgujg13PFk9HXN3d+ld1CJE8DX/9IPmRRunaoT1fc6b9fXDzMCVMa xiASBhzYeXV4JcUPOI30Iq4dJcSrx778G4s0Z+DD/TDOYnVQ4dNvshLnwJqOjGwx92HJ eNMUfRpiEon4XswwfNAGIlxoKWsfP5AAF72SSKLACrIAZTh2QV40qVW9/2pIQPAZAJRp pfdQ== X-Forwarded-Encrypted: i=1; AJvYcCWK6qAcczdSZEGbWoD9Mpx3h9+L9CeBWkdoqK4E3AsrrPjkzwqpg2T+G+mCijWu8mcOG+gp1zdzSIc=@lists.php.net X-Gm-Message-State: AOJu0Yw10SSgmWJi8cOMLEsAo5KRxeL4xyHkbjAUSl84pqzKItZAHHvE 7VirpUIGJ8xKK5LnNpvcDPeX5g+B7azLCcaZ/6/yQA8mT29vOE8srHHcnFnMv1FGF3lqUz+9iWY 0IIyUb6j6ss06OJ8HxdMj299bVP6GivDDVF4= X-Gm-Gg: ASbGncvjivHiv06lVPepMJQfcHFsTALfLfqFjO8CxL9S0KF+NDUV+UKUo63icvjAHgm UuxVeMSHUSkbuAn9FZN9HXiUWmYQXqhsERkU5mQgTk7QYkXhSp5KGyx99nSS4ot5dEIOdkkxk X-Google-Smtp-Source: AGHT+IHYOXlLUdVvzvhayw2CIRTsu97nnAV9rW3g8bvK+ObKucl0xC40CIHvt95bAMyiECParv8INlwZUbkxsVeTDB0= X-Received: by 2002:a05:6902:1a41:b0:e5b:18ff:8cf4 with SMTP id 3f1490d57ef6-e5dc901f72fmr10172274276.5.1739882943105; Tue, 18 Feb 2025 04:49:03 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <24becc76-b67f-4805-b33b-cd4f9f6d0b30@scriptfusion.com> <88656d56-7bfc-4966-8fea-4b4ea883f1f1@scriptfusion.com> <67f5fc49-e14c-42f3-83d1-724002562554@app.fastmail.com> In-Reply-To: <67f5fc49-e14c-42f3-83d1-724002562554@app.fastmail.com> Date: Tue, 18 Feb 2025 14:48:52 +0200 X-Gm-Features: AWEUYZk14cjqppynVTPxseNSRw4ldixdtndxbCiv5fHXYh_Il_VHP6dK98YxYws Message-ID: Subject: Re: [PHP-DEV] PHP True Async To: Rob Landers Cc: Bilge , internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c6565e062e6a10d9" From: edmond.ht@gmail.com (Edmond Dantes) --000000000000c6565e062e6a10d9 Content-Type: text/plain; charset="UTF-8" > > I think what bilge was trying to point out is that there should be > absolutely no change on existing software with or without the scheduler > running (for software not using fibers). > I thought the same. But where would you hide Fibers? They are part of the language. The existence of Fibers is an unpleasant issue in the context of language design. Essentially, they break the integrity of the implementation by creating a "backdoor" for user-land. So... various ways can be devised to disguise this fact, but they will all have drawbacks. Of course, you can create the Scheduler before starting the script and run the script inside a Fiber. But I'm sure there will be someone who will say they don't like this approach. Ed. --000000000000c6565e062e6a10d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think what bilge was = trying to point out is that there should be absolutely no change on existin= g software with or without the scheduler running (for software not using fi= bers).

I thought the same. But where would you h= ide Fibers? They are part of the language.

The existence of Fibers is= an unpleasant issue in the context of language design. Essentially, they b= reak the integrity of the implementation by creating a "backdoor"= for user-land.

So... various ways can be devised to disguise t= his fact, but they will all have drawbacks.

Of cou= rse, you can create the Scheduler before starting the script and run the sc= ript inside a Fiber. But I'm sure there will be someone who will say th= ey don't like this approach.=C2=A0=C2=A0

Ed.
--000000000000c6565e062e6a10d9--