From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Can we go GTK-only? Date: Sun, 30 Oct 2016 17:42:18 -0400 Message-ID: References: <24db2975-17ca-ad01-20c8-df12071fa89a@dancol.org> <4615E73A-19E2-4B79-9889-D3FA686DDDE6@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1477865633 27134 195.159.176.226 (30 Oct 2016 22:13:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2016 22:13:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 30 23:13:48 2016 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 1c0yME-0005MV-1T for ged-emacs-devel@m.gmane.org; Sun, 30 Oct 2016 23:13:38 +0100 Original-Received: from localhost ([::1]:60307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0yMG-0004Y2-Lq for ged-emacs-devel@m.gmane.org; Sun, 30 Oct 2016 18:13:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0xs0-0002Tf-3A for emacs-devel@gnu.org; Sun, 30 Oct 2016 17:42:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0xrx-0002lE-1p for emacs-devel@gnu.org; Sun, 30 Oct 2016 17:42:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:41075) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0xrw-0002l2-Tu for emacs-devel@gnu.org; Sun, 30 Oct 2016 17:42:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DdBQALW9BX/+953mhdGwEBAQMBAQGDLQEBAQEBHoRNhVCvdoIDhhYEAgKBaToTAQIBAQEBAQEBXieEYgEBAwFWIwULCzQSFBgNJIhVCLxVAQslin2KHAEEmVmRK4diMYVakEsfATSEbCCGCgEBAQ X-IPAS-Result: A0DdBQALW9BX/+953mhdGwEBAQMBAQGDLQEBAQEBHoRNhVCvdoIDhhYEAgKBaToTAQIBAQEBAQEBXieEYgEBAwFWIwULCzQSFBgNJIhVCLxVAQslin2KHAEEmVmRK4diMYVakEsfATSEbCCGCgEBAQ X-IronPort-AV: E=Sophos;i="5.30,296,1470715200"; d="scan'208";a="277635580" Original-Received: from 104-222-121-239.cpe.teksavvy.com (HELO fmsmemgm.homelinux.net) ([104.222.121.239]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Oct 2016 17:42:19 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 971D4AE111; Sun, 30 Oct 2016 17:42:18 -0400 (EDT) In-Reply-To: <4615E73A-19E2-4B79-9889-D3FA686DDDE6@raeburn.org> (Ken Raeburn's message of "Sun, 30 Oct 2016 10:43:37 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:209000 Archived-At: > I wonder if we should let them run their event loops, in their own threads, > and separate that from the non-GUI events like subprocesses and timers, and > from Lisp evaluation, as much as possible. For that matter, some of the > subprocess handling could probably use helper threads, like for TLS > encryption and decryption work. Ideally, yes, I definitely think we should split the Emacs process into various threads: - some threads for the GUI. - one thread for the Elisp engine (which receives events from the GUI threads among others). So the GUI thread would handle the expose events, read-locking the matrices, while the redisplay would run in another thread, write-locking those same matrices. Stefan