From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.devel Subject: Re: Rewriting make-docfile.c in Lisp? Date: Wed, 05 May 2021 14:39:18 -0400 Message-ID: <87r1ilrpnt.fsf@catern.com> References: <87zgx9rx7w.fsf@catern.com> <83bl9p2m6s.fsf@gnu.org> <87v97xrurb.fsf@catern.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 05 20:40:52 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leMS4-0003QL-Et for ged-emacs-devel@m.gmane-mx.org; Wed, 05 May 2021 20:40:52 +0200 Original-Received: from localhost ([::1]:44238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leMS2-0002BT-CZ for ged-emacs-devel@m.gmane-mx.org; Wed, 05 May 2021 14:40:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leMQm-0001gq-Oa for emacs-devel@gnu.org; Wed, 05 May 2021 14:39:32 -0400 Original-Received: from venus.catern.com ([68.183.49.163]:39856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leMQc-0005XI-NU; Wed, 05 May 2021 14:39:32 -0400 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=98.7.229.235; helo=localhost; envelope-from=sbaugh@catern.com; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=catern.com; s=mail; t=1620239959; bh=4wkepZ8beQtL6ZmT5eys7rdYhump4MWLHuFFf9rhKAw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=C9e3lvFFQICYejop8XJ5TMtHgqokOHM+izP9a58cJdGv2LBCWluQ+aIqJ+ekjZCCz T0OgbtdH9RPJIhO4xkgFh4XDqjnnbfNNUWUBNPDTAjnWq+B3RTc0t92WXLGFfhtsC+ hjzMf9lS8a6S5W0yF3E+AYjiO2Oc6gZ2VMaS3CLA= Original-Received: from localhost (cpe-98-7-229-235.nyc.res.rr.com [98.7.229.235]) by venus.catern.com (Postfix) with ESMTPSA id E47E02E949A; Wed, 5 May 2021 18:39:18 +0000 (UTC) In-Reply-To: Received-SPF: pass client-ip=68.183.49.163; envelope-from=sbaugh@catern.com; helo=venus.catern.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268915 Archived-At: Alan Mackenzie writes: > Why would one want to write it in Lisp anyway? > > We have a working program in C which requires little maintenance, yet > which is used continually. Rewriting it in Lisp would be _work_. I was making a change and found it quite difficult. I think it would be much simpler to change if it was in Lisp. I admit that since it's rarely changed, it may not be worth it. > Also, the Lisp version would run more slowly than the C version, leading > to more irritation over build speeds than there currently is. I think > this is also part of the build which holds things up in a single core, > thus making its speed more important than, say, a C or Lisp compilation. A rewrite in Lisp could also take the opportunity to add parallelization and speed it up, if indeed this is a bottleneck for the build.