Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126445 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 1CD181A00BC for ; Tue, 18 Feb 2025 12:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739882654; bh=qE406s3kOK8j7m4rEeqFuPQXOYWF8y0F6gFVc1S7FfM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ekoJZMtdzIm6lv0Na7scSqzG3d5FdjnXLYDKUPfePwXgQ9zv+0q1/Bm48TOvlQIXO YbS0Zxp1mBnt1qBnvF7QStAUUdlJ9OiLRNIVf203MfNIfLq/Dy9rHkSlYt599G5MIr zPe9cv/ZCAFM4sjhBYq4KlTjGev44t7DaCD0NZ7dHItxAH9m/zMmWnd9p/EcgR6jOJ MFQVKS3S/VZU341qNO/CDvsKJv1juPbt/EQzhWp924ISDNIj1ZtyEygVG2MhKGCcyW 6sZTORKgUWs6bbMnGmPZs4g5ftS684sP3/XJ0dIsu+EdwITf+aG1ZwL0r/64bAz/qS OMcvQpLEkUCnQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A7B68180593 for ; Tue, 18 Feb 2025 12:44:13 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_SBL_A autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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:44:13 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43932b9b09aso59560515e9.3 for ; Tue, 18 Feb 2025 04:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld.be; s=google; t=1739882813; x=1740487613; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oOciTWBSi8Dlnyj/aWdQJ8yRSLxNnKIunKrR3pmFhEI=; b=jsr4DZhpnuYP2Lu+23o+V4G4u9ANwUpgpKYCJbK3PuHGe0/pz5p4c0+wH6HXB8uIUN WfbZ/yxBPxNz3xNmzP/HjK4hf5mwnOlphCsnPaYccoclee1RltHF5x55W7MLVtd5IWbX N5wFtKUwYiXc4qLcnZLABXI05Sdn09n4XBb22qLeuiGd9Vp1SzGjTfaNULvWNU2oeIDb Q8jUcKqeeIyftXKT5ruAXGzFv4WyODa9bbBTRFYUVXMgS5g+km/lM3c/Uf7l7aeLfhT3 ub32MI/Ci5BXlVXzw6U0pR2OT9XC2xZO9I/0q/txpJEhMeaYBuIOWnse7Tc2Jq5HxkQV Uuzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739882813; x=1740487613; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oOciTWBSi8Dlnyj/aWdQJ8yRSLxNnKIunKrR3pmFhEI=; b=w/uJeSObE5uflvKUG+JoXtyC5khxf+mQOohyIRSr1gzhvxJChYnb7XMJ+N+H+xP42j VGkkVbLvSXziW3s4MSR9aqPshWetuKbLA9SIQ4RD3fya223G9Ct4uCQR4FKsTjSrn/4r Q2+CTFwGL74sQPRRVX4wwhDiifPZ4Mv+0rkg1n8sHPVeiZ9MBEJf4CaF0lw/ef7O7IHZ jF9goAy2+LTrEf+RVh3RxqkI6x20WqrVmw3Vb46HsIMkoB/85Th9TaNLMhneA8PBZhYb ugNSzvgQnKfFlPbMztz2u6y1PLVgTEEqB/ZLLOPVn9OAdC6xcmLp0E9/qWHf8OndX/vC ezHw== X-Gm-Message-State: AOJu0YyMhCcf2EyS7u8twXkssAG4EaooPlqI29AEgMPsrBQEkGtOn1hZ t8R7/u1SB571UKgep6ZKvkayFmh803ik8rsXZjGydWFxs9SAbHERaYYQeMN2Pck= X-Gm-Gg: ASbGncvQZ9A9vP5M+C7wIcCLEH4m9iprWXn/YRPZNuOQLuaf8X0pqZEqhbwIoqu0dP4 2L4xUUVUd/41OKoSeQ2vWevvibBy7GHRdly/OlrQtk5MJe7+H0ypfgaqL5upnfgZ4VT9WG83YWz BBpqSANU1oWTQ8bOswHjOuZ2jyxbqXS1rlkgy7f7b6KioYy8g92W9M+fKVZrrDg4pGcIaUO0gyz 7NFV4E26XjUFIvfHxywpbQE0c7KpACVwwwteEdRPtQBBqZkxJdmHHmk1NTuEZyBQvUsbmeVe+4G su0AJKL7Veqf0UDsb6RmMWaWDlVhj4znbD+UbI4JFHCpl5rfncYF4zYtaZY= X-Google-Smtp-Source: AGHT+IFhobnT9hiHpu31dxHbsgwpt9e5lZP5p22kVbX/IyQDxdXQ/drzs5eawtWhgz/T43pWFClhfA== X-Received: by 2002:a05:600c:3594:b0:430:57e8:3c7e with SMTP id 5b1f17b1804b1-4396e730949mr126110165e9.28.1739882812807; Tue, 18 Feb 2025 04:46:52 -0800 (PST) Received: from ?IPV6:2a02:168:4b6e:0:a926:7dfa:cabe:bcdf? ([2a02:168:4b6e:0:a926:7dfa:cabe:bcdf]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43995391824sm14879785e9.23.2025.02.18.04.46.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Feb 2025 04:46:52 -0800 (PST) Message-ID: <5fa7423e-d723-451e-a73d-a98512a6ca96@seld.be> Date: Tue, 18 Feb 2025 13:46:50 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Modern Compression (zstd, brotli) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Internals References: <528e16e1-1fb3-448a-b187-7cc84e1bcc4a@seld.be> Content-Language: fr In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: j.boggiano@seld.be (Jordi Boggiano) Hey Tim, On 18.02.2025 12:30, Tim Düsterhus wrote: > My question is: Why? Please also have a look at: > https://github.com/php/policies/blob/main/coding-standards-and-naming.rst#namespaces. > Instead of creating a top-level namespace for both Brotli and Zstd it > would probably make sense to create a new “Compression” extension that > could also include a new and improved gzip (and bz2) API as a > follow-up. The new ext/random could probably serve as an API example. > The main reason why is that we were mostly trying to keep this simple, so the RFC is simply what is currently in the extensions. But I fully agree with you, this doesn't look like the cleanest API, and it might be a good opportunity to clean things up. I guess we'll go back to the drawing board and try to come up with an API proposal that fits in better. Best, Jordi -- Jordi Boggiano @seldaek - https://seld.be