Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112744 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76374 invoked from network); 4 Jan 2021 10:52:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jan 2021 10:52:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2CB051804DD for ; Mon, 4 Jan 2021 02:28:42 -0800 (PST) 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-Virus: No X-Envelope-From: Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.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 ; Mon, 4 Jan 2021 02:28:41 -0800 (PST) Received: by mail-wr1-f54.google.com with SMTP id c5so31617843wrp.6 for ; Mon, 04 Jan 2021 02:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Tsv/eZybkkKeyodolJuLqz6uohSgIF4vTOgIF2xKBZM=; b=nrDwzygr06vRHM3uqEGp2VimyJS4479WP0mhLWuEpY+XMYKqa8g0p1S+dREjEgdsl7 7QULSABgrtQZXzozHrCMozqaFUDqQ8ib5Ak6NBbAx0e1iQ7ZeadLAwulU1kgx14Y62mq pITeAf+//3jUx4RKuYOLWm815/rt9D/+f7OKhmEnZ6SQyxBrooE01VKe0olldjLin+8q v6QcAktVBfUIBsS/VF2WXCBlgeM53jpgenXD40BoWqYLIMKANuFyo7C+YosSNJ3mwN4+ BNn9veycm5YSLR7aALAfdB4mSnPElX49hpFiRvM3QNTRvV4DPDhuXqB+3hBxd3MemFAs AqZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Tsv/eZybkkKeyodolJuLqz6uohSgIF4vTOgIF2xKBZM=; b=ST/Bg5qiAz1wSiHfAJO4AuZJI8RSKjnEfMvv2N7iUWeix6PNN1K/Ux9QK2WHv4Cz71 WpdbY+nH6L2xK5ZcUsL9Hii8xRPm8beOFb2SfeuK3Af3iSs0wPxuBASIqWRyRKGJd6IB Z/O2Wxk+ZRO2j0AFzNiczS2nM5q1uZOtAkt3IMRbmmhRuyB+rc/AJBCwvlWuoqLc2l71 1eHKk3v9RIYy7usAtd5AJKSfJJBydOWGGxR8D/GTH6hy9lc440UDFBIrQU2L2+w2Cfzz /ktN9Y71/1mJ8RAEvq3eygOnZMeyoOqUrNDEqJg1H6HtJqKRbpYfsFNKvy7Uf6xfNEi9 T02A== X-Gm-Message-State: AOAM530auqi5R9Et9hJS9Cu6d0LJoNGAy2GjOTSYMGngdUX81JcOfwba obmxJqt6i8jlh8p/jWqeDVnLIxnXCXrYGg== X-Google-Smtp-Source: ABdhPJyHwAo+OAwSVyfV9cLakwpaV7bgw+PD56/yVlXLih2aYFT/PjTItf4uhfuFawMFL/vWM9rvmA== X-Received: by 2002:adf:dd90:: with SMTP id x16mr77693184wrl.85.1609756120212; Mon, 04 Jan 2021 02:28:40 -0800 (PST) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id n8sm88055089wrs.34.2021.01.04.02.28.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Jan 2021 02:28:39 -0800 (PST) To: "internals@lists.php.net" References: Message-ID: Date: Mon, 4 Jan 2021 10:28:37 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] Configurable callback to dump results of expressions in `php -a` From: rowan.collins@gmail.com (Rowan Tommins) On 03/01/2021 20:45, tyson andre wrote: > I was saying that I'd planned to propose defaults if this passed. Then I guess my feedback can be summarised as: propose these default implementations first, rather than last. Start by improving the out-of-the-box experience, and then look at what hooks userland tools might want to customise that (which might involve something "smarter" than replacing the entire output routine). > Psysh is 2.4MB as a compiled phar release and larger if distributed with library/application releases (e.g. on remote servers). > default extension hooks would likely be much smaller. That was a lot of data when I used to carry floppy disks around in my school backpack. It sounds pretty reasonable for a feature-rich command-line tool in 2021. > Someone learning from the php.net manual or a tutorial with minimal dependencies wouldn't install psysh right now. To be honest, I doubt most users ever come across php -a either, or know that they need to install ext/readline to unlock its features (I'm pretty sure that's not installed by default on Ubuntu, for instance). I'm supportive of the idea of changing that, but I don't think the RFC as currently presented particularly helps that cause. Regards, -- Rowan Tommins [IMSoP]