From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs and Gnome Canvas Date: Sat, 17 Jul 2010 02:08:43 +0200 Message-ID: <87r5j36kc4.fsf@telefonica.net> References: <4C3ECB4C.6050208@swipnet.se> <83aaptgly1.fsf@gnu.org> <4C3ED4F9.4080603@swipnet.se> <83630hgi0r.fsf@gnu.org> <4C3EE8D6.3020607@swipnet.se> <8339vlgcax.fsf@gnu.org> <87fwzkbzg8.fsf@telefonica.net> <877hkwag6y.fsf@stupidchicken.com> <877hkwbth6.fsf@telefonica.net> <83pqyofzdg.fsf@gnu.org> <8739vkbpq5.fsf@telefonica.net> <83oce8fwlq.fsf@gnu.org> <87tyo0a11p.fsf@telefonica.net> <83k4ovg7rn.fsf@gnu.org> <87630fa4j8.fsf@telefonica.net> <83d3unfo92.fsf@gnu.org> <87wrsv8l6u.fsf@telefonica.net> <83bpa7feta.fsf@gnu.org> <87zkxr6s34.fsf@telefonica.net> <56009CA1-80D6-43CC-BC46-42002D2B4498@mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279325784 29254 80.91.229.12 (17 Jul 2010 00:16:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2010 00:16:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 17 02:16:21 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 1OZv4m-0004vD-7f for ged-emacs-devel@m.gmane.org; Sat, 17 Jul 2010 02:16:20 +0200 Original-Received: from localhost ([127.0.0.1]:50220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZv4l-0001LJ-4q for ged-emacs-devel@m.gmane.org; Fri, 16 Jul 2010 20:16:19 -0400 Original-Received: from [140.186.70.92] (port=51656 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZv4e-0001KD-Me for emacs-devel@gnu.org; Fri, 16 Jul 2010 20:16:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZuxa-0006NV-VS for emacs-devel@gnu.org; Fri, 16 Jul 2010 20:08:56 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60038) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZuxa-0006N3-Jo for emacs-devel@gnu.org; Fri, 16 Jul 2010 20:08:54 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OZuxX-0003IP-Nr for emacs-devel@gnu.org; Sat, 17 Jul 2010 02:08:51 +0200 Original-Received: from 83.42.13.171 ([83.42.13.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jul 2010 02:08:51 +0200 Original-Received: from ofv by 83.42.13.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jul 2010 02:08:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.42.13.171 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:eJBVbiYj6JLD68fEmKWkOdSnL5o= 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:127464 Archived-At: Chad Brown writes: > I think what Eli is trying to tell you is this: > > If you use Python, you can use the existing python<->C bridges. I guess those bridges were made when somebody tried to add Python to Emacs as an extension language. Do they cover the functions and data structures that a display engine needs for talking with the rest of Emacs? Are they up to date? Debugged? Documented? > If you use C++, you can't count on being able to use new /delete or > anything that uses them (which will include a huge chunk of C++, and > probably a huge chunk of Qt). This is plain wrong. First, there is no need to expose objects allocated with `new' to the rest of Emacs. Second, whatever mechanism Emacs uses for memory management, it is usable from C++ as well (for dealing with Emacs objects, of course.) > If I understand you correctly, you're trying to communicate the idea > ``yeah, it'll probably be rough, but I'm comfortable with C++ and am > willing to try to make it work''. Unfortunately, what you're saying > is much closer to ``how hard can it be?'' -- which leads many people > (especially programmers) to answer the question -- and in this case it > can be really quite hard. Is it better to not try it, then? Knowing how hard is it is one of the main motivations of this project. But what drives me is just thinking that may be fun. Maybe tomorrow I'll change my mind. [snip]