Re: UFFI vs. Boolean

From: Kenny Tilton (ktilton_at_nyc.rr.com)
Date: 11/22/04


Date: Mon, 22 Nov 2004 20:32:20 GMT


Pascal Bourguignon wrote:

> Kenny Tilton <ktilton@nyc.rr.com> writes:
>
>
>>Russell McManus wrote:
>>
>>>Kenny Tilton <ktilton@nyc.rr.com> writes:
>>>
>>>
>>>>I see also while working on Vasilis's herculean Gtk bindings that
>>>>(a) Clisp has a killer FFI and (b) UFFI does not support CLisp.
>>>>
>>>>Whassup wid dat?
>>>
>>>As you are aware, UFFI is a relatively thin macro layer on top of a
>>>couple of Lisp implementations's FFIs. So there is an inherent
>>>assumption in the design of UFFI that the underlying FFIs provide
>>>roughly equivalent services, only with different interfaces.
>>>But CLISP's FFI provides higher level constructs and otherwise
>>>doesn't
>>>fit in perfectly with the model assumed by UFFI. This is not to say
>>>that some enterprising hacker couldn't figure out a way to do it.
>>>I agree that CLISP's FFI is very cool.
>>
>>So I was thinking, maybe anything UFFI semantics call for can be
>>implemented using the CLisp FFI. I did not exhaustively confirm this,
>>so maybe if I tried I would get 80% of the way there and...doh!
>>
>>I realize this would be a comedown from native CLisp FFI, since we
>>would be doing the least common denominator thing, but I think that is
>>unavoidable if one wants portable code. And I do not think CLisp would
>>be the first Lisp held back by the LCD thing.
>>
>>Anyway, I am busily hacking a boolean type into UFFI. Partly. :) I
>>just want to see cells-gtk run under allegrocl. :)
>
>
> Already two UFFI for clisp implementations have been started, one by
> Joerg-Cyril Hoehle and one by me.

Yes, I googled that up and checked it out. Looks intense.

Right now I am doing something really stupid, trying to get a quick
(ha!) win by just trying to get the CLisp code to work for AllegroCL, by
deviously conditionalizing Vasilis's own wrappers for FFI macros. ie,
trying to make FFI-conscious code work on Allegro.

I should just suck it up and rework all the FFI stuff to use UFFI, and
then yours or J-C's will let the result get back to CLisp.

kt

-- 
Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film


Relevant Pages

  • Lispworks Cells-Gtk2 Milestone
    ... some small success making Vasilis Margioulas's Cells-Gtk for CLisp ... That now works under AllegroCL and Lispworks on win32. ... CLisp-y and translated to UFFI by macrology, ...
    (comp.lang.lisp)
  • Re: cl-gd or cl-magick in cygwin/clisp?
    ... Unfortunately, while my UFFI macros manage to get the cl-gd tests 1-4, ... cl-gd cannot be considered functional with clisp. ... >; loading system definition from ...
    (comp.lang.lisp)
  • Re: does cells-gtk work with clisp and win32?
    ... Cells-gtk and sent me a ZIP. ... Then I started an effort to port it to UFFI, ... Install notes to warn users like you to use the pure CLisp version until ... change to Cells or Utils-kt must be tripping up cells-gtk. ...
    (comp.lang.lisp)
  • Re: UFFI vs. Boolean
    ... >>Clisp has a killer FFI and UFFI does not support CLisp. ... be the first Lisp held back by the LCD thing. ...
    (comp.lang.lisp)
  • ASDF-INSTALL for CMUCL, CLISP, AllegroCL, and LispWorks - plus tutorial
    ... I have ported Daniel Barlow's ASDF-INSTALLto CMUCL, CLISP, ... AllegroCL, and LispWorks. ... It is currently available from my own server ...
    (comp.lang.lisp)