guile-devel
[Top][All Lists]
Advanced

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

Re: Guile API for foreign languages: proposing SCM scm_list_0(void)


From: Ludovic Courtès
Subject: Re: Guile API for foreign languages: proposing SCM scm_list_0(void)
Date: Tue, 15 Jan 2013 10:20:58 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Hi!

Andy Wingo <address@hidden> skribis:

> On Mon 14 Jan 2013 23:44, Alexei Matveev <address@hidden> writes:
>
>>   scm_to_int();
>>   scm_is_true();
>>   scm_is_symbol();
>>   scm_is_null();
>
> We can change these to inline functions, no problem.  They would also
> get an out-of-line version written to the .so, so that should work for
> you too.
>
> It seems that we can indeed make all of our API available to non-C
> users.  Any objections to doing so?

You wrote:

> Each additional function added to Guile's ABI imposes additional cost in
> runtime memory, ELF symbol resolution, and (to a degree) startup time,
> without providing any benefits to C users.  On the other hand, if we are
> only talking about 2 functions (say), then clearly we should do it.  So
> part of the question is, how much work are we talking about?

So I agree: if we’re talking about a few functions, that’s fine;
otherwise, that may be questionable.

WDYT?

Thanks,
Ludo’.




reply via email to

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