emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-sitter api


From: Eli Zaretskii
Subject: Re: Tree-sitter api
Date: Fri, 17 Dec 2021 09:15:26 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 16 Dec 2021 16:14:52 -0800
> Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
>  Tuấn-Anh Nguyễn <ubolonton@gmail.com>,
>  Theodor Thornhill <theo@thornhill.no>,
>  Clément Pit-Claudel <cpitclaudel@gmail.com>,
>  Emacs developers <emacs-devel@gnu.org>,
>  Stephen Leake <stephen_leake@stephe-leake.org>,
>  john@yates-sheets.org
> 
> Someone commented on my request saying
> 
> > Had this issue as well, but thought was too niche to open an issue. The 
> > standard way to change the allocator at runtime is with the  LD_PRELOAD 
> > envvar (see mimalloc or any allocator doc).
> 
> IIUC it is more of a user-feature right? Like you will use LD_PRELOAD=xxx 
> program but not change the environment programmatically in the program? Could 
> Emacs do this should tree-sitter doesn’t want to change?

I don't think we want to use LD_PRELOAD for this, for several good
reasons.  It's non-portable, for starters.

> The author suggested to implement runtime change of malloc on top of current 
> macros, but I think he missed the point (we don’t want to maintain our own 
> version of tree-sitter).

Yes.

I hope we get a better response from the developers of Tree-sitter.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]