From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Concurrency Date: Fri, 26 Mar 2010 22:00:57 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87eij6tqmu.fsf@lifelogs.com> References: <27349166.post@talk.nabble.com> <27560255.post@talk.nabble.com> <4B754E74.8060705@swipnet.se> <27563610.post@talk.nabble.com> <4B7564C7.1010309@swipnet.se> <27564728.post@talk.nabble.com> <4B756FB7.3050202@swipnet.se> <87k4ui4gik.fsf@lola.goethe.zz> <27566385.post@talk.nabble.com> <87wryi2sjd.fsf@lola.goethe.zz> <27585994.post@talk.nabble.com> <87k4ucdmwh.fsf@stupidchicken.com> <87d3zweq4e.fsf@master.homenet> <87y6hg1h4a.fsf@thor.thematica.it> <87tys3j9fa.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269658886 29822 80.91.229.12 (27 Mar 2010 03:01:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2010 03:01:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 27 04:01:22 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NvMH2-0008HW-Lt for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 04:01:20 +0100 Original-Received: from localhost ([127.0.0.1]:51834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvMH2-0002hw-4P for ged-emacs-devel@m.gmane.org; Fri, 26 Mar 2010 23:01:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvMGx-0002hQ-8e for emacs-devel@gnu.org; Fri, 26 Mar 2010 23:01:15 -0400 Original-Received: from [140.186.70.92] (port=35797 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvMGv-0002h5-TV for emacs-devel@gnu.org; Fri, 26 Mar 2010 23:01:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvMGu-0002JY-3s for emacs-devel@gnu.org; Fri, 26 Mar 2010 23:01:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57637) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvMGt-0002JQ-Lz for emacs-devel@gnu.org; Fri, 26 Mar 2010 23:01:12 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NvMGp-0008AM-Tr for emacs-devel@gnu.org; Sat, 27 Mar 2010 04:01:07 +0100 Original-Received: from c-98-227-29-141.hsd1.il.comcast.net ([98.227.29.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Mar 2010 04:01:07 +0100 Original-Received: from tzz by c-98-227-29-141.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Mar 2010 04:01:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-227-29-141.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:QMuXO0k6rZwnGZ0K9Dk8XlWDdk4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122751 Archived-At: On Fri, 26 Mar 2010 13:37:51 -0600 Tom Tromey wrote: >>>>>> "Ted" == Ted Zlatanov writes: GS> http://bzr.savannah.gnu.org/r/emacs/other-branches/concurrency/ Ted> I'd like to look at it. Is there a quick-start guide that explains the Ted> changes and how to get started? Tom> Nope. However, there aren't really many new Emacs primitives. Tom> On my branch I had run-in-thread (and a convenience wrapper macro, Tom> with-new-thread), and yield. Giuseppe's branch was slightly different, Tom> and I think he added some mutex support as well; I still haven't looked Tom> at these. Tom> I can explain the bulk of the C changes if you want to understand those. I'd love to know what's in Giuseppe's branch from the perspective of a user. Specifically, I want to know how a rewrite of the Gnus summary buffer entry and threading might work in the new system. But that's a big undertaking so some simple demos would be better: - a demo that increments a shared variable up to 10 with two threads that fight over the lock - a map/reduce demo of totaling a list of numbers with N threads - retrieve some network data asynchronously using threads, not async processes Those demos would necessarily show the new primitives in a practical way. You or Giuseppe can explain the internals as well, that would be helpful, but demos are really useful. Thanks Ted