Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116142 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22128 invoked from network); 23 Sep 2021 06:12:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Sep 2021 06:12:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 165C21804BA for ; Wed, 22 Sep 2021 23:53:52 -0700 (PDT) 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_H2,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-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 ; Wed, 22 Sep 2021 23:53:51 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id m3so22678120lfu.2 for ; Wed, 22 Sep 2021 23:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+DPtGD8fjxWEyXaUGSSw6CYd7xcmyvaZQ9ZC2eg1rHQ=; b=p0FhbgnIt2BqnxFeh4hdRBkxybRQ8UaNSBMwFE6ap29IrnZtH1gaPYWP/f8K2xEf1e AhGtgNr8BcG3rk3BoFKYgfAvM2zGwPZTH+Xgk2o96ySbuc3FnAfoDcjKgNjvpPoQJxuG LLIRIcXpJ7DBt663kl9jdX4P2o+Ib2L07WxF4cTqE8oikFSFMuZfItpGiVTwPJr7U+ts BfKxs/BugUacSycazHDp2wernk0HwzR1WofiwJEYKjY5dFC/WZQl3OMp4HskOIEUXYkF DfAIpK+LGXwQIQcikreRPM6QsHr4G46NzhIZiGxLdeFKFrDJvsnxv5q+aD2/gdl9dP8t m5Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+DPtGD8fjxWEyXaUGSSw6CYd7xcmyvaZQ9ZC2eg1rHQ=; b=HonHPeicZHsHQl/p2QGHUdhPorVFxjTKO3COaK+WDI47eaOqhXGE84iYLeX0/zWzhC ZSGbzxWU8g+mGFJBWAUNAxEm64otbEIRxVl327Am01Aed9amd/FidrWIRMjWYE/8Hq2M DW8ijnuhL7ubIAagCGqq/JHBKkQCFPiUtPjUfctULnmMhVnSQpO1bbUOjzKI4G/s8VYX oPSFt3jZocj1HDIrzX/eaoyHKjKaeevUEooiSDiGpnexNp+cV/bHg5JcjtHKQo/jeqxj 4GzXwlUamtFRCeFQA4gpI8gYE0KSkogZT1jYhqA1ih4cu3En1YizJ/SScbTHD/pNTrme ydpA== X-Gm-Message-State: AOAM531jQWl37ezGIHHnrGf1rze94bTR6LbQhglmBlYHUWUFgF9nejUI NYeg5mgCwZkwEEd1xF9Ny4YQkkg/UpPJr6PsGms= X-Google-Smtp-Source: ABdhPJxU2IyfwlToMO/YApVv/C16xbh/WZp0/XmJ/+9g5S2pCUx5br+9i5+9OrTDr+K+RjpKvbQUicBSqGljbiqsAdI= X-Received: by 2002:a05:651c:10a2:: with SMTP id k2mr3762774ljn.262.1632380027958; Wed, 22 Sep 2021 23:53:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 23 Sep 2021 13:53:37 +0700 Message-ID: To: Tim Starling Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Locale-independent case conversion From: pierre.php@gmail.com (Pierre Joye) Hi Tim, On Thu, Sep 23, 2021 at 1:32 PM Tim Starling wrote: > > Please consider my RFC for locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii very good one, thanks :) > https://github.com/php/php-src/pull/7506 > The RFC and associated PR ended up going some way beyond the original > scope, because for consistency, it's best if everything has the same > concept of case folding. I saw this as an opportunity to clean up a > common kind of locale-dependence in PHP which was previously inconsistent. Good patch, I am commenting here as other or more discussions may be better here. I wonder if either JIT could be used for the intrinsics support, adding neon, sse[2-4.2] or avc256/512 (the latter would basically allow most common strings to be converted in one go. If not, maybe split implementation however runtime cpu support would be better. Many distributions built with SSE2 flags but are actually ran on much recent CPUs, same for ARM (ie. graviton/neon f.e.). Thoughts? Maybe Dmitry has a better idea :) Best, -- Pierre @pierrejoye | http://www.libgd.org