3 ms·
What about Racket's ability for arbitrary languages via #lang, not just macros? Are there any plans for this? It's really nice to be able to do #lang c and jus
by spacesuitman2 8y ago
What about Racket's ability for arbitrary languages via #lang, not just macros? Are there any plans for this?
It's really nice to be able to do #lang c and just write C that is FFI'd into racket so you can avoid using an external toolchain to compile.
- pflanze 8y agoI don't really have a use for this. Gambit-C allows to include C files or also strings of C code from a Scheme module and builds it as one. I haven't used Racket's FFI though, perhaps the real benefit is from parsing the C code to auto-generate bindings? Generally I'd like to reduce the use of C code in case I want to re-target the code to run in a different, not C based, environment. chj-schemelib will need work for general consumption, let me know if you want to use it. (If you're talking about the interpreter in C++, it's the other way around, write FFI declarations within C++ to allow Scheme access to C++.)