gerbil icon indicating copy to clipboard operation
gerbil copied to clipboard

Provide REPL command to view source-optimized, expanded Scheme code

Open dpk opened this issue 1 year ago • 1 comments

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!

dpk avatar Sep 27 '24 16:09 dpk

Yes, indeed!

Something in :std/interactive would be great, maybe as part of the IDE pkg.

vyzo avatar Sep 27 '24 16:09 vyzo