From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.devel Subject: RE: Using incremental parsing in Emacs Date: Sat, 4 Jan 2020 11:25:29 +0800 Message-ID: References: <1504933445.581219.1569619792280.ref@mail.yahoo.com> <1504933445.581219.1569619792280@mail.yahoo.com> <83impdhqz1.fsf@gnu.org> <87pnjklvsb.fsf@yahoo.com.mx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5e1005ae_47caa567_4379" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="11051"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii , phillip.lord@russet.org.uk, arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 04 04:26:23 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 1ina50-0002kj-86 for ged-emacs-devel@m.gmane.org; Sat, 04 Jan 2020 04:26:22 +0100 Original-Received: from localhost ([::1]:59050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ina4z-0007vs-38 for ged-emacs-devel@m.gmane.org; Fri, 03 Jan 2020 22:26:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56757) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ina4T-0007U2-IC for emacs-devel@gnu.org; Fri, 03 Jan 2020 22:25:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ina4S-0002U0-3v for emacs-devel@gnu.org; Fri, 03 Jan 2020 22:25:49 -0500 Original-Received: from mail-oln040092255037.outbound.protection.outlook.com ([40.92.255.37]:20160 helo=APC01-HK2-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 1ina4O-00025n-St; Fri, 03 Jan 2020 22:25:45 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zw2t303dZ0zWbGB4fs8u9M5yWe54OCSevV/4BjEHAw4CfFRXCm98fJsBO00k4qvVaYpvb8t3c23hW3jUcDwVaU9Z43q1ydc9MeZy73y9MVZmQj6iTVxEtsF0WHMDXadPgQ+SbiNKfsjxPpUBid0GaGuudlBt+uBBY2A+EDgp7Wrdc+eGny4wCiDiZAqudcMxQtf9nHZoyvwtVQv9Ni4y57UTnpMvynYsVZnqxLOrDdlt2G5ooZHb6ueBHCeG2UIlYHc8BqRdx9IV+jso2pZJRpzSBIouPDBlUfMFnSRxooFBjA22ezYyzDnuDM1MTbxOAV26l84IIh/M/vH82pJ/GA== 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=l6h66pJGZ31gMiGHZ7/DrdbooOg34zQG9gfVCy6WUbA=; b=JyXSeFuFfahN5uCMZyROEZuUKDD//Z+6CaJY5USbUR4TBd/zPwu7E6RDW3zxsP8DjgybAuA1o3EM8LlBb3Cdjux9fpM3WVv/SB0jkKkXFsA+8WW/6lXUUIWUBWtKoIgYummFa6gXzhvte5E0zoVVoPfDBwGM9cXjLt2DhcAweTBKBCcOaryqLP8YkJ/5dSzihSRkfO69pqq0RD52+qxQh8cqrG6bnWtCj4xFu/kBWI7ZB4pNswxYVCx1PTjlUtjf+DbZeIVYAlDabHzv+QSm72uON3NhLrf+2c1unDZ5LB4Tx64xdl2uwt2OcJCzrtJ0k6xKacg9In23I2TVwsNKrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l6h66pJGZ31gMiGHZ7/DrdbooOg34zQG9gfVCy6WUbA=; b=u3cPkp6/FFKb16jmhh2uD4o5B/bn48uuDSBU8alUG/YQAkPNQ7aGDdDOfBF2EO8ICb9YE5hqlfl6W0i+cAabLfADvS2p4baPYVuOMSF1WOgeigDjhX4S6yA/edKGlPDsYSU5Ryx6/Lw5ysisjwoTtwMfjPC1sH2LvPDwum3UhRVqnaWVVoeEeuAB2aybTabmYgLLTGOAOrx7J25Z3snJQV1jZ/WQdMXETo4Is02UzHM64yWzVjecgiso0P7XG0jgRYdRI84kXw/KlPrNeMad9Fwg5Hy3BHlxVPFfQyv8MMfzC/Sxvso012YOh0eBoUQS5qQqWyDQcaL/7Iw1rGMxNg== Original-Received: from PU1APC01FT055.eop-APC01.prod.protection.outlook.com (10.152.252.56) by PU1APC01HT176.eop-APC01.prod.protection.outlook.com (10.152.253.182) 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 03:25:39 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.60) by PU1APC01FT055.mail.protection.outlook.com (10.152.253.106) 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 03:25:39 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C0F0EFC61123640B7C0F118A4D9CCE6DE1CB81F188C1B32BFB862FE899E5EC93; UpperCasedChecksum:4505350B89CDFB21B65D9E5A933C6D2EE8BD855D20C28245568E4C47AA20B41D; SizeAsReceived:9019; Count:48 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 03:25:39 +0000 In-Reply-To: X-Readdle-Message-ID: 9ebdfc66-f28e-42b5-8fa3-dac7016f3765@Spark X-ClientProxiedBy: HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <9ebdfc66-f28e-42b5-8fa3-dac7016f3765@Spark> Original-Received: from [192.168.1.103] (1.199.245.197) by HK2PR02CA0204.apcprd02.prod.outlook.com (2603:1096:201:20::16) 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 03:25:37 +0000 X-Readdle-Message-ID: 9ebdfc66-f28e-42b5-8fa3-dac7016f3765@Spark X-Microsoft-Original-Message-ID: <9ebdfc66-f28e-42b5-8fa3-dac7016f3765@Spark> X-TMN: [JbFbfjX+03Rtkde1shVvz9QzYfmrvM8H] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 59c83c99-5760-433e-1a84-08d790c5c51f X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKz/FNZZPqLptteq8XaJPbo/pGcWs7BUgJckhEKdY8kkxyINcZVkmO2Pzvdndsn1FDlY3VC7ojZrZ3xwQuGxb0ZcLJLOuct1z1EeQJdgiMdHYFlE/1a3bInrDEoyJioZmo6Sc5OYQVAeuz3JkhSxG6sQQIzrbERLQvXIPU7YsbCKt50wbGZ6fj3Usx5gxv8uk4Tl/c0jp08XLQhp8vRn76MrwizOtRiu1zPVFKANvhAAJf9t3DZHBZGBlwFsWOSvblLH+RIRmB5IpBjlRFoQMkq2KGHjbXRTCicI6hovaG+Ks3Van+x6V47I7IehiliBErSePChhNDHmiKgXoQDaJCf7PazgDGXvZzXi+54d/5jLmi0s0Ts9FYrJEpDd0hlkLHfQk42VedbYv7yYZTbSd/Tr06Bo5YdROb3afv8Y6sXZqzI43elAEIw16fR+WilxZ+YxblVoykixlMHv4xkOw1+aM/j5OOhcCZipztsV7if4H5d2Pk8LAAFpNHJm2Xd9zJQDuGLnkFeJP5Awr+Z2jEZaxMOnPd+14WJsgJeV9dlt2KCvOw0jg8zfNKUEe510QiQujgaIlk4bsJcvtzckWnJFl/p7pdypZ90XUSaJcCHo8Jb+xqP1bO5L0bcfMxFvlz1RTUjKogKrQZfTSFL9X+llLvKmKsgPCZnqEH98crQLGstOQfHznbVR9AKNYrPM1vOzqaReuZc8w== X-MS-TrafficTypeDiagnostic: PU1APC01HT176: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OFuVgri5XG8D1hxas1KlGsc43TAsGZZ116MvuBuDdWOahefPi+LrxmEZDzd1aXCfhKuQulZs+MwH9QjCXXkCL8oUmyqBAhIRikHLVI+GyQPxcxcLPBr6Kw5KFz9kzMarwAlYc1z83Yb2/WJrqqu0ljls8DKehZbZz02xfxUW8YbznhK0dpI9ZzUWZbVMIG4zU2YSBDY+NcLpnrPwgGtk8eKTChR0HFaPaOhUJ2nm9Pk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59c83c99-5760-433e-1a84-08d790c5c51f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 03:25:38.9559 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT176 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.255.37 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:243904 Archived-At: --5e1005ae_47caa567_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM11:43=EF=BC=8Carthur = miller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > Microsoft has been doing this since 1990's and they ended up with =22la= nguage server protocol=22.=C2=A0 Maybe Emacs core could implement some ki= nd of support for implementing lsp:s or implement some better support to = interchange data with existing lsp:s. > It seems that they(VSCode team) are also trying something like the tree-s= itter.=C2=A0I forward another discussion to you. =E5=9C=A8 2019=E5=B9=B412=E6=9C=8827=E6=97=A5 +0800 AM12:52=EF=BC=8Cyyonc= ho =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Hi Stefan, > > > > > 3- How does tree-sitter compare with the LSP-route (via eglot-mode > > > =C2=A0 =C2=A0or lsp-mode)=3F > > > > lsp protocol is not going to support full-featured highlighting but o= nly semantic > > because it won't be fast enough. > > > > Related:=C2=A0https://github.com/microsoft/vscode/issues/77140=C2=A0a= nd > > https://github.com/Microsoft/vscode/issues/585 > > > > Thanks, > > Ivan --5e1005ae_47caa567_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM1= 1:43=EF=BC=8Carthur miller <arthur.miller@live.com>=EF=BC=8C=E5=86=99= =E9=81=93=EF=BC=9A
Microsoft has been doing this since 1990's and they ended= up with "language server protocol".  Maybe Emacs core could= implement some kind of support for implementing lsp:s or implement some be= tter support to interchange data with existing lsp:s.


It seems that they(VSCode team) are also trying something like th= e tree-sitter. I forward another discussion to you.
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8827=E6= =97=A5 +0800 AM12:52=EF=BC=8Cyyoncho <yyoncho@gmail.com>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Hi Stefan,
 
3- How does tree-sitter = compare with the LSP-route (via eglot-mode
   or lsp-mode)?

lsp protocol is not going to support full-featured highlighting but on= ly semantic
because it won't be fast enough. 


Thanks,
Ivan 
--5e1005ae_47caa567_4379--