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.bugs Subject: bug#50686: Show number of downloads on packages on GNU ELPA/NonGNU ELPA Date: Mon, 11 Mar 2024 15:55:47 -0500 Message-ID: References: <985acef0-69f1-39c3-1354-9a49149c9df9@alphapapa.net> <1f2a10bf-c135-480d-9b79-17b64090fc7e@alphapapa.net> 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="26722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 50686@debbugs.gnu.org, stefan@marxist.se, larsi@gnus.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 11 21:56:55 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rjmha-0006hz-6w for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Mar 2024 21:56:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjmhC-0002eh-5a; Mon, 11 Mar 2024 16:56:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjmhA-0002eY-JU for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 16:56:28 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rjmhA-0001oD-BY for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 16:56:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjmhi-0008G0-4p for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adam Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Mar 2024 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50686 X-GNU-PR-Package: emacs Original-Received: via spool by 50686-submit@debbugs.gnu.org id=B50686.171019059231699 (code B ref 50686); Mon, 11 Mar 2024 20:57:02 +0000 Original-Received: (at 50686) by debbugs.gnu.org; 11 Mar 2024 20:56:32 +0000 Original-Received: from localhost ([127.0.0.1]:41374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjmhD-0008FC-O7 for submit@debbugs.gnu.org; Mon, 11 Mar 2024 16:56:32 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:25769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjmh8-0008F0-2b for 50686@debbugs.gnu.org; Mon, 11 Mar 2024 16:56:30 -0400 X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1E5679034AB; Mon, 11 Mar 2024 20:55:50 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a311.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A9A2F902374; Mon, 11 Mar 2024 20:55:49 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1710190549; a=rsa-sha256; cv=none; b=xJqcVHlC3QtrVtkyeyTHQgBZ+R4EP6Cv5qZwNYIWC2f8jNtsjAFWTch9y3WYwoSd2Zq9B4 kKrEYYiHzu+ailvtfEff5Ccssp3avS2PByJK1NubN2k+1x8Fkz79tcxVuN1ga2Nssh5hqx 44hXTgsiqh2llSvWVpBi6vjdR5kB2tJegARsaH9gS8mCAxqPP62l/MyOYcQcXC3J0XCPSh KDPqHMl6gvj97bZwWh289ot3BwkBLY8JYQD2ZlDwVgO4HaRNsBVwTcjWlnNdm7fISbTsns Ti+n7y/DBrHzs7Crchrd3GXC4xTkY7tnyb6EhEVI3VHGvolhLfxoqAmPFXBkZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1710190549; 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=nBsTxoGgA6NKV5e+J6P400a/sL3U1+kvNu1LCexfxYs=; b=isqXhC2tv9NJtF5vP50Ln/y1l0TV/egEsEpj3JNbC4Y5d+CgJNG4uXnCcFbke1Mg0cZqZV Am3TjjFZGHHfkFk5uS0zIAWMGIYRe6U+922rGE6yI4t+vkMNKcQhC955WSWNtke1CC3bia aVX18K4heA33AxswnbVFEJRmekL0QfkyMqSsEzpQT6ozH3hVuufbaWsA+MTdZXW7xta2tz /FHJSb4/csDJvjOUldTbxzRAkx6Eb8t6aBqlXqMejsgznRj1Pj76IsOu3dE3y0W7e2biZD KhBCjNbTB6EenrUXeFPccDnpCUBrhrjq7QUamCaiKZ45tnypfv25ZWPpexXc3w== ARC-Authentication-Results: i=1; rspamd-67fb46fddd-jn8wq; auth=pass smtp.auth=dreamhost smtp.mailfrom=adam@alphapapa.net X-Sender-Id: dreamhost|x-authsender|adam@alphapapa.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|adam@alphapapa.net X-MailChannels-Auth-Id: dreamhost X-Language-Stop: 5104b3f91857864f_1710190549955_160347525 X-MC-Loop-Signature: 1710190549955:3699746334 X-MC-Ingress-Time: 1710190549955 Original-Received: from pdx1-sub0-mail-a311.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.116.254.144 (trex/6.9.2); Mon, 11 Mar 2024 20:55:49 +0000 Original-Received: from [10.66.7.46] (unknown [91.193.232.98]) (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: adam@alphapapa.net) by pdx1-sub0-mail-a311.dreamhost.com (Postfix) with ESMTPSA id 4Ttpvm4cyyz8S; Mon, 11 Mar 2024 13:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alphapapa.net; s=dreamhost; t=1710190549; bh=nBsTxoGgA6NKV5e+J6P400a/sL3U1+kvNu1LCexfxYs=; h=Date:Subject:To:Cc:From:Content-Type:Content-Transfer-Encoding; b=TeBZ7dHVvVgLU7JWa8vsX/Ku3K9+IsE4R3An0HJz+RwcCjxv4fTWNQNNyyb7yHIy7 U266ryOuc8x6L5ol5NULrPfyfafO547SP8pLf/A4+sorRrEgmN/Wspor5yUmpAEz39 s/Ifxg3cRga+xbiQY9ynoSlA2IJBQkcBD6XkyQChF359jeWdnrAONL00vDYAbdHLvH hVVabDkyK9FPoX3N68GyP6vgqBYiQFQDRe4GFc5UiOPKnxmDY26rNMX+3THJE9AiJd X7iI8Jcucgcpfms7zvCYVYxV7WKexAiDBStQf5SvUbpru6F7DF5w2N4ft9iimQ85sv FgECZZIczoMPA== Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281495 Archived-At: On 3/11/24 15:28, Stefan Monnier wrote: >>> I had the logs only for a two weeks or so (plus some old logs from >>> many years ago, actually), indeed. >> I see. Are the rest of the logs still available on the ELPA server, or is >> that all we have for historical data? > > That's all we have. Ok. Going forward, will the logs we have now be preserved, or do they get rotated away? >>>> a list of downloads per version, etc. >>> Currently I count the "interest" in the package, so I don't distinguish >>> the version of the package, nor whether the access is for the tarball or >>> the package's web page, or the package's readme.txt, or the package's badge. >> That seems like a very different kind of data than the number of times >> a package has been downloaded (i.e. by an Emacs instance). IME a small >> fraction of hits to a package's GitHub repo seem to result in installations; >> "interest" tends to be far more than "interested enough to install." > > Just because the "interest" tends to be far more than "interested enough > to install" doesn't mean that the two aren't strongly correlated. > Also my impression is that package web pages in `elpa.gnu.org` are not > visited nearly as often as a Github project page. > > But it'd be definitely worth checking how the two measures compare. > Patches welcome. Ok, meaning that you'd accept a patch that does...what, exactly, to the database? :) >>> I'd like to the keep the stats database reasonably small (it's currently >>> around 150kB, and I expect it'll take a year before it reaches 1MB), so >>> I'd rather not segregate per version. >> Is there a way that I could change your mind about that? Having the actual >> download counts per version would be very useful. > > Maybe if you argue about what kind of use would make it useful? For example, if a package at version V has N downloads after 6 months, and then the package is updated to version V+1, how many downloads that version has after 6 months would give some indication of whether the package is growing in popularity, whether initial users are still using it and upgrading it, or whether it's falling out of favor. And, over time, that might help determine whether an obsolete package should be removed from ELPA. Also, since a package's minimum Emacs version may increase when its version increases, that could provide some useful information (not that I'm suggesting to track that in the ELPA code, but some other tool could correlate the data). > My goal was mostly to show relative popularity, so when you search for > packages providing a given feature and you find 4 different options, the > rank percentile can give you an idea of which one is more popular. That's definitely a worthy goal. Another goal that's relevant to me, as a package author, is to determine whether a package of mine is still in use at all. For example, my package org-ql is intended to subsume my older package, org-rifle, but I hear now and then about people who still use org-rifle. Eventually I'd like to see that the downloads of org-rifle fall off to the point that I could declare it an archived, obsoleted package, but I don't want to do that prematurely. (Those packages are on MELPA, but the principle applies regardless.) --Adam