ffi
How do I specify a struct as the return value of a function in RubyFFI?
I have to load several functions that return structures from the library itself. attach_function \'fn_name\', [], # ... What do I put here?[详细]
2023-02-18 19:55 分类:问答Ruby FFI - trapping C calls to exit()
I have a Rails 开发者_运维技巧application with a FFI binding to a custom RPC system.Unfortunately, the C code calls exit() when it is unable to connect to the RPC server, terminating the entire Rails[详细]
2023-02-16 14:26 分类:问答Is there a simple way to use Python libraries from Common Lisp?
One thing I real开发者_开发问答ly miss when writing Common Lisp code is access to Python libraries, both standard library and third party modules. CLPython provides a limited subset of Python function[详细]
2023-02-14 23:11 分类:问答Error installing gems that use native extensions on Ubuntu, Ruby 1.9.2 via RVM
I get an error while trying to install the ffi gem: ~ - 16:54>gem i ffi Building native extensions.This could take a while...[详细]
2023-02-14 03:09 分类:问答About wrap and call C function
I get this question from this Chinese blog http://chenyufei.info/blog/2011-02-28/wrap-c-function-closure-gcc-nested-function/[详细]
2023-02-13 18:18 分类:问答Calling Haskell functions from Python
I want to use some Haskell libraries (e.g. Darcs, Pandoc) from Python, but it seems there’s no direct foreig开发者_运维知识库n function interface to Haskell in Python. Is there any way to do that?Pro[详细]
2023-02-10 15:20 分类:问答Storable empty data declaration
I\'m attempting to create a Haskell wrapper for a C library. The underlying structs are too complicated to express as explicit types, and I don\'t actually use them other than for passing开发者_StackO[详细]
2023-02-06 10:19 分类:问答Common lisp, CFFI, and instantiating c structs
I\'ve been on google for about, oh, 3 hours looking for a solution to this \"problem.\" I\'m trying to figure out how to instantiate a C structure in lisp using CFFI. I have a struct in c:[详细]
2023-02-02 10:17 分类:问答Interfacing haskell with c
I\'ve been thinking that it would be nice to create midori plugins with haskell, but it seems to be nigh impossible. The problem lies with exporting haskell functions through ffi, as the ghc compiler[详细]
2023-01-29 21:39 分类:问答Why does Ruby FFI need attach_function calls when there are header files?
Is there a way to point Ruby FFI to a header file instead of writing attach_function calls?A header file basically has the same exact information.[详细]
2023-01-25 22:36 分类:问答