From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: Re: Using incremental parsing in Emacs Date: Sat, 4 Jan 2020 13:22:36 +0000 Message-ID: References: <83blrkj1o1.fsf@gnu.org> <41b3e9a0-2866-4692-a35c-6d9541bc3aaa@Spark> <83lfqnha8a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26144"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "emacs-devel@gnu.org" To: VanL Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 04 14:23:11 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1injOZ-0006f4-MG for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 14:23:11 +0100 Original-Received: from localhost ([::1]:33954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1injOY-0001Ip-Ib for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 08:23:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42989) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1injO5-0000cM-Vv for emacs-devel@gnu.org; Sat, 04 Jan 2020 08:22:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1injO3-0000PM-Me for emacs-devel@gnu.org; Sat, 04 Jan 2020 08:22:41 -0500 Original-Received: from mail-oln040092074043.outbound.protection.outlook.com ([40.92.74.43]:61689 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1injO2-0000Ln-Qv for emacs-devel@gnu.org; Sat, 04 Jan 2020 08:22:39 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f9DaxNs2dwIP6e/DqPGSS9YY9TieF9cDS46Z1R5OvYSJvRzQEOrzmDcjGOMQxOWDctsiv56wQRi6oRC/W6oYdEk9UWr/FOvitCwQEehKhQ/5hqAMX+bOdrJVUUNemEISqbUINR3+E73LmE8sQXY605OwcsMZI3h/2xg4bJqOHjQDwpvW4funHHjk5qXUpsE1wMheF7w6Ze7vvZP7PSDW108TeoKNRP/ssrZedieNn2qUc5rSvNU+zVBc13CJXKHq/uaz44R65rXwdmG9L/7OuDfWCAx6cQfYL8ojQeDo/JUuLwWLEsohEwxN0wMvP+RJ21wfwZKudqf8CD+jFW48Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVQFWdngkq7l45UPfpxJ+rWPZAkmI2zx4DhkSF7zeq8=; b=b+DXL1bXvav09UMAJ1Lm4b7yP2Wse1iRaatXvIFCtseVqcnt0jhz0DhBKCLEO4KRka4jwwPitVPiwF6FFQ1gCjFG5PTZGjyiTQ011ZVvKvkh1vD3Ta9nZ0fvbGaa9L/9FY1rYjoUoLeNfvHFw3tOv0JpIc3dCfLF/YdGvrE/jvF26VdI6dk82KHgxz+Ki2k8iWRAu4x4z5GfodqUcdT1mrYYTzjuDvxhdwlw794IOhPgjFoxwPWqfZSMvy1L7hpVSApd3x8fFMa0sKlgvgfhoEAaMWIk31U2AMYJPiLRIfeLVd0jX7I9h8xsjrAmO1/61gGTpBpvjzLn71TU1R+Z6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JVQFWdngkq7l45UPfpxJ+rWPZAkmI2zx4DhkSF7zeq8=; b=R2QdbaRo1bsStmCXcZvtVNsG9M48evXSymJ2q7JE/BXm39gGQPtZsUSFkjOrU2blN+xZhVSqoDd+ACrHrUgFwsQvL8uWtt9PuDbtmy0iii3WJUfBOuhZXyJqbVg2q1RUDEIkSzzz06JqyDfVM7EBe6NwqCEtOvs2+GfvnwEXJAJ33oaUPCuGfAdV9zYjALaDx1V7jxzhx+/chL2irer1UcQKyBNZHorT3nHHjiSEZyB514paoEGc2x5wp/z/XVkMYr9a8+FsAtWv/KoHW41DAN3lb3mnwVjBSQcBRd3K4yqDk7pd3Cupfj/SvaQYM6SG406jOa6+Gn2d3hemAuW3Zg== Original-Received: from DB3EUR04FT011.eop-eur04.prod.protection.outlook.com (10.152.24.54) by DB3EUR04HT036.eop-eur04.prod.protection.outlook.com (10.152.24.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 13:22:36 +0000 Original-Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.24.59) by DB3EUR04FT011.mail.protection.outlook.com (10.152.25.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 13:22:36 +0000 Original-Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.015; Sat, 4 Jan 2020 13:22:36 +0000 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR05CA0023.eurprd05.prod.outlook.com (2603:10a6:20b:2e::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 13:22:35 +0000 Thread-Topic: Using incremental parsing in Emacs Thread-Index: AQHVwh1Uy8tVxqoXLEaWXDDoUSKGMA== In-Reply-To: (VanL's message of "Sat, 04 Jan 2020 23:50:24 +1100") Accept-Language: sv-SE, en-US Content-Language: en-US x-clientproxiedby: AM6PR05CA0023.eurprd05.prod.outlook.com (2603:10a6:20b:2e::36) To VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:41::33) x-incomingtopheadermarker: OriginalChecksum:9107AF44858A2131249543EC3EBD8C056A5E51E0176A30C3E3133A6154A518B7; UpperCasedChecksum:F893183D570E4C992DCE1FC94C68A7629BCE7E7019CD43BAA7156E879FB45AD7; SizeAsReceived:7632; Count:50 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [red3fmgYc8n/WJ+BQxUB+254VBjEoqoP] x-microsoft-original-message-id: <871rsfnypi.fsf@live.com> x-ms-publictraffictype: Email x-incomingheadercount: 50 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: e62e5b18-0c74-4cc3-fbb0-08d7911929a0 x-ms-traffictypediagnostic: DB3EUR04HT036: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jvDg0cj3+K6kZB3VECLLHv6T6KXAFxNhDdtQvMwmrEXYNoM8l4214W4odzl1iEYFpBg1PMj33Ra6TVz0qLIwJTM+SOsd7FXyPy+HHxzc4s/GEs/qXxR3OV/H+dBIk7r2LhDDTXeY9rx6r1pd8PKrwAwz68OH72euOrbpNIMB2lL28bl5EKBtDUljzzVr6is1Cf/EIzliMISnLWjCn5cYK7yuM6t0xudQ5TiGzRoIkTk= x-ms-exchange-transport-forked: True X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: e62e5b18-0c74-4cc3-fbb0-08d7911929a0 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2020 13:22:36.0667 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT036 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.74.43 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243918 Archived-At: VanL writes: > Eli Zaretskii writes: > >> E.g., step 1 is anathema to JIT font-lock: it would produce a long >> delay in displaying a file's buffer when the file is first visited. >> For example, think about visiting a large and complex source file such >> as xdisp.c: even if it takes tens of milliseconds to parse all of it, >> as some tree-sitter presentation claims, waiting for that long before >> we even start displaying the first window-full would be an annoyance. >> And that's even before we consider the time to compute all the face >> text properties from the syntax tree, something that will also take >> time. > > Is it possible to phase out the C part of Emacs over the present decade > given [1] and can the approaches presented there foreshorten that wait > time? > > Footnotes:=20 > [1] C is not a low-level language > https://queue.acm.org/detail.cfm?id=3D3212479 That was a long read article. I don't believe C is chosen because of being a low-level language, probably because at some point was a "high-level" :-) Anyway, I always wondered if Emacs could be compiled as C++ code (with g++). It would made lot's more code avialable to be used in Emacs.