[Pharo-project] Want ugly FFI interface [was: Popularity of Smalltalk in Software Industry]

laurent laffont laurent.laffont at gmail.com
Sat May 7 08:36:30 CEST 2011


>
>
> >> > Have just used ctypes:
> >> >>>> import ctypes
> >> >>>> import ctypes.util
> >> >>>> ctypes.util.find_library("yaz")
> >> > '/usr/local/lib/libyaz.dylib'
> >> >>>> yaz = ctypes.cdll.LoadLibrary("libyaz.dylib")
> >> >>>> con = yaz.ZOOM_connection_new("z3950.loc.gov", 7090);
> >>
> >> oh cool.. give me a 5 minutes to load external library, look up the
> >> random symbol exported by it
> >> and make a call to it with random number of arguments, and expect it
> >> won't crash.
> >>
> >> Works outta box! Cool.
>
>>
> >> Now serious. How about spending time writing a bindings for that
> library?
> >> Where you have properly organized classes/interfaces, error handling
> >> and other stuff.
> >> No takers?
> >>
> >> Seriously, if you want such kind of shitty interface, which allows you
> >> to call arbitrary function with arbitrary arguments
> >> without any argument type checking, i can write it for you.
> >
> >
> > Do it, please do it. Seriously. Thanks
> > Laurent.
>
> Oh. Okay. I will put that in my years-long todo list. Remind me time to
> time :)
>


This is just a matter of priority. I vote for highest :)

Laurent





>
> >
> >>
> >> > Laurent
> >>
> >> --
> >> Best regards,
> >> Igor Stasenko AKA sig.
> >>
> >
> >
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110507/8445a36b/attachment.htm>


More information about the Pharo-project mailing list