It would be nice if the optimized CoreImp
was available as a compiler target. As far as I can tell this would only require some json serialization logic and a small bit of executable plumbing. Is there anything else I’m missing and(or) should be aware of before having a crack at this?
Unless things have changed since https://github.com/purescript/purescript/pull/3117 (as far as I’m aware, they haven’t) it might not be particularly likely to be merged, unfortunately. I think the gist of it is that the CoreImp representation is currently too closely tied to JS and still needs more design work doing to it before we can feel comfortable making it part of the compiler’s public API.
Ahh okay, understood. Thanks for getting back to me.