From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: plz Date: Fri, 13 May 2022 16:54:31 -0500 Message-ID: <83571245-4d13-22e4-1158-52758cbb8965@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6537"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 13 23:55:48 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npdGG-0001Ty-3I for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 23:55:48 +0200 Original-Received: from localhost ([::1]:45916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npdGD-0000kU-Vo for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 17:55:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npdFD-0008SX-G0 for emacs-devel@gnu.org; Fri, 13 May 2022 17:54:43 -0400 Original-Received: from egyptian.ash.relay.mailchannels.net ([23.83.222.56]:38838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npdFB-0007BN-39; Fri, 13 May 2022 17:54:43 -0400 X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D7662121228; Fri, 13 May 2022 21:54:33 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a301.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7181E121ADD; Fri, 13 May 2022 21:54:33 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1652478873; a=rsa-sha256; cv=none; b=Wh3CsTwu24VxWSOJi4yJ07VXHuId7Nvtlh2EJW5i525VkfHQyt/95r8DMpAZhv6/cFplr/ 3oyy5nrIe58u//tCCMhRbrmkins8K1ttQmQpLdEsKrvethWq5vnkd8QBBoujKviAdLPOde hbPdMrfLsL3vf0qMo97TN3DxUtEN/pOdhRARD5iajASovd4TkCY/spg+g6d55Clnu4NCgo XEUNV9PQUfr1c14nmWlSuxPFpdwscLutDEG3xs+9EQ+tvIKm8ZUT/rCLPbpPTWl4fJnsmQ QL1bpdXpOUl1JStyPcBXrGqlQMaP/hf/Vi47UKHfjQzYQbpUEu2FkTjLcNKwmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1652478873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=F8D3dP9YNzDBzNFSAOfh0e+7vu1J3tjIqxmovQQLIlU=; b=4RKT/qD09b3iB0Bx4R+lnRZQPUWLDGDeHdarziqZtAHUBzbIhq4dyJcNGl+t3jR3EmP0QB Rx7yqd/8xwB8EXjVMLURYiTh2i5BbXn9BF3PmX7db7p1P4SFSYmuQbrnAdQAcrfLgUiZe3 cFcmeDuVlBf0vpHZWEdkLKJ3JXMjeHPWTVMSwBQvYS/MzafwDA16jkXdv/t0w2FMzao0sx ltvZj7l9I2THcv6r8AKal1mmhp/Ioc2VVQ8Yc8Kw0Kz2erP9LZIu6OfAfO55rxQVt4e3Yh ojW3C9ww1GpgRRRDRJwIve4Du4n2x96hpx8sQM/hwuusHUmZUPiHZ+rRAkxkrw== ARC-Authentication-Results: i=1; rspamd-6fcfc4d76-glgkx; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|inbox@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|inbox@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Callous-Interest: 525277a1056c58f8_1652478873690_1789097942 X-MC-Loop-Signature: 1652478873690:2468839204 X-MC-Ingress-Time: 1652478873689 Original-Received: from pdx1-sub0-mail-a301.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.96.26 (trex/6.7.1); Fri, 13 May 2022 21:54:33 +0000 Original-Received: from [10.126.0.90] (unknown [45.131.192.32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: inbox@alphapapa.net) by pdx1-sub0-mail-a301.dreamhost.com (Postfix) with ESMTPSA id 4L0Mqr6Xn0z1n; Fri, 13 May 2022 14:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1652478873; bh=F8D3dP9YNzDBzNFSAOfh0e+7vu1J3tjIqxmovQQLIlU=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=jnqtPEEC/1my+hj9frKf9x/VlKLGKLzka8UgNQtwLqkCR1qoAKw7xGwYl1uI+rTyF /mKhWc0/J0dYglPUSlBuSLW6S4PYxJCr9dTVxlL/WcOeEUo0Vx4sg8mCMUMDVN7Jcc uegJCztlZAIHsxwu7l8+LsneaTkPP8Lv0C7uMYLKpJSLVhI2w1umLZVQppYnSz2Twx DKXmE56LOwHV8r9sQCNC5L9tWVmJfcNEqCxpnsCg2PiqcIu9kSPuYLWv+m5/gEmaVD 1JS+DFm+6XnyDNkAKZK2mvWWmtBy98W6MDeXJ4NE/5cRT8FtLuJOPRWwWG0Y5oQAX2 7ID5dMiuyL9CQ== Content-Language: en-US In-Reply-To: Received-SPF: neutral client-ip=23.83.222.56; envelope-from=adam@alphapapa.net; helo=egyptian.ash.relay.mailchannels.net X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289760 Archived-At: On 5/13/22 10:09, Richard Stallman wrote: > > plz.el is a library to make HTTP requests using curl, akin to url.el and > > request.el. It attempts to provide a better API and avoid some of the > > problems found in the other libraries, such as with callbacks. > > That's concise and clear. Thanks. > > This raises a question: does plz.el potentially subsume url.el > request.el? Would it make sense to replace those with interfaces to > plz.el? Perhaps not now, but in a few months once plz.el is > perfected? > > I don't know the answer, but it would be advantageous to have only > one such package to recommend and document. Well, as Eli pointed out, as long as plz.el requires curl, it couldn't replace any Elisp-only libraries. Providing an all-Elisp backend to replace usage of curl is an idea I might look into, but probably not anytime soon. Besides that, as I admit in the readme, plz.el is still a young project. url.el and request.el are much more feature-complete and mature. So far I've added the features I've needed to use it in Ement.el; I'm hoping that, being on ELPA now, it will be used and tested more widely, and the needs of other users will help drive plz.el's development. And while I prefer plz.el's API (of course), I wouldn't presume to say that it's necessarily better than theirs, so I wouldn't propose plz.el to subsume them. Finally, I've encountered some rare process-related bugs in Emacs when testing plz.el, e.g. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50166 So far, it only seems to manifest when running plz.el's ERT tests in rapid succession, not when using plz.el "in anger." Even when Ement.el makes tens of requests with plz.el in rapid succession, like when downloading Matrix room avatar images upon initial connection, it seems to work perfectly. And it's defied all of my attempts to debug the problem at a deeper level. So while I don't think that problem should discourage others from using plz.el, and url.el and request.el can have similar issues at times (probably due to issues in process.c--"there be dragons," it seems), I'm hesitant to push it too strongly as an alternative yet. Thanks, Adam