ararslan
2019-6-17 20:44:32

Are there any good guides or worked examples available that show how to wrap a C library with Racket’s FFI stuff?


ararslan
2019-6-17 20:45:02

I tried just going by the documentation directly, but I seem not to have done things properly, as I get lots of segfaults



ararslan
2019-6-17 20:46:04

Nice, thanks for the reference!


soegaard2
2019-6-17 20:47:13

FWIW the original paper helped me: https://www2.ccs.neu.edu/racket/pubs/scheme04-bo.pdf


soegaard2
2019-6-17 20:48:39

Also: Danny was collecting examples for a tutorial that never got written:



ararslan
2019-6-17 20:50:08

Are these tutorials and stuff that are 3+ years old still accurate? That is, has the FFI stuff changed in any significant way over the past few years?


samth
2019-6-17 20:50:33

yes, they’re still accurate


ararslan
2019-6-17 20:50:38

Okay awesome


soegaard2
2019-6-17 20:50:38

C is pretty stable :slightly_smiling_face:


ararslan
2019-6-17 20:50:43

Haha


ararslan
2019-6-17 20:50:48

I mean the Racket side :stuck_out_tongue:


ararslan
2019-6-17 20:51:25

Thank you both for your help!


samth
2019-6-17 20:51:34

I’m confident that the examples in that 2004 paper will all work today