Skip to content
Felix S. Klock II edited this page Jul 28, 2013 · 1 revision

Lars put an FFI into Larceny. PnkFelix has never tried to use it. It might still work.

It probably only works on Unix.

  • LarsHansen says:

    • the 386 callout FFI did work in some early version of Petit Larceny under Windows, actually. All the FFIs are ABI-dependent, not just architecture-dependent. Not all CPUs have standard ABIs for languages on those CPUs, though that seems to be better now (and even gcc plays nice). The SPARC FFI is not Unix-specific, but the use of dlopen to load shared objects is.
  • PnkFelix says:

    • Note that we have both larceny_lib/ffi.sch and Auxlib/std-ffi.sch (aka lib/Base/std-ffi.sch) to draw from. Its not clear which one of these is more up to date. Ray Racine (Ticket #149) was probably using Auxlib/std-ffi.sch...
  • #178 is a sign that something is not robust within foreign-variable

  • Ffi/Dlsym has some documentation of a inconsistency between Lars' original spec for dlsym and how it behaves now. PnkFelix thinks he should resolve this issue.

Clone this wiki locally