Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126223 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 E07571A00BC for ; Fri, 24 Jan 2025 22:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1737757721; bh=xvYiSBKd2AUSFYHhNI/lOLsLmJOkuRRyNTLTbBrZaV8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RYPsDOdvRASMlDJbOk1lmbjZvu/l2c2TXxfWITVbYJWNFnEdRe3JlpEHDaJS5aUOq xdz7DnGFlq2KRTugL5h7Dl3hDHtlGLBDY8si6ZBprUTxaEiaaqg0rd4VmTLZSya5Z9 aWsGQXvEq4XVURbEreQ2wD4GBrZEufqBT/2GoJipHLOdZwIkYiotoW00Xt0zqT/upM kDbaXuWuVepJrNPP7v64oxSgNAJ9dfTxv29RhbGLqpU9yu/GNYZZ6leq7X3l7P8eJi Svm5Ui10zCYIZg1nAEUIQOKpeIomI70c1MHJmZ5ORW1uW6tDcK0qPNkuyQaJfXf/qU rBKcmdHO7p0Og== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 10A0A1801E5 for ; Fri, 24 Jan 2025 22:28:41 +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=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.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 24 Jan 2025 22:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1737757889; bh=LUqG+xsmgmRQBWJO6NF1PgVtftP2ftA9ubuIfPcMghM=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=GjIg0vz2rf0npJulplM5J/EIX6+9+gv3ZmP5zaIVJWM6GzbASVvUydvy/8Hk5tiG4 Bybuu4yMl3LUG0WWgjfaT9JpCs6z6JPg9TujKDc9dqt+ClUBBQMZvPUMBiTKCwhWAQ utnkDPKRLGL9zkWUa87bfOVP+2CZHzsHdeC7KgiwXiWrme+F0yhLzN2KEnb10+mOJ2 wIzogTSoiprq3Smj4bHqmwu1FLtcz8KQMcEUanH72cIIFnW5MdlLr7BTTgDitbO2Jv Ep3NqjVRvQZ5pgTRn0sGwHirm1v+806AHXFlL97pLw2gggismTDMaR3hK5xgvcGsKr PcjeeBvVIiygA== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 24 Jan 2025 23:31:28 +0100 To: Hans Henrik Bergan Cc: PHP Internals List Subject: Re: [PHP-DEV] BLAKE3 hash redux In-Reply-To: References: <995b9de75fc45af9b4afc327977b3ed8@bastelstu.be> Message-ID: <271bafc7eaf256bebf9060e0713c6385@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-01-24 22:37, schrieb Hans Henrik Bergan: > BLAKE3 keeping up with dedicated SHA CPU instructions (i.e SHA-NI) is > impressive. I would assume that that's the AVX2 implementation (my CPU can't AVX512), which makes it less impressive. > ARM is getting more and more common, and I don't think ARM has SHA > instructions (yet?) tho. The ARM architecture has them, but PHP does not yet make use of them. This is mainly due to me being unable to test the integration, due to lacking an appropriate system. libcperciva where I've taken the SHA-NI implementation from also includes the ARM implementation and I checked with the author regarding the necessary attribution as part of the x64 SHA-NI PR: https://github.com/php/php-src/pull/15152#issuecomment-2256476578. >> As for the RFC itself: I suggest to already add the (closed) voting >> doodle to the proposed voting choices section. The way the section is >> currently worded doesn't make sense, because it implies two distinct >> votes. > > like this I guess: > Yes. Ideally mention above that it requires a "2/3 majority" (as with any other RFC, but good to spell it out explicitly). Best regards Tim Düsterhus