gerbil
gerbil copied to clipboard
Provide REPL command to view source-optimized, expanded Scheme code
Opening this issue by request.
Chez and Loko have an expand/optimize procedure, and Guile a ,optimize REPL command, that let you see the output of their cp0-equivalent source-level optimization passes run on the expanded code you give it.
In Gerbil you can currently do this by running gxc -s -S -O (keep Scheme source file, don’t invoke Gambit, do run optimizations) and looking at the output .scm file, but a way to do this from the REPL would be nice!
Yes, indeed!
Something in :std/interactive would be great, maybe as part of the IDE pkg.