Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127658 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 6A14C1A00BC for ; Thu, 12 Jun 2025 17:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1749749622; bh=e0utfG5Cq/Afo7yApWvgQxKpRc1tvID8DhrqvEjO2go=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QXX4w5I4nLz7DFOlG0+WUcAE4hTuQYA+Sndbh4UYmeUWwsVpHeJI7Qf2L5MJamoDG 2jVFud5CFRw1QdrjoXHtnRQk2fhyyRTKx8jOtLHyg/emiF3qaDrnxEFUCS5NC/1tP5 gLEOx59Cu5a4UY1QDf1QHpDzHAV7rY4VAXFZvl1lnPfvjxiViK1nANn5wgXXXIFLYf i64IYQb+EDX5Bd8tuhpHNkbUDW/qjEYQM1Aw9Uum2gmckoKhX5FPDKkY3uWC6YkmDH bgl/wD2JS8CYDRkCS3B/RpgkZF0HL7j9u7VvI7AoyeWUaPFl/ZoxKmCVYo0ofsBE+j 8bRFq7nCkzb6Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB9081801D6 for ; Thu, 12 Jun 2025 17:33:40 +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,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 forward502b.mail.yandex.net (forward502b.mail.yandex.net [178.154.239.146]) (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 ; Thu, 12 Jun 2025 17:33:40 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-71.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-71.sas.yp-c.yandex.net [IPv6:2a02:6b8:c23:36c1:0:640:ebf1:0]) by forward502b.mail.yandex.net (Yandex) with ESMTPS id A3348610EB for ; Thu, 12 Jun 2025 20:35:38 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-71.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id bZL6fFfLlqM0-g42TScFT; Thu, 12 Jun 2025 20:35:38 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1749749738; bh=e0utfG5Cq/Afo7yApWvgQxKpRc1tvID8DhrqvEjO2go=; h=To:Subject:Message-ID:References:Date:From:Cc:In-Reply-To; b=fD5IZEFb3vpVFt4niKKKTicov5tkr9oL4IqNPvcufimp+yBqAclqRSM0vRcfMNS/M nxNMEZt1Nd8CDXh3HGj3hD2CLfUMJsVOzi52Sk6tu+MzWT3ewEah7BJhxa7eLcuYhd OD9JKOfZba2jYj8SB68nEXBQl9Fr0LPJQLog6Q0Y= Authentication-Results: mail-nwsmtp-smtp-production-main-71.sas.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-ad572ba1347so195136766b.1 for ; Thu, 12 Jun 2025 10:35:37 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUbYmU3QUqa0ETYNvVqcTwtMAJnauTAQyJAcY9W/Kz2iuVW98+zP/vKT+GxF7kOYdfXG/0QzrzDcvQ=@lists.php.net X-Gm-Message-State: AOJu0YyIh0dX4hBuqWFQUvM192LWM3dqzz8eyoopsaS+ggzI2U3lw9BM SWdp2OwaX67X19Lu3rfYL+N6+TD9HQKkBjVkUhX9mhjqM9nLbBssWtPuus/+kdCsfVJMeZUKrlk HA39rCrBHQ7fAi7ZTCA1xYn+ViE0giVA= X-Google-Smtp-Source: AGHT+IEd9WPOWYuMIg5iuT6zAmOdrU446mzAVMdXIItwG+z+9doHl7QoBNoHPc2igYLIRY7ImKC4t02Ig2Y+mouu4sw= X-Received: by 2002:a17:907:7e85:b0:ad5:6c54:1147 with SMTP id a640c23a62f3a-adec5cb2e98mr14254366b.48.1749749737199; Thu, 12 Jun 2025 10:35:37 -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: Thu, 12 Jun 2025 23:05:08 +0530 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFtqiwCtD0TTSdY0wO7XGOkRpEj1NP235LHTWONw721X2bMNjMPXqo2e-7Y Message-ID: Subject: Re: [PHP-DEV] Proposal: Support for RFC4648 in PHP To: Hans Henrik Bergan Cc: ignace nyamagana butera , PHP Internals List Content-Type: text/plain; charset="UTF-8" From: ayesh@php.watch (Ayesh Karunaratne) > > Why do it in core? > Is userland base16/base32 performance unsatisfactory? Even if the performance is satisfactory, having this in core can help user-land code to get rid of their own implementations (which they often do, to be URL-safe, for example). I imagine native implementations can make use of CPU SIMD acceleration as well, like we already do for the current base64 functions. The initial message also mentions adding this functionality into a separate namespace, so I'm quite positive with this proposal. Even more so than the previous proposals that proposed to add new parameters to the base64 functions.