From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.emacs.devel Subject: Re: Pushing the `gnus-range-*' functions down into the C layer Date: Fri, 10 Sep 2010 10:06:18 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284105802 20089 80.91.229.12 (10 Sep 2010 08:03:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 08:03:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 10:03:17 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 1OtyZo-00022w-1q for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 10:03:16 +0200 Original-Received: from localhost ([127.0.0.1]:35803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtyZn-0003FK-5a for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 04:03:15 -0400 Original-Received: from [140.186.70.92] (port=36668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtyZe-0003Dj-S1 for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:03:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtyZa-0002yl-I8 for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:03:06 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:49531 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtyZa-0002ye-GN for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:03:02 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7D076D475F for ; Fri, 10 Sep 2010 04:03:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=rlf5PmhIa0qOVABBBQ9BMj38k/c=; b=nFai21 rSFcPLvy/huTk3cTQo1FztNX4SypZ4mLmDbgro4m5Ol/xaJl22PjJh6otLgUzwP1 d+O/ZQ310mGg+4Ldo6jcO4fUOBfd8by6D3fp3EH4bbuyx4MyXbMPxtUKfRoJlmSc KFSmDeYrF90oQz/o7U13+DOM0fa6S57dMpYcs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=a6Y1h2nnNqdzy8xYiqUsGEOuuKl2GQxp Z/IsH/ZKujznSC9hsGTSuS/gfM39kmQIWabY6bJqHuloFTi/rNK2qT6czBymoWLm qKwrdAXEeMTe+0sy7d1sbpMwLsTkYuWHNBkBjtzE3+jxAEIv+D3n6BHkxOBeYtZj 60EgY8vj+7g= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 79B55D475E for ; Fri, 10 Sep 2010 04:03:01 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [79.156.144.156]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C88A9D475D for ; Fri, 10 Sep 2010 04:03:00 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 09 Sep 2010 17:16:56 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: D5170EB0-BCB1-11DF-905B-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:129863 Archived-At: Hi, On Thu 09 Sep 2010 17:16, Lars Magne Ingebrigtsen writes: > Would anyone mind if I implemented the `gnus-range-*' functions in C for > Emacs 24? Speaking with my Guile maintainer hat on, more C is an evil. Guile was a slow Scheme so lots of stuff got moved to C, but we still weren't quite fast enough, and by the time we exhausted our possibilities for C optimization, we were left with a brittle thing. Instead the real fix was to improve the language implementation, so it wasn't so slow. The same thing will be the real fix for Emacs. And now that things are better in Guile, we are rolling back on the "C-for-speed", because in many cases it's not faster. I should say that sometimes C is a necessary evil; but it's an evil nonetheless. If you can fix this particular case algorithmically, that would be loads better. Just my 2 eurocents, Andy -- http://wingolog.org/