From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?VHXhuqVuLUFuaCBOZ3V54buFbg==?= Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter api Date: Sun, 5 Sep 2021 23:45:46 +0700 Message-ID: References: <83r1f7hydn.fsf@gnu.org> <95F37923-5BF9-4D81-B361-267CF119FBCA@gmail.com> <735AF34C-FD18-4A6A-A99D-E5D8EB4DE4F3@gmail.com> <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26929"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , Theodor Thornhill , emacs-devel , Stefan Monnier , Eli Zaretskii , Stephen Leake To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 05 18:47:33 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 1mMvIr-0006sk-1S for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Sep 2021 18:47:33 +0200 Original-Received: from localhost ([::1]:49614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMvIp-0004w8-Ff for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Sep 2021 12:47:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMvHS-0003HO-O2 for emacs-devel@gnu.org; Sun, 05 Sep 2021 12:46:07 -0400 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:52007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMvHQ-00021H-Or; Sun, 05 Sep 2021 12:46:06 -0400 Original-Received: by mail-pj1-x102c.google.com with SMTP id c6so2823130pjv.1; Sun, 05 Sep 2021 09:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iLFuGfziKMXkGsFyuc+5vdfA8CpuujZoQ2uof1Q5zO0=; b=RIImItAUfU//0sLs/+ubdlXRFk4S70XZnextNBwlCBvVBjPH104eVPRT/2BmniT8tf xq+reduEUoz4xR7VJD8QUnQmpz19U/U7HikqH2VlWowaIDMp+8LGACyUNi/g14YnVuV4 OcFoNljq7x434zDm7qgGFMT8syPZoX1bvjf0J+YbnTC6U4Jw+v1SYZ/AWxPnWBKeCdCY rw1G87CmN9bXguZ0ykIKqxeDFOYpQPKSibheMMP9C2qexyHcw+Ug4dPWH+kctitSKJ80 CL4WaLBmMdhROjGqQPegnqRzol44JkPrQRH8gvmx/GefAbjamF+w6G/ohzy2EYfLnhXA UftQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iLFuGfziKMXkGsFyuc+5vdfA8CpuujZoQ2uof1Q5zO0=; b=idcJ0aQhWoHWencdg+ZmsptBelvdXT3NDohNPcnala7eETEfHov72J++y7fJS45vSx 6rgj6IxlQhSRmU0h7cMer3kfrswLAeBTmuX3oRrfJZjr44Tmfeik52koTBGkDLp7Rqfv QmcCkLsYITCKtM0iHIAaw4EhjZX9jGkhxWVjyVlOfZvMy+5P9ZEJyfd1nWJJ33moI1hU lB2Y3o4LdCrsPkNoptYvj15RZ4RSy1iW7SiN+0fo1NTjeqN3VEwkgo6ihuImeVUC3xB/ 164U+uFA/anchkcxkG4HZK42/13ELIUHq1hJACqJr8SB+TSMVTM+joBxWFnF1bG1EjfF 4WhQ== X-Gm-Message-State: AOAM533yS4z/ftjhvT8O9r51BPtXTQ6xG5/W1vhYXxHrsnTAI3vh+tpE k7gxJ/RFW+HnrzPHVRQY2o2XYXP9S0KHO8Tr9sw= X-Google-Smtp-Source: ABdhPJwhd6dL7rbN0wkEPANIZNMqdZmrpmammotaW7ikZARnSe1XV9pRk4qIP+i7p8QL9T9cTNTpvGqLQFjVCiQrWdQ= X-Received: by 2002:a17:902:e790:b0:12c:c0f3:605c with SMTP id cp16-20020a170902e79000b0012cc0f3605cmr7532543plb.70.1630860362735; Sun, 05 Sep 2021 09:46:02 -0700 (PDT) In-Reply-To: <40611F1F-7B5C-4885-A2CA-CE709ED8D22B@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=ubolonton@gmail.com; helo=mail-pj1-x102c.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:274019 Archived-At: On Sat, Sep 4, 2021 at 10:31 PM Yuan Fu wrote: > I packaged language definitions into dynamic modules: the system is there= , why not take advantage of it? Do you think this approach can be improved = in some way? The language definitions just need to come from dynamically-loadable shared libraries. They don't have to be Emacs dynamic modules, which bring additio= nal unnecessary complications, e.g. build difficulty, load path pollution, or inability to load grammar binaries from other sources like distro's package repos. It's better to just load the shared libs directly without going thro= ugh module machinery. Use the functions in `dynlib.h`. --=20 Tu=E1=BA=A5n-Anh Nguy=E1=BB=85n Software Engineer