News for hackers. Stuff that matters.
Re:Vacietis, a C compiler targeting Common Lisp by fiddlerwoaroof on Friday December 25, 2020 @11:17PM (#25541332)
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.
Re:Vacietis, a C compiler targeting Common Lisp by fiddlerwoaroof on Friday December 25, 2020 @11:31PM (#25541397)
Vacietis 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
Re:Vacietis, a C compiler targeting Common Lisp by dgb23 on Saturday December 26, 2020 @05:26AM (#25542541)
I misunderstand what you're saying or miss an obvious joke. I would have thought a garbage collected language is typically safer.
Re:Vacietis, a C compiler targeting Common Lisp by lispm on Saturday December 26, 2020 @10:09AM (#25543867)
Given 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).
Re:Vacietis, a C compiler targeting Common Lisp by dgb23 on Saturday December 26, 2020 @03:14PM (#25546129)
Thanks for clarifying!