3 ms·
One advantage of C -> Common Lisp vs. FFI is that issues in the C code are less likely to be exploitable since the C is compiled to a more memory-safe language.
by fiddlerwoaroof 6y ago
One advantage of C -> Common Lisp vs. FFI is that issues in the C code are less likely to be exploitable since the C is compiled to a more memory-safe language.
- fiddlerwoaroof 6y agoVacietis is interesting and similar to the way C worked in the Symbolics Lisp Machines (Zeta-C), but I think llvm IR -> CL is more practical these days. Iota (made to port Doom to a pure-CL OS, Mezzano, I believe) is an example of this strategy: https://github.com/froggey/Iota https://github.com/froggey/Iota
- dgb23 6y agoI misunderstand what you're saying or miss an obvious joke. I would have thought a garbage collected language is typically safer.
- lispm 6y agoGiven that one has plain C code, then it is possibly safer to run it when compiled to a memory safe runtime (with bounds checks, no pointers, etc.) than to use a C to machine code compiler and call the compiled code from Lisp via a Foreign Function Interface (FFI).
- dgb23 6y agoThanks for clarifying!