Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Scheme FFI

Name: Anonymous 2011-11-06 1:04


(require scheme/foreign)
require: unknown module: scheme/foreign

does Scheme has stable FFI at all?

Name: Anonymous 2011-11-06 2:39

>>1

depends on the implementation you are using. You should consult the documentation for your implementation.

Name: Anonymous 2011-11-06 2:46

>>2
MzScheme of course. Looks like there are myriad of FFI implementation, in contrast to CL, which has single CFFI. And the standard library is bigger and less portable than CL's. Anyone who tells you, that Scheme is minimalistic, is liar.

Name: Anonymous 2011-11-06 4:19

>>3

yes. Use this one instead. http://armpit.sourceforge.net/

Name: Anonymous 2011-11-06 5:54

>>3
MzScheme
It's got one of the best FFI I've ever seen (I've heard Chicken's FFI is even better), but I'm not sure why you're still using MzScheme instead of Racket/the old libraries instead of the new ones. http://docs.racket-lang.org/foreign/index.html

Name: Anonymous 2011-11-06 14:21

>>5
I'm not sure why you're still using MzScheme
Newer versions fail to install on my Linux distro and I'm just playing, to see what it can do.

Name: Anonymous 2011-11-06 14:43

python's ctypes is far more elegant

Name: Anonymous 2011-11-06 14:51

>>7
Python has no FFI at all. It require external C/C++ compiler.

Name: Anonymous 2011-11-06 16:25

chicken's is really good. it compiles down to C so it bascially uses inline functions instead of a ffi

Name: Anonymous 2011-11-06 16:29

>>9
Why do we need C/C++ at all? It's long obsolete.

Name: Anonymous 2011-11-07 16:17

>>5
It's got one of the best FFI I've ever seen
It uses fucking complicated infix notation, scary as Haskell:

(_fun _double (p : (_ptr o _double)) -> (r : _double) -> (values p r))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List