which FFI to use

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

which FFI to use

Gour
Hello,

before jumping deeper into GUI waters, I'd like to play a bit with
calling 3rd party C library which I'll need for my project.

Considering that I use x86_64 Linux, I wonder if there is some
possibility to call 64bit C library or I'd have to compile it as 32bit?

I did watch "The good, the bad and the ugly" presentation from
PharoDAYS-2015, but I'm not sure what is the current status and whether
WIP: FFI is ready to test? (I use V5.0 image)?


Sincerely,
Gour

--
As fire is covered by smoke, as a mirror is covered by dust,
or as the embryo is covered by the womb, the living entity is
similarly covered by different degrees of this lust.





Reply | Threaded
Open this post in threaded view
|

Re: which FFI to use

Damien Cassou-2
On December 26, 2015 8:53:47 AM GMT+01:00, "Saša Janiška" <[hidden email]> wrote:
>Considering that I use x86_64 Linux, I wonder if there is some
>possibility to call 64bit C library or I'd have to compile it as 32bit?


You can only call 32bits libraries. Mainstream Linux distributions have both 32 and 64 so there is no theoretical problem here. The only problem is that it makes installation harder unless you package your app with distribution-specific tools.


>I did watch "The good, the bad and the ugly" presentation from
>PharoDAYS-2015, but I'm not sure what is the current status and whether
>WIP: FFI is ready to test? (I use V5.0 image)?

The Nativeboost calls should continue working in Pharo 5 and beyond

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Reply | Threaded
Open this post in threaded view
|

Re: which FFI to use

Gour
On Sub, 2015-12-26 at 09:37 +0100, Damien Cassou wrote:

> You can only call 32bits libraries. Mainstream Linux distributions
> have both 32 and 64 so there is no theoretical problem here. The only
> problem is that it makes installation harder unless you package your
> app with distribution-specific tools.

OK.

> The Nativeboost calls should continue working in Pharo 5 and beyond

Is there going to be 64bit VM for Pharo-5?


Sincerely,
Gour

-- 
From anger, complete delusion arises, and from delusion 
bewilderment of memory. When memory is bewildered, 
intelligence is lost, and when intelligence is lost 
one falls down again into the material pool.





Reply | Threaded
Open this post in threaded view
|

Re: which FFI to use

stepharo


Le 26/12/15 10:50, Saša Janiška a écrit :

> On Sub, 2015-12-26 at 09:37 +0100, Damien Cassou wrote:
>
>> You can only call 32bits libraries. Mainstream Linux distributions
>> have both 32 and 64 so there is no theoretical problem here. The only
>> problem is that it makes installation harder unless you package your
>> app with distribution-specific tools.
> OK.
>
>> The Nativeboost calls should continue working in Pharo 5 and beyond
> Is there going to be 64bit VM for Pharo-5?

Yes probably by June.

>
>
> Sincerely,
> Gour
>
> --
> >From anger, complete delusion arises, and from delusion
> bewilderment of memory. When memory is bewildered,
> intelligence is lost, and when intelligence is lost
> one falls down again into the material pool.
>
>
>
>
>
>