From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: Flymake refactored Date: Mon, 09 Oct 2017 00:33:40 +0100 Message-ID: <87h8v9w6y3.fsf@gmail.com> References: <87h8vmj3tr.fsf@lolita> <1507138648.1972.0@smtp.gmail.com> <874lre2von.fsf@gmail.com> <87mv566yjx.fsf@udel.edu> <87shex276r.fsf@gmail.com> <87efqh2sud.fsf@udel.edu> <877ew919hd.fsf@gmail.com> <87poa0z4ur.fsf@gmail.com> <83o9pjt6m8.fsf@gnu.org> <87376vxbqs.fsf@metapensiero.it> <87tvzavvbd.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507505646 23324 195.159.176.226 (8 Oct 2017 23:34:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 23:34:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 09 01:34:01 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1L52-0004eb-Gf for ged-emacs-devel@m.gmane.org; Mon, 09 Oct 2017 01:33:56 +0200 Original-Received: from localhost ([::1]:55447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1L57-0007kr-Qh for ged-emacs-devel@m.gmane.org; Sun, 08 Oct 2017 19:34:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1L50-0007kZ-Qe for emacs-devel@gnu.org; Sun, 08 Oct 2017 19:33:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1L4x-0001uU-Ma for emacs-devel@gnu.org; Sun, 08 Oct 2017 19:33:54 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:54627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1L4x-0001u8-G9 for emacs-devel@gnu.org; Sun, 08 Oct 2017 19:33:51 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id i124so19048810wmf.3 for ; Sun, 08 Oct 2017 16:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pbUB1B1mnH5QXvaXTHx4suVj9by8jQKgLyzGiZuA2Es=; b=QpbT1Rw+KaqCJc/E5lmKhLVKHDS6aSGqW6QntJboShHmYqdHQgYBZ/FsJjJ0fvugHa m9GL6NLqoqGrW71TT82ttkL3uy+xCqANSnDala55en1VpO/ca0YIwBebijha2oVspkRN bqag1zUhsQVel6cDusi8GPaWtx6rjAg992N8oLVgsDVV0+5MeR26BQQp9wSt2I4g3O+W mkpUBPYp5jhMzXUP6Ov3+aKNh9aeY3u0MYBqO5EnteX9063Zml7dLO/OMwYokUhkxrau 3Mz4t/4ftZtMozLOqZ8xlV+gZgpnJsU941ykt9Lkg+WC7F9kT2ypU5dhvh+PzVr/qNUq 3BUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pbUB1B1mnH5QXvaXTHx4suVj9by8jQKgLyzGiZuA2Es=; b=lIMiE6gC+K479d4eAQUnsE2peA5lVmSICUA+xDFduWGPu5u99RtFgw+PlWtTvYaIWF Xe3S93WcoNFRvUEOU+Z9zKaTIqbl6BQu9iTei6Jr8YjRSdXEZPmEDRu7ogwF1R9CkYy4 F5pypetQNTwWXviVuCBHJBSGvkH4TQIoYWII8to0X0odshYXz4ytXa/naHR1KgayAl9A 2EEWYi10yW4X09b6EICtVDOTPaxvLtvco5hJZygBx0mZD46SalmrVZoSaJh9Snu+vUmo V0cR9KRDLnaAr8j7yaj2xTyhwPplxHeVOMnCWsx6tbvAbhKiqgKNlh1qfJeXFxS/cfPS Bp0Q== X-Gm-Message-State: AMCzsaUEWupWTWE2ydUkDxVZ0giJk1RdkPv8/XoXs9QR6PH5kNDqBWkR jy8eSmaSMwy7nQpY86u8poabWyOLxAM= X-Google-Smtp-Source: AOwi7QA21iAY5gCkUhdk4ngoDVPVGzMNe74G+4Om4gzKe6pV8iJ24tRxPHcqOIYSdVGvHhWWDi5IBA== X-Received: by 10.223.153.130 with SMTP id y2mr7287017wrb.165.1507505630037; Sun, 08 Oct 2017 16:33:50 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id m64sm9745285wmb.10.2017.10.08.16.33.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Oct 2017 16:33:49 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 08 Oct 2017 10:17:32 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219280 Archived-At: Stefan Monnier writes: > Ah, in which case it's not that the old flymake.el worked, but that it > croaked more discretely? That would be a good explanation. Yes that's it. And "croaked" is a really funny word :-) >> I don't see what flymake.el can do about it, since it is was designed >> to be agnostic to the way backends allocate resources to start >> syntax checks. > > The problem can be fixed "anywhere" between desktop.el and make-process. > > There's a good argument that desktop.el should load buffers more lazily. Would be hard to predict how lazy it has to be fix these issues. > There's also a good argument to be made that flymake.el should itself work > more lazily (don't start checking until the buffer is actually > displayed, for example). I like this one. So flymake-mode either starts the check or does something to window-configuration-change-hook? Is that the idea? > I think asking backends to perform the throttling is a bad idea: we want > the backends to be as lean/simple/concise as possible. If they used the make-process helper, they would keep these qualities. But on second thought the whole idea behind throttling (make-process or backend) seems too feeble to be worth the effort. It only works cooperatively, if all process creation uses it. If it is optional, it's not worth it.