From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.devel Subject: Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] Date: Tue, 22 Dec 2020 11:49:55 +0100 Message-ID: <87sg7yf73g.fsf@posteo.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1188"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 22 11:54:00 2020 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 1krfIm-0000DV-On for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 11:54:00 +0100 Original-Received: from localhost ([::1]:51630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krfIl-00012f-Pi for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 05:53:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krfEy-0002yy-Gi for emacs-devel@gnu.org; Tue, 22 Dec 2020 05:50:04 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:49557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krfEu-0000Cq-Dv for emacs-devel@gnu.org; Tue, 22 Dec 2020 05:50:03 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2D1DB240101 for ; Tue, 22 Dec 2020 11:49:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608634197; bh=GEGd0vVPbOvMovQ4URPj4uFHolgVgZ96955A/WGHU9c=; h=From:To:Cc:Subject:Date:From; b=ipFRilN5m/T9TNoE/m1jaW1T+zeTm1DL8XGtCUWThCIH1cPlwTL9LrYnods6Paum+ ucO1SErx0RyjL/1gL2a512NoRRuJWxbd/I0cLlrn0Pm2irsUAZFW6vuahTBL1NpqrB ndb4X0lPGmXABdbkCV+fT9Cw196JMyZCkRuWS5dLC6rqcXga5w96LIxCEiTUzwJQSa PxjQU1QI2JdH3S+VTc6oZqQJPFYYvWWMIDX+x75WHP1KSFTIAAD9B7GwsdtCaFVP9K A+mtnfdws4Es9BMCA9qsojde+7WY8x6dR0q9KyQEtVwUIhtvMG3jzehLzSD3UZSyW3 +fooP1O4WxvYQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D0Y504Yr3z9rxc; Tue, 22 Dec 2020 11:49:56 +0100 (CET) In-Reply-To: (message from Richard Stallman on Tue, 22 Dec 2020 00:20:03 -0500) Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:261474 Archived-At: Richard Stallman writes: > > Request.el is another story, and I can't comment on that. It's probably > > just like with dash/s/f/... where non-elisp developers dislike the > > built-in API, but I'm just guessing. > > From what people have said here, it sounds unproblematical. > But could you explain what you mean by comparing it with dash/s/f/? In my experience, people use dash/s/f when they are either unfamiliar with the built-in functions and macros, or when they find them too cumbersome to use (I'm sure there are exceptions, but again, this is my impression). So they want to write (s-join "+" '("abc" "def" "ghi")) instead of (mapconcat #'identity '("abc" "def" "ghi") "+"), and add an external dependency for this minor convenience. And again, in my experience this often motivates people to use request, though it might be a better example, because it actually does useful stuff, even though I don't always think it's idiomatic. The built-in url.el could use this as an inspiration, to add more macros/functions that simplify code. One notable difference is that it will use curl, the binary, instead of url.el if it's installed, which does notably accelerate network requests. -- Philip K.