From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Concurrency, again Date: Wed, 12 Oct 2016 11:19:11 -0700 Message-ID: References: <87wq97i78i.fsf@earlgrey.lan> <86k2dk77w6.fsf@molnjunk.nocrew.org> <9D64B8EA-DB52-413D-AE6A-264416C391F3@iotcl.com> <83int1g0s5.fsf@gnu.org> <83twckekqq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1476296417 31314 195.159.176.226 (12 Oct 2016 18:20:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2016 18:20:17 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (darwin) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 12 20:20:12 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 1buO8F-0006Gw-7f for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2016 20:19:59 +0200 Original-Received: from localhost ([::1]:35130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buO8D-0002Kg-Vv for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2016 14:19:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buO7e-0002KL-7z for emacs-devel@gnu.org; Wed, 12 Oct 2016 14:19:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buO7Z-0005ey-47 for emacs-devel@gnu.org; Wed, 12 Oct 2016 14:19:22 -0400 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:33293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buO7Y-0005el-TW for emacs-devel@gnu.org; Wed, 12 Oct 2016 14:19:17 -0400 Original-Received: by mail-pf0-x235.google.com with SMTP id 128so22320231pfz.0 for ; Wed, 12 Oct 2016 11:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version; bh=kSZv111Wp+KsyBzeCiSMPuIskNMwwR7F9lUfkxhwKeg=; b=EAQqoJepEOGabishiIU/EJAWU+XRxuQbH3+8FYSnPCfdqj66cdQdz8xuefQ4wuLh1t GezC0+6FYBImklEk7LZ9gggICnQMwM6Juy4gPKH0YAj5EnsZrqJ1rPbnFIodVnb+ZWBr QbnGnk+8/46ko0Nvi0rXJwvlavG+S80M/a4WWRlBAMkd1a1YoVR4pMuQckOndYh41Gbn y81sn2c6Iw0BzpgNyXjo5aD7gIjokPkx6TVUXXwDkO23j8d1XVlIJn9w246lO+GugZ3u 0fusG1QJuydBkOWptYDEtb+Y0qc36yDHaPU+YnGnlzyE6uAeFHSdE6MeISHozs/C3IP3 63LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version; bh=kSZv111Wp+KsyBzeCiSMPuIskNMwwR7F9lUfkxhwKeg=; b=cj/pqfkmFVLlqnsG1cvXMNypG7LSaYze4sgD7YjGPdZCGuyy4xLCp8ixkdYYwY3TTg iuEPO9aq7dxLrqOROdURvzhpWGaP1/ted4z9r4G479K5YZJYrJXIqMvaTzlr7qO4+DZi es+Pg5v9lwXFuiZHIvKS4yss21X74rpclX83hK5/k0ji1edDpAatdIp9LZHa3OVEPvAy Cc8mkWzwJ15vI2i//zltBeCiPDkMRBBJykxC8CRF+Clzp4cde2pV4085cxFv5wdsS+Zp KkOfYkI30l/NWLuBh65iBRTJR8A3iJ5Bed06ycHjrOoQ9bQkoFY8U8tIYSWxP+x1ciCb +wQw== X-Gm-Message-State: AA6/9RmYo6ZJwPuJr4MvDQ9MFJNn6OfBEylqSgjFRIVnke0+yqquKo/XFFuW4I8z8SpxMQ== X-Received: by 10.98.207.195 with SMTP id b186mr3712327pfg.66.1476296356086; Wed, 12 Oct 2016 11:19:16 -0700 (PDT) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id h8sm13407217pab.9.2016.10.12.11.19.15 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 12 Oct 2016 11:19:15 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 126172E6890A; Wed, 12 Oct 2016 11:19:15 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Wed, 12 Oct 2016 09:42:01 -0700") Mail-Followup-To: Tom Tromey , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:208182 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I just had a nice side discussion with Eli that has allayed many of my fears at the prospect of merging this branch. What we're talking about here is not the kind of concurrency that leads to nightmares involving corruption of global state, but cooperative concurrenc= y. Think of it as "timers, done right", if that helps. It would make a library like emacs-deferred trivial to write, for example, which today is tortuously implemented on top of the hackish timers we have now. Tom, if I can find some volunteers to help, would you be willing to see the work of merging this into master through to completion? =2D-=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGcBAEBCgAGBQJX/n6fAAoJEMFE2PTxn+YwGpcL/jjsaa2Hvr5OKK4NGxvy35ZA gewXAUPHBVZqCNdciVbSsoWWwvqbgSHt+Oj7YeOxAs9UgDFYRWkFsOq4AV6pdSL8 K0Omn/yrjBBkeyADldeAy6j2wthi7x0b6/8DFH8O1guCNAVhUk5lADU3eUjInEX0 8jVN6ujSCJ3UT0GNe4bRXDGYNDhFXtCEvoRgQ3JgsRf6+IFBfXpsBalzE4XgcKqL uRZdycjK6efh9bSXrC9As3u4E0J9pPfSUaqb/NLUoTT1yjmC2nirgarex+Mv6kTF sxE7VJQQfc1L5ghd992gE3jbuy8e6lmmMYIbWigCGwuIFKV+zEEm3F65q1rHLqAL zhcqFrXfnv1YTyThiyMztk/jIbvfMM7asBmq6KMbYrPIc0bKTfyAwTxvzzhe8VkA 29+3XSW1tZMo8eQ0IALZVsoLggwBzh15Ma3R2e4dBs+zh/20OWP3fvJKJW3FTmSl loH+ZjZHRPBEW/uI4QhtQJ6+pduQCwAPDCQ/Zryz6g== =aFDR -----END PGP SIGNATURE----- --=-=-=--