タグ

libffiに関するnsyeeのブックマーク (4)

  • Node.JS would really benefit from LibFFI

    Having recently built a simple LDAP library that required a bit of C++, I think Node would really benefit from LibFFI bindings. LibFFI allows C functions to be called dynamically at runtime from another language. There are LibFFI bindings for Python (ctypes), Ruby (Ruby-FFI) and Java (JNA), amongst others. If FFI bindings existing for Node, you’d be able to call native C functions without ever lea

    Node.JS would really benefit from LibFFI
  • c-wrapper

    English / Japanese c-wrapper - A Generic Wrapper for C Libraries 最終更新日: 2009年8月9日 c-wrapperとは c-wrapperとはCやObjective-Cで書かれたライブラリを呼び出すためのFFI(Foregin Function Interface)です。 c-wrapperはヘッダファイルをパーズする機能を持っているため、関数、グローバル変数、定数に関する定義を行う必要がありません。 サンプルコード c-wrapperを用いると以下のようなコードを書くことができます。 (use c-wrapper) (c-load "stdio.h") (printf "Hello, world\n") MacOSXではObjective-Cのライブラリを呼び出すことも可能です。 (use objc-wrapper) (

  • libffi

    A Portable Foreign Function Interface Library libffi-3.4.5 was released on February 15, 2024. You can download it from github here: https://github.com/libffi/libffi/releases/download/v3.4.5/libffi-3.4.5.tar.gz. libffi is Free Software. It has a very liberal license. What is libffi? Compilers for high level languages generate code that follows certain conventions. These conventions are necessary, i

  • Foreign Function Interface をいくつか見てまわる - higepon blog

    動機 VM を C++ に移植開始したのだけど、以前 M さんから指摘のあった C/C++ を呼び出すインターフェースもしくはその逆、つまりForeign Function Interface について考えるなら今しかないので考えよう。 同年代のスーパープログラマ M さんに「どうやって勉強したら良いだろうか?」と問うたら即答。 まずは、CommonLispのdefun-c-callableとchunkあたりを調べて 次にJavaのJNIとC#のP/Invoke周り(特にcustomのmarshalerとか)を調べて 後はrubyとかgaucheの共有ライブラリあたりしっときゃいいんじゃね? だそうです。 ひぇ。まだまだ彼には追いつける気がしない。 Common Lisp の defun-c-callable defun-c-callable は obsolete で defun-fore

    Foreign Function Interface をいくつか見てまわる - higepon blog
  • 1