[Vm-dev] 64 bit FFI...

Göran Krampe goran at krampe.se
Fri Jan 18 09:32:53 UTC 2013


Hi folks!

Just want to check with you guys how we are on the 64 bit VM front.

I have a dynamic library that is 64 bits that I want to call using FFI 
(any FFI!). AFAICT this is a big no, no. NB FFI doesn't do 64 bits, 
well, in fact NB is only available in Cog and Cog is only available in 
32 bits, right?

And even if Cog was available in 64 bits (Eliot?) I guess the NB FFI 
would need work to function in 64 bits too?

Ok, so what about the standard VM 64 bit? It doesn't seem to have a 
working FFI plugin, so no go.

I do not think I can get the lib in 32 bits (but I have asked upstream) 
it is the libhyperclient.so for HyperDex (www.hyperdex.org).

Could someone confirm the above or tell me about any other reasonable route?

regard, Göran

PS. One way would be to write some wrapper around the lib in C and 
communicate with it by some other means - like stdin/stdout etc. But... 
uuuugly. :)


More information about the Vm-dev mailing list