From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Async rebuild package-quickstart after packages update? was Re: 28.0.50; Proposal: slightly more efficient package-quickstart.el Date: Wed, 4 Aug 2021 11:36:29 -0700 Message-ID: <24842.56877.483221.562457@retriever.mtv.corp.google.com> References: <24842.41537.969310.87574@retriever.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4845"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, arthur.miller@live.com, emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 04 20:38:08 2021 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 1mBLmI-0000zs-FV for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 20:38:06 +0200 Original-Received: from localhost ([::1]:59552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBLmH-0007ot-4p for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 14:38:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBLku-0005sa-Bu for emacs-devel@gnu.org; Wed, 04 Aug 2021 14:36:40 -0400 Original-Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:41727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBLkr-0008EF-Uo for emacs-devel@gnu.org; Wed, 04 Aug 2021 14:36:40 -0400 Original-Received: by mail-pl1-x62f.google.com with SMTP id z3so3963271plg.8 for ; Wed, 04 Aug 2021 11:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=bf0sXSWQE+i2SFwQNOSxPAZfZpYJ2O5HMaOCsbwZ45M=; b=G3CTnTstpMY2YpTlWmrGjscBXMOq2VbGEOlRDAqWT7RCYxy/ish4jwy9GP9SYSSenm LnqCD7ePNytktG9VC2CoNh30avahdHR+zFn7aOcWtpTX41Zd+d8rdv0Scg7QjlzMFkER zQJCthi6ffqgsbyS2o9CyzLWVZ2zmgYDpln56FUz6Av8DLC6w9NgvbuGJbMG36mWFZ6j SWmay3JMK4DMHJEvZAcwwPfr6nD6wRdeT64NCF2lgesqW6FIS3IHIuV8ZlHyDjMqnf7L nbzgm/hY5v93UjIAlKbZawkOgSo2gVniWn/WsMRmi77OYtbTIaQfHouHmT6kFENuPY5x +Jpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=bf0sXSWQE+i2SFwQNOSxPAZfZpYJ2O5HMaOCsbwZ45M=; b=R+z4MBxDk9iE1Ikd3B6sq3dniIpf4F5SJ0yv92dtzpQnXl/Joz7sc9+SDcB1/BJ98e PWthsE2rGf7/XMmIcCklWOmAgb745zxM4Cf31VxR4zMoINiha80dxdqDTOV0DE0rWXrz zAk8pTf+4XcT99VKKWWUB0VNYIlLoJiEYhg+A64pXN4sOjwF7XRsZbYhxUaqK2fKqBpj QdPMfwZkRFJSlVuy8H8BJwUuv/yVjDgAmrzX0z4hEE/HarQ5wmCWOAZzEYBRC+duE9XX 4iU9vhOI0H1HhnC17l4igw3SUD+EK25kcPiCwKQyb6IiieiXk1EiLDpR+1cS9hFnrPcR CAog== X-Gm-Message-State: AOAM531wmZjqf2uHOuyifCIr9lyRxFb9ihAw+4St9m2YQRfIWn6Gj/l3 9kXfpVGdnxbX4+7dV1FZKjvvBrqKTttLow== X-Google-Smtp-Source: ABdhPJx1E24ux1n0ixdA7OeEPeRoZ5c26hP+yJJE+toOfzdQ+KkOJS9ZLP/dPNhMNhfWNDfFwYb2hQ== X-Received: by 2002:a65:4147:: with SMTP id x7mr475276pgp.23.1628102195320; Wed, 04 Aug 2021 11:36:35 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1510:9743:617f:b44f:2594]) by smtp.gmail.com with ESMTPSA id r3sm3321351pjj.0.2021.08.04.11.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 11:36:34 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=raman@google.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -176 X-Spam_score: -17.7 X-Spam_bar: ----------------- X-Spam_report: (-17.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.132, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:272056 Archived-At: So then perhaps something like (shell-command "emacs -batch -q -l package -f package-quickstart-refresh") > T.V Raman [2021-08-04 07:20:49] wrote: > > Interesting:-) Other discussons on emacs-devel have declared that > > make-thread should never be used if the async call expects user-in= put > > -- so combining both conclusions, we might as well declare make-th= read > > useless >=20 > Good point. Indeed I mis(spoke|wrote): the fact that it doesn't nee= d > user input makes it *possible* to use `make-thread`, but the fact th= at > it doesn't block on subprocess output (and instead spends all its ti= me > interpreting ELisp code) makes `make-thread` useless because it will= > basically never yield ;-( >=20 > Here, we really want to start a new Emacs process (in this specific = case > we even *want* that process to be (mostly) fresh&clean, contrary to = many > other situations where we'd want a new process that "configured just= > like the current process"). >=20 >=20 > Stefan >=20 >=20 > > Stefan Monnier writes: > > > T.V Raman [2021-08-03 19:24:59] wrote: > > > > Stefan Monnier writes: > > > > So looking at package.el: > > > > package-quickstart-refresh is called from > > > > package--quickstart-maybe-refresh and looking at the code in > > > > package-quickstart-refresh, it does not block on user input, = so it may > > > > just be sufficient to change the call to package-quickstart-r= efresh > > > > to (make-thread #'package-quickstart-refresh) -- > > > > Thoughts=3F > > >=20 > > > The fact that it doesn't block on user input makes `make-thread= ` fairly > > > useless, I'm afraid. > > >=20 > > >=20 > > > Stefan > > > > --=20 > > > > Thanks, > > > > --Raman(I Search, I Find, I Misplace, I Research) > > =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮