emacs-devel
[Top][All Lists]
Advanced

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

Re: using finalizers


From: LdBeth
Subject: Re: using finalizers
Date: Fri, 31 Dec 2021 22:39:47 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO)

>>>>> In <878rw1pvcw.fsf@logand.com> 
>>>>>   Tomas Hlavaty <tom@logand.com> wrote:

Tomas> The interface is different from Common Lisp, where make-finalizer
Tomas> usually expects object and thunk, not thunk only but I guess the problem
Tomas> lies somewhere else.

If you mean you are looking for a finalizer interface similar to what
Common Lisp's trivial-garbarge library provides, there was one in
Emacs Lisp before `make-finalizer' was provided.

https://nullprogram.com/blog/2014/01/27/

Both that one and trivial-garbarge are based on weak references.
However that is actually not very good because that impose a lot of
jobs on GC, at least for Emacs the garbage collector is not as good as
many Common Lisp's ones.



reply via email to

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