guile-devel
[Top][All Lists]
Advanced

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

Re: [patch] subordinate SMOBs with GOOPS superclasses


From: Andreas Rottmann
Subject: Re: [patch] subordinate SMOBs with GOOPS superclasses
Date: Sun, 09 Dec 2007 19:39:20 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hi,
>
> Andy Wingo <address@hidden> writes:
>
>> On Tue 27 Nov 2007 07:57, "Marco Maggi" <address@hidden> writes:
>
>> +A special smob type is implemented to overcome the 255 limit on the
>> +number of smob types. Its procedures dispatch the call to procedures
>> +referenced by a subsmob descriptor.
>>
>> Sounds really byzantine. The tagging system has that aspect to it, yes,
>> but perhaps there's a point where the complexity is too much.
>
> That was my reaction too.
>
> I don't have any clear idea on how to solve it in the short term.  In
> the longer term, my feeling is that we could have a Scheme-level FFI (in
> the spirit of what Jon Wilson posted some time ago [0]) that would allow
> the creation of subrs (aka. "primitive procedures") at run-time through
> a simple API.
>
You should probably also have a look at the Scheme-Level FFI of PLT
Scheme[1], and my reimplementation for Scheme 48[2].

[...]
> [0] http://article.gmane.org/gmane.lisp.guile.user/6062

[1] http://download.plt-scheme.org/doc/371/html/foreign/
    http://repository.readscheme.org/ftp/papers/sw2004/barzilay.pdf
[2] http://download.gna.org/spells/darcs/s42/ scheme/ffi, c/ffi42.[hc]

HTH, Rotty
-- 
Andreas Rottmann         | address@hidden      | address@hidden | address@hidden
http://rotty.uttx.net    | GnuPG Key: http://rotty.uttx.net/gpg.asc
Fingerprint              | C38A 39C5 16D7 B69F 33A3  6993 22C8 27F7 35A9 92E7
v2sw7MYChw5pr5OFma7u7Lw2m5g/l7Di6e6t5BSb7en6g3/5HZa2Xs6MSr1/2p7 hackerkey.com

Any technology not indistinguishable from magic is insufficiently advanced.
   -- Terry Pratchett




reply via email to

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