On Tue, Jun 13, 2017 at 7:39 PM Daniel Passaro <danpass...@gmail.com> wrote:

> I'm a Pharo newbie. How can I use libraries like SDL2 or GTK+ from Pharo?
> Should this be done through FFI or a VM plugin?  And in either case is
> there a guide to how to implement things using that technique?
>

If you know python, because python has wrappers for pretty much any library
out there, i made a pharo library that allows for remote and local
execution of python code from inside pharo. Its not perfect but it will
give you access to pretty much any library out there because python is very
popular. The library is called Atlas , its available from the
Package/Catalog browser and requires that you have installed the library
you want to use , python 3 and wrappers for  python for that library. Third
one may be optional because some library come with python wrappers
included.

If you need any help , I am here. You can use also Atlas as the basis for
supporting other languages all you need is a language that can dynamically
execute code (usually dynamic languages like python) and support for
sockets (sockets are supported in almost all languages).

UFFI is the official way of interfacing with C libraries , but C is
difficult to manage , very difficult to debug but gives top performance. If
the library is made in C++ UFFI cannot access it immediately the library
has to be compiled without name mangling.

Reply via email to