racket / cext-lib

Other
2 stars 3 forks source link

Update dynext for Racket[cs] ? #4

Open bremner opened 7 months ago

bremner commented 7 months ago

What version of Racket are you using? 8.12 [cs]

What program did you run?

#lang racket/base
(require dynext/link)
(expand-for-link-variant (current-standard-link-libraries))

What should have happened?

I'm not sure. Maybe an error? The output of '("/usr/lib/x86_64-linux-gnu/racket/mzdyn.o") seems to be wrong for racket [cs]

If you got an error message, please include it here.

Please include any other relevant details

I don't know much about dynext, the example comes from a bug report on Debian.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065597

My current understanding is that mzdyn.o is only built for racket[bc]

samth commented 7 months ago

The relevant code hasn't been touched in a very long time (12 or 23 years depending on how you want to count).

rlaboiss commented 7 months ago

A subsidiary question: If mzdyn.o is not maintained anymore, what is the modern way of writing Racket extensions?

samth commented 7 months ago

Writing a library using the FFI is the recommended approach, as the page you linked says at the top. It's also the only approach that works on Racket CS.

rlaboiss commented 6 months ago

Ok, thanks !