[armedbear-devel] CFFI support for the previous example

Mark Evenson evenson at panix.com
Tue Nov 30 18:19:11 UTC 2010

On 11/16/10 12:19 AM, Cyrus Harmon wrote:
> I neglected to mention that the previous example requires some
> changes to CFFI to get things to compile in the first place. The
> attached patch is my attempt at bringing the ABCL CFFI code forward
> to support the :calling-convention ->  :convention that must have
> been made a while back.

It looks like we should relax the restriction on ABCL's internal socket 
routines to accept subtypes of (UNSIGNED-BYTE 8) as allowed by the 
attached patch.

This gets DRAKMA a little further with SSL connections, but then the 
CL+SSL code fails as follows as we need an implementation of callbacks 
in CFFI.  Not sure how much work that would be, but I'll take a look 
when I get time (if someone else wants to jump in here, please do by all 

callback support unimplemented
    [Condition of type SIMPLE-ERROR]

  0: [RETRY] Retry SLIME REPL evaluation request.
  1: [*ABORT] Return to SLIME's top level.
  2: [ABORT] Abort thread.

   0: (#<FUNCTION {20913236}> #<SIMPLE-ERROR {7D63B1F4}> #<FUNCTION 
   1: (APPLY #<FUNCTION {20913236}> (#<SIMPLE-ERROR {7D63B1F4}> 
#<FUNCTION {20913236}>))
{7D63B1F4}> #<FUNCTION {20913236}>)
   4: (ERROR "callback support unimplemented")
   8: (DRAKMA:HTTP-REQUEST "https://www.google.com")

"A screaming comes across the sky.  It has happened before, but there
is nothing to compare to it now."
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: abcl-socket-subtypep.diff
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20101130/d18043f8/attachment.ksh>

More information about the armedbear-devel mailing list