whining about #FFI and ABI stability
on 02026-02-10comments on Wingo’s #FFI #garbage-collection post
on 02025-12-26Andy Wingo thinks composing finalizers with #FFI is impossible because the #garbage-collection might decide that the object whose guts an FFI function is returning a reference to has become unreferenced.
on 02025-12-26The #LuaJIT #FFI #documentation
on 02025-10-27More on the #LuaJIT #FFI restrictions
on 02025-10-27places where the #LuaJIT #FFI’s inability to pass structs by value from C to callbacks into #Lua code has caused problems
on 02025-10-27Tavis Ormandy added an #FFI to #bash so you can call arbitrary functions from C shared libraries, or “use GTK natively in your shell scripts”
on 02024-09-11how to call #Nim code from C #FFI
on 02024-01-23Calling Python from #Nim with "Nimpy", a custom Nim #FFI
on 02024-01-23#Golang (the non-gccgo version) uses segmented stacks, which means it has to switch stacks to call C code with cgo. #ffi
on 02023-06-12the gccgo #golang compiler has much lower overhead to call C code with cgo. #ffi
on 02023-06-12#Racket has an #FFI which does support pointer arithmetic
on 02019-02-15#OCaml has an #FFI confusingly also called “ctypes” now. It’s in OPAM, not the base distribution.
on 02019-02-15Mozilla has a #JS #FFI called "js-ctypes" which is not the same as node-ffi.
on 02019-02-15#LuaJIT’s #FFI can be substantially faster than C linking because it avoids the PLT.
on 02019-02-12There’s an even shorter #tutorial for node-ffi on its homepage. require('ffi').Library('libm', {'ceil': ['double', ['double']]}).ceil(1.5) #FFI #Node
another #tutorial for using node-ffi, an #FFI for #Node. TooTallNate, who wrote a version of ctypes for Node, is working on this now.
on 02019-02-12#tutorial for using node-ffi, an #FFI for #Node.
on 02019-02-12"Node-gyp" for building #Node extensions (“native addons”) rather than using an #FFI; node-gyp replaces node-waf.
on 02019-02-12