From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [WIP][PATCH] download: Don't report the progress too fast Date: Tue, 19 Sep 2017 13:32:11 +0200 Message-ID: <87efr26i10.fsf@gnu.org> References: <87d17ilhzq.fsf@member.fsf.org> <87shg978ao.fsf@gnu.org> <87mv652phq.fsf@member.fsf.org> <877ex6456z.fsf@gnu.org> <87d16ticpx.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duGlH-0005xc-Qx for guix-devel@gnu.org; Tue, 19 Sep 2017 07:32:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duGlC-00026k-B7 for guix-devel@gnu.org; Tue, 19 Sep 2017 07:32:19 -0400 In-Reply-To: <87d16ticpx.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Thu, 14 Sep 2017 22:20:10 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org Hello! iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> To address these, I would use =E2=80=98abort-to-prompt=E2=80=99 & co., p= ossibly with >> =E2=80=9Csuspendable ports=E2=80=9D, but this is a 2.2 feature. (It may= be that we >> should use Fibers directly.) > > Sure, I=E2=80=99d like to try fibers. When we can drop the support of Gu= ile > 2.0? (I guess one sign is that 2.2 is in the debian stable.) =E2=80=9CSometime.=E2=80=9D :-) IMO we should keep supporting 2.0 until 2.2=E2=80=99s compiler has reasonab= le resource consumption. >> Tricky! Not sure what to do here. >> >> Thoughts? > > How about replace the use of thread from =E2=80=98progress-reporter/file= =E2=80=99 by a > =E2=80=98rate-limited=E2=80=99 render procedure, and then change the elap= sed time to > ETA, which is okay without updating in seconds? Roughly what you did initially, right? That sounds good to me. Thanks, Ludo=E2=80=99.