From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
Philipp Stephani wrote:
> Modules will
> typically be used to wrap existing C or C++ libraries or make heavy us= e of
> such libraries, and those libraries won't use an Emacs-specific al= locator.
It's quite likely that wrappers will need to allocate memory to marshal= data
back and forth between C and Elisp.=C2=A0 If I wanted to build a module to = use GMP,
for example, I'd want to use GMP's low-level primitives that don= 9;t do memory
management, and have the wrapper manage memory itself.
I suppose some wrappers won't need to manage memory at all, but I'd= say most
libraries need memory, and the overall system will benefit from having a si= ngle
memory manager rather than having each library manage its own memory indepe= ndently.