[Pharo-project] Popularity of Smalltalk in Software Industry
laurent.laffont at gmail.com
Fri May 6 18:55:16 CEST 2011
>> > Indeed, one thing FFI / Alien / NB don't have is a documentation as nice
>> > as http://docs.python.org/library/ctypes.html
>> > in http://book.pharo-project.org/
>> > FFI / Alien / NB may be powerful, it seems I've never managed to do what
>> > want, even with all mailing lists support (search mails on yaz / z3950
>> > id3taglib). In Python it works on OSX out of the box (I've just tried :)
>> Is it works because someone already provided a bindings for libraries
>> you mention,
>> or you did it by yourself?
> Have just used ctypes:
> >>> import ctypes
> >>> import ctypes.util
> >>> ctypes.util.find_library("yaz")
> >>> yaz = ctypes.cdll.LoadLibrary("libyaz.dylib")
> >>> con = yaz.ZOOM_connection_new("z3950.loc.gov", 7090);
Indeed, I think the great thing is that I could write this in 5 mn just
looking at the doc, haven't used python for years.
In Pharo, well, .........
>> Here a first hit from google search:
>> I wrote these files for more than 2 years ago to play with SWIG and PERL,
>> are far from being used, but I have just done a fast perl test and the
>> were just fine.
>> zclinet.i swig interface file
>> The zclient_wrap.c will be created as
>> > swig -python zclient.i
>> which should be compiled and linked with the rest
>> So? Do you think it was easy in first place to a guy who did it from
>> Now you can easily use it (and its just works out of the box). But it
>> is because someone did it before you!
>> And if you gonna repeat same from scratch, then you will have to learn:
>> - C
>> - SWIG
>> - Python
>> so, do you still think that it easier to do that in Python than in
>> > But when I was working with Python and Ruby several years ago things was
>> > easy (for my needs), I think because of documentation.
>> > Laurent
>> Best regards,
>> Igor Stasenko AKA sig.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-project