3 ms·
Wouldn't it make more sense to use a Scheme that compiles down to C (like, Chicken scheme or something like that)? I guess the argument might be readability of
by overgard 11y ago
Wouldn't it make more sense to use a Scheme that compiles down to C (like, Chicken scheme or something like that)?
I guess the argument might be readability of the output, but I'm guessing as his lisp grows more complex the output is going to diverge from the input quite a bit anyway (I'm trying to imagine what a closure would look like.. I'm guessing it wouldn't be pretty)
- junke 11y agoAmplify is mainly used to generate C code that does not need a Lisp runtime. It is used effectively as a smarter preprocessor. Embeddable Common Lisp (ECL) [1] is an efficient implementation of Lisp that compiles to C. It can be easily used to interface C and Lisp. Regarding C++, nowadays there is Clasp [2] that is under active development and looks very promising. [1] https://common-lisp.net/project/ecl/ https://common-lisp.net/project/ecl/ [2] https://github.com/drmeister/clasp https://github.com/drmeister/clasp